Trait mz_ore::metrics::MetricVec_
source · pub trait MetricVec_: Sized {
type M: Metric;
// Required methods
fn get_metric_with_label_values(
&self,
vals: &[&str],
) -> Result<Self::M, Error>;
fn get_metric_with(
&self,
labels: &HashMap<&'_ str, &'_ str>,
) -> Result<Self::M, Error>;
fn remove_label_values(&self, vals: &[&str]) -> Result<(), Error>;
fn remove(&self, labels: &HashMap<&'_ str, &'_ str>) -> Result<(), Error>;
}
Available on crate feature
metrics
only.Expand description
A trait that allows being generic over MetricVec
s.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.