|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Histogram data with buckets. More...
#include <metric_types.h>

Public Member Functions | |
| void | add_sample (double value) |
| Add value to histogram. | |
| double | mean () const noexcept |
| Get mean value. | |
| void | init_standard_buckets () |
| Initialize standard buckets. | |
Public Attributes | |
| std::vector< histogram_bucket > | buckets |
| uint64_t | total_count = 0 |
| double | sum = 0.0 |
Histogram data with buckets.
Definition at line 275 of file metric_types.h.
|
inline |
Add value to histogram.
Definition at line 283 of file metric_types.h.
References buckets, sum, and total_count.
Referenced by demonstrate_histogram(), TEST_F(), and TEST_F().

|
inline |
Initialize standard buckets.
Definition at line 304 of file metric_types.h.
References buckets.
Referenced by TEST_F(), TEST_F(), and TEST_F().

|
inlinenoexcept |
Get mean value.
Definition at line 297 of file metric_types.h.
References sum, and total_count.
Referenced by demonstrate_histogram(), TEST_F(), and TEST_F().

| std::vector<histogram_bucket> kcenon::monitoring::histogram_data::buckets |
Definition at line 276 of file metric_types.h.
Referenced by add_sample(), demonstrate_histogram(), init_standard_buckets(), TEST_F(), and TEST_F().
| double kcenon::monitoring::histogram_data::sum = 0.0 |
Definition at line 278 of file metric_types.h.
Referenced by add_sample(), demonstrate_histogram(), mean(), TEST_F(), and TEST_F().
| uint64_t kcenon::monitoring::histogram_data::total_count = 0 |
Definition at line 277 of file metric_types.h.
Referenced by add_sample(), demonstrate_histogram(), mean(), TEST_F(), and TEST_F().