pub enum OpenMetricsType {
Counter,
Gauge,
}
Variants§
Counter
Counters measure discrete events. Common examples are the number of HTTP requests received, CPU seconds spent, or bytes sent. For counters how quickly they are increasing over time is what is of interest to a user.
Gauge
Gauges are current measurements, such as bytes of memory currently used or the number of items in a queue. For gauges the absolute value is what is of interest to a user.
Trait Implementations§
Source§impl Clone for OpenMetricsType
impl Clone for OpenMetricsType
Source§fn clone(&self) -> OpenMetricsType
fn clone(&self) -> OpenMetricsType
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 moreAuto Trait Implementations§
impl Freeze for OpenMetricsType
impl RefUnwindSafe for OpenMetricsType
impl Send for OpenMetricsType
impl Sync for OpenMetricsType
impl Unpin for OpenMetricsType
impl UnwindSafe for OpenMetricsType
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