Standard interface for monitoring implementations.
More...
#include <monitoring_interface.h>
Standard interface for monitoring implementations.
This interface defines the contract for any monitoring implementation, allowing modules to collect metrics and check health status.
Definition at line 263 of file monitoring_interface.h.
◆ ~IMonitor()
| virtual kcenon::common::interfaces::IMonitor::~IMonitor |
( |
| ) |
|
|
virtualdefault |
◆ check_health()
Perform health check.
- Returns
- Result containing health check result or error
◆ get_metrics()
Get current metrics snapshot.
- Returns
- Result containing metrics snapshot or error
◆ record_metric() [1/2]
| virtual VoidResult kcenon::common::interfaces::IMonitor::record_metric |
( |
const std::string & | name, |
|
|
double | value ) |
|
pure virtual |
Record a metric value.
- Parameters
-
| name | Metric name |
| value | Metric value |
- Returns
- VoidResult indicating success or error
◆ record_metric() [2/2]
| virtual VoidResult kcenon::common::interfaces::IMonitor::record_metric |
( |
const std::string & | name, |
|
|
double | value, |
|
|
const std::unordered_map< std::string, std::string > & | tags ) |
|
pure virtual |
Record a metric with tags.
- Parameters
-
| name | Metric name |
| value | Metric value |
| tags | Additional metadata tags |
- Returns
- VoidResult indicating success or error
◆ reset()
| virtual VoidResult kcenon::common::interfaces::IMonitor::reset |
( |
| ) |
|
|
pure virtual |
Reset all metrics.
- Returns
- VoidResult indicating success or error
The documentation for this interface was generated from the following file: