Struct opentelemetry_sdk::metrics::data::DataPoint
source · pub struct DataPoint<T> {
pub attributes: Vec<KeyValue>,
pub start_time: Option<SystemTime>,
pub time: Option<SystemTime>,
pub value: T,
pub exemplars: Vec<Exemplar<T>>,
}
Expand description
DataPoint is a single data point in a time series.
Fields§
§attributes: Vec<KeyValue>
Attributes is the set of key value pairs that uniquely identify the time series.
start_time: Option<SystemTime>
The time when the time series was started.
time: Option<SystemTime>
The time when the time series was recorded.
value: T
The value of this data point.
exemplars: Vec<Exemplar<T>>
The sampled Exemplars collected during the time series.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for DataPoint<T>where
T: Freeze,
impl<T> RefUnwindSafe for DataPoint<T>where
T: RefUnwindSafe,
impl<T> Send for DataPoint<T>where
T: Send,
impl<T> Sync for DataPoint<T>where
T: Sync,
impl<T> Unpin for DataPoint<T>where
T: Unpin,
impl<T> UnwindSafe for DataPoint<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)