[][src]Struct hotmic::snapshot::SummarizedHistogram

pub struct SummarizedHistogram { /* fields omitted */ }

A pre-summarized histogram.

Based on the configuration of the [Receiver], this histogram will represent only the configured percentiles to extract for a given underlying histogram, as well as the measurement count for the underlying histogram.

Methods

impl SummarizedHistogram[src]

pub fn count(&self) -> u64[src]

Gets the total count of measurements present in the underlying histogram.

pub fn sum(&self) -> u64[src]

Gets the total sum of the measurements recorded in the underlying histogram.

pub fn measurements(&self) -> &HashMap<Percentile, u64>[src]

Gets the map of percentile/value pairs extracted from the underlying histogram.

Trait Implementations

impl PartialEq<SummarizedHistogram> for SummarizedHistogram[src]

impl Eq for SummarizedHistogram[src]

impl Debug for SummarizedHistogram[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Erased for T