Struct opentelemetry::sdk::export::metrics::aggregation::AggregationKind
source · [−]pub struct AggregationKind(_);
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
sourceimpl 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 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
sourceimpl Clone for AggregationKind
impl Clone for AggregationKind
sourcefn clone(&self) -> AggregationKind
fn clone(&self) -> AggregationKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AggregationKind
impl Debug for AggregationKind
sourceimpl PartialEq<AggregationKind> for AggregationKind
impl PartialEq<AggregationKind> for AggregationKind
sourcefn 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 ==
. Read more
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.