|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Lightweight performance profile for aggregated metrics. More...
#include <performance_types.h>

Public Member Functions | |
| double | success_rate () const |
| Calculate success rate. | |
| double | error_rate () const |
| Calculate error rate. | |
Public Attributes | |
| std::string | operation_name |
| std::uint64_t | total_calls {0} |
| std::uint64_t | error_count {0} |
| std::int64_t | total_duration_ns {0} |
| std::int64_t | min_duration_ns {INT64_MAX} |
| std::int64_t | max_duration_ns {0} |
| std::int64_t | avg_duration_ns {0} |
Lightweight performance profile for aggregated metrics.
This is a simplified profile structure used by the central collector for efficient metric aggregation. For detailed percentile analysis, use performance_metrics.
Definition at line 25 of file performance_types.h.
|
inline |
Calculate error rate.
Definition at line 51 of file performance_types.h.
References error_count, and total_calls.
|
inline |
Calculate success rate.
Definition at line 42 of file performance_types.h.
References error_count, and total_calls.
| std::int64_t kcenon::monitoring::performance_profile::avg_duration_ns {0} |
Definition at line 36 of file performance_types.h.
| std::uint64_t kcenon::monitoring::performance_profile::error_count {0} |
Definition at line 30 of file performance_types.h.
Referenced by error_rate(), and success_rate().
| std::int64_t kcenon::monitoring::performance_profile::max_duration_ns {0} |
Definition at line 35 of file performance_types.h.
| std::int64_t kcenon::monitoring::performance_profile::min_duration_ns {INT64_MAX} |
Definition at line 34 of file performance_types.h.
| std::string kcenon::monitoring::performance_profile::operation_name |
Definition at line 26 of file performance_types.h.
| std::uint64_t kcenon::monitoring::performance_profile::total_calls {0} |
Definition at line 29 of file performance_types.h.
Referenced by error_rate(), and success_rate().
| std::int64_t kcenon::monitoring::performance_profile::total_duration_ns {0} |
Definition at line 33 of file performance_types.h.