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
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 60 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 60 seconds worth of data that they've been given.
Trait Implementations
impl<T: PartialEq> PartialEq for Facet<T>
[src]
impl<T: PartialEq> PartialEq for Facet<T>
fn eq(&self, other: &Facet<T>) -> bool
[src]
fn eq(&self, other: &Facet<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Facet<T>) -> bool
[src]
fn ne(&self, other: &Facet<T>) -> bool
This method tests for !=
.
impl<T: Eq> Eq for Facet<T>
[src]
impl<T: Eq> Eq for Facet<T>
impl<T: Hash> Hash for Facet<T>
[src]
impl<T: Hash> Hash for Facet<T>
fn hash<__HT: Hasher>(&self, state: &mut __HT)
[src]
fn hash<__HT: Hasher>(&self, state: &mut __HT)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<T: Clone> Clone for Facet<T>
[src]
impl<T: Clone> Clone for Facet<T>
fn clone(&self) -> Facet<T>
[src]
fn clone(&self) -> Facet<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for Facet<T>
[src]
impl<T: Debug> Debug for Facet<T>