userver: utils::statistics::HistogramView Class Reference
Loading...
Searching...
No Matches
utils::statistics::HistogramView Class Referencefinal

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

Detailed Description

The non-owning reader API for "histogram" metrics.

See also
utils::statistics::Histogram for details on semantics

HistogramView is cheap to copy, expected to be passed around by value.

Definition at line 26 of file histogram_view.hpp.

Public Member Functions

constexpr HistogramView (const HistogramView &) noexcept=default
 
constexpr HistogramViewoperator= (const HistogramView &) noexcept=default
 
std::size_t GetBucketCount () const noexcept
 Returns the number of "normal" (non-"infinity") buckets.
 
double GetUpperBoundAt (std::size_t index) const
 Returns the upper bucket boundary for the given bucket.
 
std::uint64_t GetValueAt (std::size_t index) const
 Returns the occurrence count for the given bucket.
 
std::uint64_t GetValueAtInf () const noexcept
 
std::uint64_t GetTotalCount () const noexcept
 Returns the sum of counts from all buckets.
 
double GetSumAt (std::size_t index) const
 Returns sum of values from the given bucket.
 
double GetSumAtInf () const noexcept
 (greater than the largest bucket boundary).
 
double GetTotalSum () const noexcept
 Returns sum of values from all buckets.
 

Member Function Documentation

◆ GetValueAtInf()

std::uint64_t utils::statistics::HistogramView::GetValueAtInf ( ) const
noexcept

Returns the occurrence count for the "infinity" bucket (greater than the largest bucket boundary).


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