|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Summary statistics for metrics. More...
#include <metric_types.h>

Public Member Functions | |
| void | add_sample (double value) |
| Add sample to summary. | |
| double | mean () const noexcept |
| Get mean value. | |
| void | reset () |
| Reset summary. | |
Public Attributes | |
| uint64_t | count = 0 |
| double | sum = 0.0 |
| double | min_value = (std::numeric_limits<double>::max)() |
| double | max_value = (std::numeric_limits<double>::lowest)() |
Summary statistics for metrics.
Definition at line 318 of file metric_types.h.
|
inline |
Add sample to summary.
Definition at line 327 of file metric_types.h.
References count, max_value, min_value, and sum.
Referenced by demonstrate_summary(), TEST_F(), and TEST_F().

|
inlinenoexcept |
Get mean value.
Definition at line 337 of file metric_types.h.
Referenced by demonstrate_summary().

|
inline |
Reset summary.
Definition at line 344 of file metric_types.h.
References count, max_value, min_value, and sum.
Referenced by demonstrate_summary().

| uint64_t kcenon::monitoring::summary_data::count = 0 |
Definition at line 319 of file metric_types.h.
Referenced by add_sample(), demonstrate_summary(), mean(), and reset().
| double kcenon::monitoring::summary_data::max_value = (std::numeric_limits<double>::lowest)() |
Definition at line 322 of file metric_types.h.
Referenced by add_sample(), demonstrate_summary(), and reset().
| double kcenon::monitoring::summary_data::min_value = (std::numeric_limits<double>::max)() |
Definition at line 321 of file metric_types.h.
Referenced by add_sample(), demonstrate_summary(), and reset().
| double kcenon::monitoring::summary_data::sum = 0.0 |
Definition at line 320 of file metric_types.h.
Referenced by add_sample(), demonstrate_summary(), mean(), and reset().