pub struct DataPoint<T> {
pub attributes: AttributeSet,
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: AttributeSet
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> 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