Enum Metric Temporality

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

1pub enum MetricTemporality {
2 Cumulative,
3 Delta,
4 LowMemory,
5}

Preferred aggregation temporality for OTLP metrics.

Variants

Cumulative

Cumulative

Accumulate values from process start.

Delta

Delta

Export values recorded since the previous collection when supported.

LowMemory

LowMemory

Favor delta aggregation for counters and histograms to reduce memory.

Implementations

impl MetricTemporality

impl MetricTemporality

as_str

pub const fn as_str(self) -> &'static str

Return the canonical config value.

Trait Implementations

impl Clone for MetricTemporality

impl Clone for MetricTemporality

clone

fn clone(&self) -> MetricTemporality

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for MetricTemporality

impl Debug for MetricTemporality

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for MetricTemporality

impl Default for MetricTemporality

default

fn default() -> MetricTemporality

impl<'de> Deserialize<'de> for MetricTemporality

impl<'de> Deserialize<'de> for MetricTemporality

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl FromStr for MetricTemporality

impl FromStr for MetricTemporality

Err

type Err = String

from_str

fn from_str(value: &str) -> Result<Self, Self::Err>

impl PartialEq for MetricTemporality

impl PartialEq for MetricTemporality

eq

fn eq(&self, other: &MetricTemporality) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for MetricTemporality

impl Serialize for MetricTemporality

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl Copy for MetricTemporality

impl Copy for MetricTemporality

impl Eq for MetricTemporality

impl Eq for MetricTemporality

impl StructuralPartialEq for MetricTemporality

impl StructuralPartialEq for MetricTemporality