userver: utils::statistics::Rate Struct Reference
Loading...
Searching...
No Matches
utils::statistics::Rate Struct Reference

#include <userver/utils/statistics/rate.hpp>

Detailed Description

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.

Definition at line 15 of file rate.hpp.

Public Types

using ValueType = std::uint64_t
 

Public Member Functions

Rateoperator+= (Rate other) noexcept
 
 operator bool () const noexcept
 
bool operator== (Rate rhs) const noexcept
 
bool operator!= (Rate rhs) const noexcept
 
bool operator< (Rate rhs) const noexcept
 
bool operator> (Rate rhs) const noexcept
 
bool operator<= (Rate rhs) const noexcept
 
bool operator>= (Rate rhs) const noexcept
 
bool operator== (std::uint64_t rhs) const noexcept
 
bool operator!= (std::uint64_t rhs) const noexcept
 
bool operator< (std::uint64_t rhs) const noexcept
 
bool operator> (std::uint64_t rhs) const noexcept
 
bool operator<= (std::uint64_t rhs) const noexcept
 
bool operator>= (std::uint64_t rhs) const noexcept
 

Public Attributes

ValueType value {0}
 

Member Typedef Documentation

◆ ValueType

using utils::statistics::Rate::ValueType = std::uint64_t

Definition at line 16 of file rate.hpp.

Member Function Documentation

◆ operator bool()

utils::statistics::Rate::operator bool ( ) const
inlineexplicitnoexcept

Definition at line 25 of file rate.hpp.

◆ operator!=() [1/2]

bool utils::statistics::Rate::operator!= ( Rate rhs) const
inlinenoexcept

Definition at line 29 of file rate.hpp.

◆ operator!=() [2/2]

bool utils::statistics::Rate::operator!= ( std::uint64_t rhs) const
inlinenoexcept

Definition at line 41 of file rate.hpp.

◆ operator+=()

Rate & utils::statistics::Rate::operator+= ( Rate other)
inlinenoexcept

Definition at line 20 of file rate.hpp.

◆ operator<() [1/2]

bool utils::statistics::Rate::operator< ( Rate rhs) const
inlinenoexcept

Definition at line 31 of file rate.hpp.

◆ operator<() [2/2]

bool utils::statistics::Rate::operator< ( std::uint64_t rhs) const
inlinenoexcept

Definition at line 43 of file rate.hpp.

◆ operator<=() [1/2]

bool utils::statistics::Rate::operator<= ( Rate rhs) const
inlinenoexcept

Definition at line 35 of file rate.hpp.

◆ operator<=() [2/2]

bool utils::statistics::Rate::operator<= ( std::uint64_t rhs) const
inlinenoexcept

Definition at line 47 of file rate.hpp.

◆ operator==() [1/2]

bool utils::statistics::Rate::operator== ( Rate rhs) const
inlinenoexcept

Definition at line 27 of file rate.hpp.

◆ operator==() [2/2]

bool utils::statistics::Rate::operator== ( std::uint64_t rhs) const
inlinenoexcept

Definition at line 39 of file rate.hpp.

◆ operator>() [1/2]

bool utils::statistics::Rate::operator> ( Rate rhs) const
inlinenoexcept

Definition at line 33 of file rate.hpp.

◆ operator>() [2/2]

bool utils::statistics::Rate::operator> ( std::uint64_t rhs) const
inlinenoexcept

Definition at line 45 of file rate.hpp.

◆ operator>=() [1/2]

bool utils::statistics::Rate::operator>= ( Rate rhs) const
inlinenoexcept

Definition at line 37 of file rate.hpp.

◆ operator>=() [2/2]

bool utils::statistics::Rate::operator>= ( std::uint64_t rhs) const
inlinenoexcept

Definition at line 49 of file rate.hpp.

Member Data Documentation

◆ value

ValueType utils::statistics::Rate::value {0}

Definition at line 18 of file rate.hpp.


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