27 #ifndef Common_MetricsCollector_h
28 #define Common_MetricsCollector_h
45 virtual void update(
const std::string &name,
const std::string &value) = 0;
50 virtual void update(
const std::string &name, int16_t value) = 0;
55 virtual void update(
const std::string &name, int32_t value) = 0;
60 virtual void update(
const std::string &name,
float value) = 0;
65 virtual void update(
const std::string &name,
double value) = 0;
75 #endif // Common_MetricsCollector_h
Abstract metrics collector.
virtual void publish()=0
Publishes collected metrics.
virtual void update(const std::string &name, const std::string &value)=0
Updates string metric value.