[][src]Enum hotmic::Facet

pub enum Facet<T> {
    Count(T),
    Gauge(T),
    TimingPercentile(T),
    ValuePercentile(T),
}

Type of computation against aggregated/processed samples.

Facets are, in essence, views over given metrics: a count tallys up all the counts for a given metric to keep a single, globally-consistent value for all the matching samples seen, etc.

More simply, facets are essentially the same thing as a metric type: counters, gauges, histograms, etc. We treat them a little different because callers are never directly saying that they want to change the value of a counter, or histogram, they're saying that for a given metric type, they care about certain facets.

Variants

Count(T)

A count.

This could be the number of timing samples seen for a given metric, or the total count if modified via count samples.

Gauge(T)

A gauge.

Gauges are singluar values, and operate in last-write-wins mode.

TimingPercentile(T)

Timing-specific percentiles.

The histograms that back percentiles are currently hard-coded to track a windowed view of 60 seconds, with a 1 second interval. That is, they only store the last 10 seconds worth of data that they've been given.

ValuePercentile(T)

Value-specific percentiles.

The histograms that back percentiles are currently hard-coded to track a windowed view of 60 seconds, with a 1 second interval. That is, they only store the last 10 seconds worth of data that they've been given.

Trait Implementations

impl<T: Eq> Eq for Facet<T>
[src]

impl<T: PartialEq> PartialEq<Facet<T>> for Facet<T>
[src]

impl<T: Clone> Clone for Facet<T>
[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Facet<T>
[src]

impl<T: Hash> Hash for Facet<T>
[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<T> Send for Facet<T> where
    T: Send

impl<T> Sync for Facet<T> where
    T: Sync

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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