Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
kcenon::network::metrics::histogram_config Struct Reference

Configuration for histogram bucket boundaries. More...

#include <histogram.h>

Collaboration diagram for kcenon::network::metrics::histogram_config:
Collaboration graph

Static Public Member Functions

static auto default_latency_config () -> histogram_config
 Create default configuration for network latencies.
 

Public Attributes

std::vector< double > bucket_boundaries
 Explicit bucket boundaries (upper bounds)
 

Detailed Description

Configuration for histogram bucket boundaries.

Definition at line 33 of file histogram.h.

Member Function Documentation

◆ default_latency_config()

static auto kcenon::network::metrics::histogram_config::default_latency_config ( ) -> histogram_config
inlinestatic

Create default configuration for network latencies.

Returns
Configuration with standard network latency buckets (milliseconds)

Definition at line 47 of file histogram.h.

48 {
49 return histogram_config{
50 {0.1, 0.5, 1.0, 2.0, 5.0, 10.0, 25.0, 50.0, 100.0, 250.0, 500.0, 1000.0, 2500.0, 5000.0,
51 10000.0}};
52 }

Referenced by kcenon::network::metrics::sliding_histogram_config::default_config(), and kcenon::network::metrics::histogram::histogram().

Here is the caller graph for this function:

Member Data Documentation

◆ bucket_boundaries

std::vector<double> kcenon::network::metrics::histogram_config::bucket_boundaries

Explicit bucket boundaries (upper bounds)

If empty, default network latency boundaries are used: {0.1, 0.5, 1, 2, 5, 10, 25, 50, 100, 250, 500, 1000, 2500, 5000, 10000}

Definition at line 41 of file histogram.h.

Referenced by kcenon::network::metrics::histogram::histogram().


The documentation for this struct was generated from the following file: