Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
kcenon::monitoring::histogram_bucket Struct Reference

Bucket for histogram metrics. More...

#include <metric_types.h>

Collaboration diagram for kcenon::monitoring::histogram_bucket:
Collaboration graph

Public Member Functions

 histogram_bucket (double bound=0.0, uint64_t cnt=0) noexcept
 
bool operator< (const histogram_bucket &other) const noexcept
 

Public Attributes

double upper_bound
 
uint64_t count
 

Detailed Description

Bucket for histogram metrics.

Definition at line 259 of file metric_types.h.

Constructor & Destructor Documentation

◆ histogram_bucket()

kcenon::monitoring::histogram_bucket::histogram_bucket ( double bound = 0.0,
uint64_t cnt = 0 )
inlinenoexcept

Definition at line 263 of file metric_types.h.

Member Function Documentation

◆ operator<()

bool kcenon::monitoring::histogram_bucket::operator< ( const histogram_bucket & other) const
inlinenoexcept

Definition at line 266 of file metric_types.h.

266 {
267 return upper_bound < other.upper_bound;
268 }

References kcenon::monitoring::other, and upper_bound.

Member Data Documentation

◆ count

uint64_t kcenon::monitoring::histogram_bucket::count

Definition at line 261 of file metric_types.h.

◆ upper_bound

double kcenon::monitoring::histogram_bucket::upper_bound

Definition at line 260 of file metric_types.h.

Referenced by operator<().


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