Class MetricDetailsInterface

Inheritance Relationships

Derived Type

Class Documentation

class MetricDetailsInterface

Interface to represent a single metric’s name and unit, which are used for metric message generation and publication.

Subclassed by libstatistics_collector::collector::Collector

Public Functions

virtual ~MetricDetailsInterface() = default
virtual std::string GetMetricName() const = 0

Return a single metric’s name.

Returns

a string representing the metric name

virtual std::string GetMetricUnit() const = 0

Return a single metric’s measurement unit.

Returns

a string representing the metric unit