|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Classes | |
| class | time_series_ring_buffer |
| Generic time-series ring buffer base template. More... | |
Functions | |
| double | calculate_percentile (const std::vector< double > &sorted_values, double percentile) |
| Calculate percentile from sorted values. | |
| time_series_statistics | calculate_basic_statistics (const std::vector< double > &values, std::chrono::system_clock::time_point oldest_timestamp, std::chrono::system_clock::time_point newest_timestamp) |
| Calculate basic statistics from a vector of double values. | |
|
inline |
Calculate basic statistics from a vector of double values.
| values | Vector of values to analyze |
| oldest_timestamp | Timestamp of oldest sample |
| newest_timestamp | Timestamp of newest sample |
Definition at line 140 of file time_series_buffer.h.
References kcenon::monitoring::time_series_statistics::avg, calculate_percentile(), kcenon::monitoring::time_series_statistics::max_value, kcenon::monitoring::time_series_statistics::min_value, kcenon::monitoring::time_series_statistics::newest_timestamp, kcenon::monitoring::time_series_statistics::oldest_timestamp, kcenon::monitoring::time_series_statistics::p95, kcenon::monitoring::time_series_statistics::p99, kcenon::monitoring::time_series_statistics::sample_count, and kcenon::monitoring::time_series_statistics::stddev.
Referenced by kcenon::monitoring::load_average_history::calculate_statistics(), and kcenon::monitoring::time_series_buffer< T >::calculate_statistics().


|
inline |
Calculate percentile from sorted values.
| sorted_values | Pre-sorted vector of values |
| percentile | Percentile to calculate (0-100) |
Definition at line 110 of file time_series_buffer.h.
Referenced by calculate_basic_statistics().
