[][src]Struct hdrhistogram::serialization::interval_log::IntervalLogHistogram

pub struct IntervalLogHistogram<'a> { /* fields omitted */ }

An individual interval histogram parsed from an interval log.

Methods

impl<'a> IntervalLogHistogram<'a>[src]

pub fn tag(&self) -> Option<Tag<'a>>[src]

Tag, if any is present.

pub fn start_timestamp(&self) -> Duration[src]

Timestamp of the start of the interval in seconds, expressed as a Duration relative to some start point.

The timestamp may be absolute vs the epoch, or there may be a StartTime or BaseTime for the log, in which case you may wish to consider this number as a delta vs those timestamps. See the module-level documentation about timestamps.

pub fn duration(&self) -> Duration[src]

Duration of the interval in seconds.

pub fn max(&self) -> f64[src]

Max value in the encoded histogram

This max value is the max of the histogram divided by some scaling factor (which may be 1.0).

pub fn encoded_histogram(&self) -> &'a str[src]

Base64-encoded serialized histogram.

If you need the deserialized histogram, base64-decode and use a Deserializer on the resulting bytes.

Trait Implementations

impl<'a> PartialEq<IntervalLogHistogram<'a>> for IntervalLogHistogram<'a>[src]

impl<'a> Debug for IntervalLogHistogram<'a>[src]

Auto Trait Implementations

impl<'a> Send for IntervalLogHistogram<'a>

impl<'a> Sync for IntervalLogHistogram<'a>

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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