Struct opentelemetry::sdk::export::metrics::aggregation::AggregationKind
source · pub struct AggregationKind(_);
Available on crate feature
metrics
only.Expand description
A short name for the Aggregator
that produces an Aggregation
.
Kind is a string to allow user-defined Aggregators.
When deciding how to handle an Aggregation, Exporters are encouraged to decide based on conversion to the above interfaces based on strength, not on Kind value, when deciding how to expose metric data. This enables user-supplied Aggregators to replace builtin Aggregators.
For example, test for a Histogram before testing for a Sum, and so on.
Implementations§
source§impl AggregationKind
impl AggregationKind
sourcepub const SUM: AggregationKind = AggregationKind("SUM")
pub const SUM: AggregationKind = AggregationKind("SUM")
Aggregations that return an aggregated sum.
sourcepub const HISTOGRAM: AggregationKind = AggregationKind("HISTOGRAM")
pub const HISTOGRAM: AggregationKind = AggregationKind("HISTOGRAM")
Aggregations that return a distribution
sourcepub const MIN: AggregationKind = AggregationKind("MIN")
pub const MIN: AggregationKind = AggregationKind("MIN")
Aggregations that return a minimum.
sourcepub const MAX: AggregationKind = AggregationKind("MAX")
pub const MAX: AggregationKind = AggregationKind("MAX")
Aggregations that return a minimum.
sourcepub const LAST_VALUE: AggregationKind = AggregationKind("LAST_VALUE")
pub const LAST_VALUE: AggregationKind = AggregationKind("LAST_VALUE")
Aggregations that return only the latest value.
sourcepub const fn new(name: &'static str) -> AggregationKind
pub const fn new(name: &'static str) -> AggregationKind
Create a new custom aggregation kind
Trait Implementations§
source§impl Clone for AggregationKind
impl Clone for AggregationKind
source§fn clone(&self) -> AggregationKind
fn clone(&self) -> AggregationKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AggregationKind
impl Debug for AggregationKind
source§impl PartialEq<AggregationKind> for AggregationKind
impl PartialEq<AggregationKind> for AggregationKind
source§fn eq(&self, other: &AggregationKind) -> bool
fn eq(&self, other: &AggregationKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AggregationKind
impl StructuralEq for AggregationKind
impl StructuralPartialEq for AggregationKind
Auto Trait Implementations§
impl RefUnwindSafe for AggregationKind
impl Send for AggregationKind
impl Sync for AggregationKind
impl Unpin for AggregationKind
impl UnwindSafe for AggregationKind
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.