Struct opentelemetry_sdk::metrics::data::Metric
source · pub struct Metric {
pub name: Cow<'static, str>,
pub description: Cow<'static, str>,
pub unit: Cow<'static, str>,
pub data: Box<dyn Aggregation>,
}
Expand description
A collection of one or more aggregated time series from an Instrument.
Fields§
§name: Cow<'static, str>
The name of the instrument that created this data.
description: Cow<'static, str>
The description of the instrument, which can be used in documentation.
unit: Cow<'static, str>
The unit in which the instrument reports.
data: Box<dyn Aggregation>
The aggregated data from an instrument.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metric
impl !RefUnwindSafe for Metric
impl Send for Metric
impl Sync for Metric
impl Unpin for Metric
impl !UnwindSafe for Metric
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more