#include <userver/utils/statistics/histogram_view.hpp>
The non-owning reader API for "histogram" metrics.
HistogramView is cheap to copy, expected to be passed around by value.
Definition at line 26 of file histogram_view.hpp.
Public Member Functions | |
HistogramView (const HistogramView &) noexcept=default | |
HistogramView & | operator= (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. | |
|
noexcept |
Returns the occurrence count for the "infinity" bucket (greater than the largest bucket boundary).