pub struct MetricData {
pub name: String,
pub value: f64,
pub labels: HashMap<String, String>,
pub timestamp: Instant,
pub metric_type: MetricType,
}Expand description
Metric data for batching
Fields§
§name: String§value: f64§labels: HashMap<String, String>§timestamp: Instant§metric_type: MetricTypeImplementations§
Trait Implementations§
Source§impl Clone for MetricData
impl Clone for MetricData
Source§fn clone(&self) -> MetricData
fn clone(&self) -> MetricData
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 moreSource§impl Debug for MetricData
impl Debug for MetricData
Source§impl MemoryEstimator for MetricData
impl MemoryEstimator for MetricData
fn estimated_size(&self) -> usize
Auto Trait Implementations§
impl Freeze for MetricData
impl RefUnwindSafe for MetricData
impl Send for MetricData
impl Sync for MetricData
impl Unpin for MetricData
impl UnsafeUnpin for MetricData
impl UnwindSafe for MetricData
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