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

A type that can observe metric updates. More...

#include <monitoring_concepts.h>

Concept definition

template<typename T>
{ t.on_metrics_updated(std::declval<std::vector<int>>()) };
}
A type that can observe metric updates.

Detailed Description

A type that can observe metric updates.

Observers receive notifications when metrics are updated.

Example usage:

template<ObserverLike O>
void register_observer(std::shared_ptr<O> observer) {
observers_.push_back(observer);
}

Definition at line 140 of file monitoring_concepts.h.