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

A type that can collect metrics from sources. More...

#include <monitoring_concepts.h>

Concept definition

template<typename T>
{ t.collect_metrics() };
{ t.is_collecting() } -> std::convertible_to<bool>;
{ t.get_metric_types() };
}
A type that can collect metrics from sources.

Detailed Description

A type that can collect metrics from sources.

Metric collectors manage metric collection and observer notification.

Example usage:

template<MetricCollectorLike C>
void start_monitoring(C& collector) {
collector.start_collection();
}

Metric collectors manage metric collection and observer notification.

Definition at line 119 of file monitoring_concepts.h.