Skip to navigation

Struct Gauge Summary

View as Markdown

Generated from cargo doc --no-deps -p nemo-fabric-core.

pub struct GaugeSummary {
    pub unit: String,
    pub final_value: Option<u64>,
    pub min: Option<u64>,
    pub sampled_peak: Option<u64>,
    pub time_weighted_mean: Option<f64>,
    pub valid_samples: u32,
    pub covered_seconds: f64,
    pub covered_fraction: f64,
}

A sampled gauge over the invocation window. Min/max cover retained valid samples. Mean holds the previous value only across adjacent valid samples no more than twice the requested cadence apart. Missing intervals never contribute zero. No sampled maximum claims a true process high-water mark.

Fields

unit: String

byte for RSS or process for process count.

final_value: Option<u64>

Final endpoint, absent if its reading failed.

min: Option<u64>

Minimum retained value.

sampled_peak: Option<u64>

Maximum retained value, not an unsampled high-water mark.

time_weighted_mean: Option<f64>

Hold-last-value integral divided by covered seconds, or unknown.

valid_samples: u32

Number of valid retained readings for this metric.

covered_seconds: f64

Seconds covered by valid adjacent readings.

covered_fraction: f64

Covered seconds divided by invocation duration.

Trait Implementations

impl Clone for GaugeSummary

impl Clone for GaugeSummary

clone

fn clone(&self) -> GaugeSummary

clone_from

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

impl Debug for GaugeSummary

impl Debug for GaugeSummary

fmt

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

impl<'de> Deserialize<'de> for GaugeSummary

impl<'de> Deserialize<'de> for GaugeSummary

deserialize

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

impl JsonSchema for GaugeSummary

impl JsonSchema for GaugeSummary

schema_name

fn schema_name() -> Cow<'static, str>

schema_id

fn schema_id() -> Cow<'static, str>

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

inline_schema

fn inline_schema() -> bool

impl PartialEq for GaugeSummary

impl PartialEq for GaugeSummary

eq

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

ne

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

impl Serialize for GaugeSummary

impl Serialize for GaugeSummary

serialize

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

impl StructuralPartialEq for GaugeSummary

impl StructuralPartialEq for GaugeSummary