Running minimum, maximum, average, sum, and count for a sample period.
More...
#include <metrics.h>
|
| uint64_t | min { 0 } |
| | Minimum value observed in the period. More...
|
| |
| uint64_t | max { 0 } |
| | Maximum value observed in the period. More...
|
| |
| uint64_t | avg { 0 } |
| | Integer arithmetic mean for the period. More...
|
| |
| uint64_t | value_sum { 0 } |
| | Sum of values observed in the period. More...
|
| |
| uint64_t | value_count { 0 } |
| | Number of values observed in the period. More...
|
| |
Running minimum, maximum, average, sum, and count for a sample period.
◆ AddValue()
| void quicr::MinMaxAvg::AddValue |
( |
const uint64_t |
value | ) |
|
|
inline |
Add value to period.
Add value will update min/max/avg based on the value being added.
- Parameters
-
◆ Clear()
| void quicr::MinMaxAvg::Clear |
( |
| ) |
|
|
inline |
Reset every aggregate field to zero.
◆ Merge()
| void quicr::MinMaxAvg::Merge |
( |
const MinMaxAvg & |
other | ) |
|
|
inline |
Fold another period's values into this one.
Used to report a quantity that several producers contribute to, without having them share a counter.
- Parameters
-
| other | Aggregate values to add to this period. |
◆ operator<=>()
| constexpr auto quicr::MinMaxAvg::operator<=> |
( |
const MinMaxAvg & |
other | ) |
const |
|
constexprdefault |
Compare all aggregate fields.
- Parameters
-
| other | Aggregate to compare. |
- Returns
- Lexicographic comparison of the aggregate fields.
◆ avg
| uint64_t quicr::MinMaxAvg::avg { 0 } |
Integer arithmetic mean for the period.
◆ max
| uint64_t quicr::MinMaxAvg::max { 0 } |
Maximum value observed in the period.
◆ min
| uint64_t quicr::MinMaxAvg::min { 0 } |
Minimum value observed in the period.
◆ value_count
| uint64_t quicr::MinMaxAvg::value_count { 0 } |
Number of values observed in the period.
◆ value_sum
| uint64_t quicr::MinMaxAvg::value_sum { 0 } |
Sum of values observed in the period.
The documentation for this struct was generated from the following file: