Common System 0.2.0
Common interfaces and patterns for system integration
Loading...
Searching...
No Matches
kcenon::common::concepts::GaugeMetric Concept Referenceexport

A type that supports gauge metric operations. More...

#include <monitoring.h>

Concept definition

template<typename T>
std::string_view name,
double value,
const interfaces::metric_labels& labels) {
{ t.gauge(name, value, labels) } -> std::same_as<void>;
}
A type that supports gauge metric operations.
Definition monitoring.h:82
std::unordered_map< std::string, std::string > metric_labels
Metric labels for dimensional data.
Definition monitoring.h:38

Detailed Description

A type that supports gauge metric operations.

Types supporting gauge operations.

Types satisfying this concept can set gauge metrics, which represent instantaneous values that can go up or down.

Example usage:

template<GaugeMetric M>
void report_memory(M& collector, double bytes) {
collector.gauge("memory_usage_bytes", bytes);
}

Definition at line 82 of file monitoring.h.