|
Common System 0.2.0
Common interfaces and patterns for system integration
|
Specialized metrics for system-level monitoring. More...
#include <monitoring_interface.h>

Public Member Functions | |
| std::vector< metric_value > | to_metrics () const |
| Convert to vector of metric_value. | |
Public Attributes | |
| metric_value | cpu_usage_percent {"cpu_usage_percent", 0, metric_type::gauge} |
| metric_value | memory_usage_bytes {"memory_usage_bytes", 0, metric_type::gauge} |
| metric_value | active_threads {"active_threads", 0, metric_type::gauge} |
| metric_value | total_allocations {"total_allocations", 0, metric_type::counter} |
| std::chrono::system_clock::time_point | timestamp = std::chrono::system_clock::now() |
Specialized metrics for system-level monitoring.
Definition at line 182 of file monitoring_interface.h.
|
inline |
Convert to vector of metric_value.
Definition at line 193 of file monitoring_interface.h.
References active_threads, cpu_usage_percent, memory_usage_bytes, and total_allocations.
| metric_value kcenon::common::interfaces::system_metrics::active_threads {"active_threads", 0, metric_type::gauge} |
| metric_value kcenon::common::interfaces::system_metrics::cpu_usage_percent {"cpu_usage_percent", 0, metric_type::gauge} |
| metric_value kcenon::common::interfaces::system_metrics::memory_usage_bytes {"memory_usage_bytes", 0, metric_type::gauge} |
| std::chrono::system_clock::time_point kcenon::common::interfaces::system_metrics::timestamp = std::chrono::system_clock::now() |
Definition at line 188 of file monitoring_interface.h.
| metric_value kcenon::common::interfaces::system_metrics::total_allocations {"total_allocations", 0, metric_type::counter} |