16 #ifndef ALICEO2_MONITORING_BACKEND_STDOUT_H 17 #define ALICEO2_MONITORING_BACKEND_STDOUT_H 37 StdOut(
const std::string& prefix =
"METRIC");
48 void send(std::vector<Metric>&& metrics)
override;
53 void addGlobalTag(std::string_view name, std::string_view value)
override;
59 unsigned long convertTimestamp(
const std::chrono::time_point<std::chrono::system_clock>& timestamp);
61 std::string tagString;
62 const std::string mPrefix;
69 #endif // ALICEO2_MONITORING_BACKEND_STDOUT_H
~StdOut()=default
Default destructor.
Backend pure virtual interface.
Definition: Backend.h:33
void addGlobalTag(std::string_view name, std::string_view value) override
Definition: StdOut.cxx:49
Prints metrics to standard output via std::cout.
Definition: StdOut.h:33
Represents a metric including value, type of the value, name, timestamp and tags. ...
Definition: Metric.h:37
StdOut(const std::string &prefix="METRIC")
Default constructor.
Definition: StdOut.cxx:43
void send(const Metric &metric) override
Definition: StdOut.cxx:66