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.
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 10 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 10 seconds worth
of data that they've been given.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given [Hasher
]. Read more
Feeds a slice of this type into the given [Hasher
]. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static