Trait glean_core::metrics::MetricIdentifier

source ·
pub trait MetricIdentifier<'a> {
    // Required method
    fn get_identifiers(&'a self) -> (&'a str, &'a str, Option<&'a str>);
}
Expand description

A MetricIdentifier describes an interface for retrieving an identifier (category, name, label) for a metric

Required Methods§

source

fn get_identifiers(&'a self) -> (&'a str, &'a str, Option<&'a str>)

Retrieve the category, name and (maybe) label of the metric

Implementors§

source§

impl<'a, T> MetricIdentifier<'a> for T
where T: MetricType,

impl<'a, K> MetricIdentifier<'a> for EventMetric<K>

impl<'a, K> MetricIdentifier<'a> for ObjectMetric<K>