#include <userver/utils/statistics/rate.hpp>
Rate metrics (or "counter" metrics) are metrics that only monotonically increase or are reset to zero on restart. Some monitoring systems give them special treatment with regard to maintaining proper non-negative derivative.
- Examples
- samples/tcp_full_duplex_service/main.cpp.
Definition at line 19 of file rate.hpp.
◆ ValueType
| using utils::statistics::Rate::ValueType = std::uint64_t |
◆ operator bool()
| utils::statistics::Rate::operator bool |
( |
| ) |
const |
|
inlineexplicitnoexcept |
◆ operator!=() [1/2]
| bool utils::statistics::Rate::operator!= |
( |
Rate | rhs | ) |
const |
|
inlinenoexcept |
◆ operator!=() [2/2]
| bool utils::statistics::Rate::operator!= |
( |
std::uint64_t | rhs | ) |
const |
|
inlinenoexcept |
◆ operator+=()
| Rate & utils::statistics::Rate::operator+= |
( |
Rate | other | ) |
|
|
inlinenoexcept |
◆ operator-()
| Rate utils::statistics::Rate::operator- |
( |
Rate | rhs | ) |
const |
|
inlinenoexcept |
◆ operator<() [1/2]
| bool utils::statistics::Rate::operator< |
( |
Rate | rhs | ) |
const |
|
inlinenoexcept |
◆ operator<() [2/2]
| bool utils::statistics::Rate::operator< |
( |
std::uint64_t | rhs | ) |
const |
|
inlinenoexcept |
◆ operator<=() [1/2]
| bool utils::statistics::Rate::operator<= |
( |
Rate | rhs | ) |
const |
|
inlinenoexcept |
◆ operator<=() [2/2]
| bool utils::statistics::Rate::operator<= |
( |
std::uint64_t | rhs | ) |
const |
|
inlinenoexcept |
◆ operator==() [1/2]
| bool utils::statistics::Rate::operator== |
( |
Rate | rhs | ) |
const |
|
inlinenoexcept |
◆ operator==() [2/2]
| bool utils::statistics::Rate::operator== |
( |
std::uint64_t | rhs | ) |
const |
|
inlinenoexcept |
◆ operator>() [1/2]
| bool utils::statistics::Rate::operator> |
( |
Rate | rhs | ) |
const |
|
inlinenoexcept |
◆ operator>() [2/2]
| bool utils::statistics::Rate::operator> |
( |
std::uint64_t | rhs | ) |
const |
|
inlinenoexcept |
◆ operator>=() [1/2]
| bool utils::statistics::Rate::operator>= |
( |
Rate | rhs | ) |
const |
|
inlinenoexcept |
◆ operator>=() [2/2]
| bool utils::statistics::Rate::operator>= |
( |
std::uint64_t | rhs | ) |
const |
|
inlinenoexcept |
◆ value
| ValueType utils::statistics::Rate::value {0} |
The documentation for this struct was generated from the following file: