pub enum MetricEvent {
Counter(String, u64),
Gauge(String, f64),
Timing(String, u64),
ThresholdExceeded(String, f64, f64),
}Expand description
Type of metric event.
Variants§
Counter(String, u64)
Counter metric (name, value)
Gauge(String, f64)
Gauge metric (name, value)
Timing(String, u64)
Timing metric (name, duration_us)
ThresholdExceeded(String, f64, f64)
Threshold exceeded (metric, value, threshold)
Trait Implementations§
Source§impl Clone for MetricEvent
impl Clone for MetricEvent
Source§fn clone(&self) -> MetricEvent
fn clone(&self) -> MetricEvent
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 MetricEvent
impl Debug for MetricEvent
Source§impl PartialEq for MetricEvent
impl PartialEq for MetricEvent
impl StructuralPartialEq for MetricEvent
Auto Trait Implementations§
impl Freeze for MetricEvent
impl RefUnwindSafe for MetricEvent
impl Send for MetricEvent
impl Sync for MetricEvent
impl Unpin for MetricEvent
impl UnwindSafe for MetricEvent
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