Skip to main content

AggregationKey

Trait AggregationKey 

Source
pub trait AggregationKey {
    const LABEL_NAMES: &'static [&'static str];

    // Required method
    fn label_values(&self) -> Vec<String>;
}
Available on crate feature metrics only.
Expand description

Identifies one object in the _topk families.

Required Associated Constants§

Source

const LABEL_NAMES: &'static [&'static str]

The label names of a _topk series.

Required Methods§

Source

fn label_values(&self) -> Vec<String>

The label values of this object, one per Self::LABEL_NAMES entry. Only called for objects that make a top-K.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§