|
Network System 0.1.1
High-performance modular networking library for scalable client-server applications
|
Configuration for sliding window histogram. More...
#include <sliding_histogram.h>

Static Public Member Functions | |
| static auto | default_config () -> sliding_histogram_config |
| Create default configuration (60 second window, 6 buckets = 10s each) | |
Public Attributes | |
| histogram_config | hist_config |
| Histogram bucket configuration. | |
| std::chrono::seconds | window_duration {60} |
| Total window duration. | |
| size_t | bucket_count {6} |
| Number of time buckets. | |
Configuration for sliding window histogram.
Definition at line 31 of file sliding_histogram.h.
|
inlinestatic |
Create default configuration (60 second window, 6 buckets = 10s each)
Definition at line 41 of file sliding_histogram.h.
References kcenon::network::metrics::histogram_config::default_latency_config().

| size_t kcenon::network::metrics::sliding_histogram_config::bucket_count {6} |
Number of time buckets.
Definition at line 35 of file sliding_histogram.h.
Referenced by kcenon::network::metrics::sliding_histogram::sliding_histogram().
| histogram_config kcenon::network::metrics::sliding_histogram_config::hist_config |
Histogram bucket configuration.
Definition at line 33 of file sliding_histogram.h.
| std::chrono::seconds kcenon::network::metrics::sliding_histogram_config::window_duration {60} |
Total window duration.
Definition at line 34 of file sliding_histogram.h.
Referenced by kcenon::network::metrics::sliding_histogram::expire_old_buckets(), and kcenon::network::metrics::sliding_histogram::window_duration().