pub struct MetricPoint {
pub name: String,
pub value: f64,
pub timestamp: DateTime<Utc>,
pub labels: HashMap<String, String>,
}
Expand description
Metric data point
Fields§
§name: String
Metric name
value: f64
Metric value
timestamp: DateTime<Utc>
Timestamp
labels: HashMap<String, String>
Labels
Trait Implementations§
Source§impl Clone for MetricPoint
impl Clone for MetricPoint
Source§fn clone(&self) -> MetricPoint
fn clone(&self) -> MetricPoint
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for MetricPoint
impl RefUnwindSafe for MetricPoint
impl Send for MetricPoint
impl Sync for MetricPoint
impl Unpin for MetricPoint
impl UnwindSafe for MetricPoint
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