Monitoring  3.3.4
O2 Monitoring library
o2::monitoring::transports::HTTP Class Reference

HTTP POST transport. More...

#include <HTTP.h>

Inheritance diagram for o2::monitoring::transports::HTTP:
Collaboration diagram for o2::monitoring::transports::HTTP:

Public Member Functions

 HTTP (const std::string &url)
 
 ~HTTP ()
 Destructor.
 
void send (std::string &&post)
 
void addHeader (const std::string &header)
 Adds custom HTTP header.
 

Detailed Description

HTTP POST transport.

Allows to push string formatted metrics as HTTP POST requests via cURL

Constructor & Destructor Documentation

o2::monitoring::transports::HTTP::HTTP ( const std::string &  url)

Constructor

Parameters
urlURL of HTTP server endpoint

Member Function Documentation

void o2::monitoring::transports::HTTP::send ( std::string &&  post)
virtual

Sends metric via HTTP POST

Parameters
postr-value reference string formatted metric

Implements o2::monitoring::transports::TransportInterface.


The documentation for this class was generated from the following files: