Enum kumo_prometheus::parser::Metric
source · pub enum Metric {
Counter(CounterMetric),
Gauge(GaugeMetric),
Histogram(HistogramMetric),
}
Variants§
Implementations§
source§impl Metric
impl Metric
pub fn name(&self) -> &InternString
pub fn label_is(&self, key: &str, value: &str) -> bool
pub fn labels(&self) -> &Map<InternString, InternString>
pub fn value(&self) -> f64
pub fn key(&self) -> Vec<InternString>
pub fn is_histogram(&self) -> bool
pub fn as_histogram(&self) -> &HistogramMetric
Trait Implementations§
impl StructuralPartialEq for Metric
Auto Trait Implementations§
impl Freeze for Metric
impl RefUnwindSafe for Metric
impl Send for Metric
impl Sync for Metric
impl Unpin for Metric
impl UnwindSafe for Metric
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