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

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

Public Types

using ValueType = std::uint64_t
 

Public Member Functions

Rateoperator+= (Rate other) noexcept
 
 operator bool () const noexcept
 
bool operator== (const Rate &rhs) const noexcept
 
bool operator!= (const Rate &rhs) const noexcept
 
bool operator< (const Rate &rhs) const noexcept
 
bool operator> (const Rate &rhs) const noexcept
 
bool operator<= (const Rate &rhs) const noexcept
 
bool operator>= (const Rate &rhs) const noexcept
 

Public Attributes

ValueType value {0}
 

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 17 of file rate.hpp.

Member Typedef Documentation

◆ ValueType

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

Definition at line 18 of file rate.hpp.

Member Function Documentation

◆ operator bool()

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

Definition at line 27 of file rate.hpp.

◆ operator!=()

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

Definition at line 31 of file rate.hpp.

◆ operator+=()

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

Definition at line 22 of file rate.hpp.

◆ operator<()

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

Definition at line 33 of file rate.hpp.

◆ operator<=()

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

Definition at line 37 of file rate.hpp.

◆ operator==()

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

Definition at line 29 of file rate.hpp.

◆ operator>()

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

Definition at line 35 of file rate.hpp.

◆ operator>=()

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

Definition at line 39 of file rate.hpp.

Member Data Documentation

◆ value

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

Definition at line 20 of file rate.hpp.


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