pub struct CustomMetric {
pub name: String,
pub value: f64,
pub tags: FxHashMap<String, String>,
pub timestamp: u64,
}Expand description
Definition of a custom metric with tags
Represents a single metric value with associated metadata tags for dimensional analysis in monitoring systems.
Fields§
§name: StringMetric name following Prometheus naming conventions
value: f64Numeric value of the metric
Key-value tags for metric dimensions
timestamp: u64Collection timestamp in nanoseconds
Trait Implementations§
Source§impl Clone for CustomMetric
impl Clone for CustomMetric
Source§fn clone(&self) -> CustomMetric
fn clone(&self) -> CustomMetric
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CustomMetric
impl RefUnwindSafe for CustomMetric
impl Send for CustomMetric
impl Sync for CustomMetric
impl Unpin for CustomMetric
impl UnwindSafe for CustomMetric
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