Skip to main content

Metric

Trait Metric 

Source
pub trait Metric {
    // Required methods
    fn metric_name(&self) -> &MetricName;
    fn metric_value(&self) -> MetricValue;
}
Expand description

A metric tracked for monitoring purposes.

Required Methods§

Source

fn metric_name(&self) -> &MetricName

A name for this metric.

Source

fn metric_value(&self) -> MetricValue

The value of the metric, which may be measurable or a non-measurable gauge.

Implementors§