|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Interface for components that provide metrics. More...
#include <metric_collector_interface.h>

Public Member Functions | |
| virtual | ~interface_metric_source ()=default |
| virtual std::vector< metric > | get_current_metrics () const =0 |
| Get current metrics from this source. | |
| virtual std::string | get_source_name () const =0 |
| Get the name of this metric source. | |
| virtual bool | is_healthy () const =0 |
| Check if this source is healthy. | |
Interface for components that provide metrics.
This interface defines the contract for components that can provide metrics to collectors. Metric sources are typically sensors, subsystems, or services that expose their internal state as metrics.
Definition at line 351 of file metric_collector_interface.h.
|
virtualdefault |
|
pure virtual |
Get current metrics from this source.
|
pure virtual |
Get the name of this metric source.
|
pure virtual |
Check if this source is healthy.