Enum usiem::components::metrics::SiemMetric
source · pub enum SiemMetric {
Counter(Arc<AtomicI64>),
Gauge(Arc<AtomicI64>, f32),
Timer(Arc<AtomicU64>),
Histogram(HistogramMetric),
Summary(SummaryMetric),
}
Expand description
Metrics to be registered in the kernel.
Variants
Counter(Arc<AtomicI64>)
Gauge(Arc<AtomicI64>, f32)
Atomic reference and a multiplier
Timer(Arc<AtomicU64>)
Timer in milliseconds
Histogram(HistogramMetric)
Summary(SummaryMetric)
Trait Implementations
sourceimpl Clone for SiemMetric
impl Clone for SiemMetric
sourcefn clone(&self) -> SiemMetric
fn clone(&self) -> SiemMetric
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SiemMetric
impl Debug for SiemMetric
sourceimpl Serialize for SiemMetric
impl Serialize for SiemMetric
Auto Trait Implementations
impl RefUnwindSafe for SiemMetric
impl Send for SiemMetric
impl Sync for SiemMetric
impl Unpin for SiemMetric
impl UnwindSafe for SiemMetric
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more