Enum hotmic::Facet[][src]

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

A count.

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

A gauge.

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

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 60 seconds worth of data that they've been given.

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 60 seconds worth of data that they've been given.

Trait Implementations

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

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

Feeds this value into the given [Hasher]. Read more

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

Auto Trait Implementations

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

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