16 #ifndef ALICEO2_MONITORING_CORE_BACKEND_H 17 #define ALICEO2_MONITORING_CORE_BACKEND_H 41 Backend() { verbosityLevel = Verbosity::Info; }
56 virtual void send(std::vector<Metric>&& metrics) = 0;
59 virtual void addGlobalTag(std::string_view name, std::string_view value) = 0;
65 #endif // ALICEO2_MONITORING_CORE_BACKEND_H
virtual ~Backend()=default
Default destructor.
virtual void send(const Metric &metric)=0
Sends metric via backend.
virtual void addGlobalTag(std::string_view name, std::string_view value)=0
Sets a tag.
Verbosity
Metric and Backedn verbosity.
Definition: Metric.h:24
Backend pure virtual interface.
Definition: Backend.h:33
void setVerbosisty(Verbosity level)
Set verbosity level.
Definition: Backend.h:47
Represents a metric including value, type of the value, name, timestamp and tags. ...
Definition: Metric.h:37
Verbosity getVerbosity()
Get verbosity level.
Definition: Backend.h:50
Backend()
Default constructor.
Definition: Backend.h:41