pub struct Metric {
pub name: String,
pub value: f64,
pub timestamp: u64,
pub dimensions: HashMap<String, String>,
pub unit: Option<String>,
}Expand description
Metric data point.
Fields§
§name: StringMetric name.
value: f64Metric value.
timestamp: u64Timestamp of the metric.
dimensions: HashMap<String, String>Metric dimensions/labels.
unit: Option<String>Metric unit (e.g., “Count”, “Seconds”, “Bytes”).
Implementations§
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