Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
kcenon::monitoring::concepts::MetricValue Concept Reference

A type that can be used as a metric value. More...

#include <monitoring_concepts.h>

Concept definition

template<typename T>
concept kcenon::monitoring::concepts::MetricValue = std::is_arithmetic_v<T>
A type that can be used as a metric value.

Detailed Description

A type that can be used as a metric value.

Metric values must be arithmetic types (integral or floating-point) that can be used in monitoring calculations.

Example usage:

template<MetricValue V>
void record_metric(const std::string& name, V value) {
metrics_.record(name, static_cast<double>(value));
}

Definition at line 58 of file monitoring_concepts.h.