|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Abstract monitoring interface. More...
#include <monitoring_interface.h>


Public Member Functions | |
| virtual | ~monitoring_interface ()=default |
| Virtual destructor. | |
| virtual result< monitoring_data > | collect_metrics () const =0 |
| Collect current metrics. | |
| virtual result< health_check_result > | check_health () const =0 |
| Perform health check. | |
| virtual common::VoidResult | reset_metrics ()=0 |
| Reset all metrics. | |
| virtual common::VoidResult | set_enabled (bool enable)=0 |
| Enable or disable metric collection. | |
| virtual bool | is_enabled () const =0 |
| Check if monitoring is enabled. | |
| virtual std::string | get_backend_name () const =0 |
| Get monitoring backend name. | |
| virtual void | increment_counter (const std::string &name, double value=1.0)=0 |
| Record a counter increment. | |
| virtual void | update_gauge (const std::string &name, double value)=0 |
| Update a gauge value. | |
| virtual void | record_histogram (const std::string &name, double value)=0 |
| Record a value in a histogram. | |
Abstract monitoring interface.
This interface defines the contract for monitoring implementations, allowing different backends to be plugged in.
Definition at line 213 of file monitoring_interface.h.
|
virtualdefault |
Virtual destructor.
|
pure virtual |
Perform health check.
Implemented in kcenon::logger::basic_monitor, and kcenon::logger::thread_system_monitor_adapter.
|
pure virtual |
Collect current metrics.
Implemented in kcenon::logger::basic_monitor, and kcenon::logger::thread_system_monitor_adapter.
|
pure virtual |
Get monitoring backend name.
Implemented in kcenon::logger::basic_monitor, and kcenon::logger::thread_system_monitor_adapter.
|
pure virtual |
Record a counter increment.
| name | Counter name |
| value | Increment value (default 1) |
Implemented in kcenon::logger::basic_monitor, and kcenon::logger::thread_system_monitor_adapter.
|
pure virtual |
Check if monitoring is enabled.
Implemented in kcenon::logger::basic_monitor, and kcenon::logger::thread_system_monitor_adapter.
|
pure virtual |
Record a value in a histogram.
| name | Histogram name |
| value | Value to record |
Implemented in kcenon::logger::basic_monitor, and kcenon::logger::thread_system_monitor_adapter.
|
pure virtual |
Reset all metrics.
Implemented in kcenon::logger::basic_monitor, and kcenon::logger::thread_system_monitor_adapter.
|
pure virtual |
Enable or disable metric collection.
| enable | true to enable, false to disable |
Implemented in kcenon::logger::basic_monitor, and kcenon::logger::thread_system_monitor_adapter.
|
pure virtual |
Update a gauge value.
| name | Gauge name |
| value | New value |
Implemented in kcenon::logger::basic_monitor, and kcenon::logger::thread_system_monitor_adapter.