|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Interface for components that can be monitored. More...
#include <monitorable_interface.h>


Public Member Functions | |
| virtual | ~monitorable_interface ()=default |
| virtual common::Result< monitoring_data > | get_monitoring_data () const =0 |
| Get current monitoring data from the component. | |
| virtual std::string | get_monitoring_id () const =0 |
| Get the component's monitoring identifier. | |
| virtual bool | is_monitoring_enabled () const |
| Check if monitoring is enabled for this component. | |
| virtual common::VoidResult | set_monitoring_enabled (bool enable) |
| Enable or disable monitoring. | |
| virtual common::VoidResult | reset_monitoring () |
| Reset monitoring counters and state. | |
Interface for components that can be monitored.
This interface allows components to expose their internal state and metrics for monitoring purposes. It follows the pattern from thread_system for consistent monitoring across components.
Definition at line 265 of file monitorable_interface.h.
|
virtualdefault |
|
pure virtual |
Get current monitoring data from the component.
Implemented in test_monitorable_component.
|
pure virtual |
Get the component's monitoring identifier.
Implemented in kcenon::monitoring::monitorable_component.
|
inlinevirtual |
Check if monitoring is enabled for this component.
Reimplemented in kcenon::monitoring::monitorable_component.
Definition at line 285 of file monitorable_interface.h.
|
inlinevirtual |
Reset monitoring counters and state.
Reimplemented in kcenon::monitoring::monitorable_component.
Definition at line 304 of file monitorable_interface.h.
|
inlinevirtual |
Enable or disable monitoring.
| enable | true to enable, false to disable |
Reimplemented in kcenon::monitoring::monitorable_component.
Definition at line 294 of file monitorable_interface.h.