[][src]Struct hotmic::Snapshot

pub struct Snapshot { /* fields omitted */ }

A point-in-time view of metric data.

Methods

impl Snapshot
[src]

pub fn count(&self, key: &str) -> Option<&i64>
[src]

Gets the counter value for the given metric key.

Returns None if the metric key has no counter value in this snapshot.

pub fn value(&self, key: &str) -> Option<&u64>
[src]

Gets the gauge value for the given metric key.

Returns None if the metric key has no gauge value in this snapshot.

pub fn timing_percentile(
    &self,
    key: &str,
    percentile: Percentile
) -> Option<&u64>
[src]

Gets the given timing percentile for given metric key.

Returns None if the metric key has no value at the given percentile in this snapshot.

pub fn value_percentile(
    &self,
    key: &str,
    percentile: Percentile
) -> Option<&u64>
[src]

Gets the given value percentile for the given metric key.

Returns None if the metric key has no value at the given percentile in this snapshot.

pub fn get_signed_data(&self) -> Vec<(String, i64)>
[src]

Gets a collection of the metrics with signed values.

pub fn get_unsigned_data(&self) -> Vec<(String, u64)>
[src]

Gets a collection of the metrics with unsigned values.

Trait Implementations

impl Default for Snapshot
[src]

Auto Trait Implementations

impl Send for Snapshot

impl Sync for Snapshot

Blanket Implementations

impl<T> From for T
[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Erased for T