pub struct Metric {
pub name: String,
pub kind: MetricKind,
pub value: MetricValue,
pub labels: HashMap<String, String>,
pub last_update: u64,
}Expand description
A single named metric with labels and a current value.
Fields§
§name: String§kind: MetricKind§value: MetricValue§labels: HashMap<String, String>§last_update: u64Unix millisecond timestamp of the last update.
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 UnsafeUnpin 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