Skip to navigation

Struct Diagnostic Totals

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.

pub struct DiagnosticTotals {
    pub recorded_events_total: DiagnosticCount,
    pub occurrences_total: DiagnosticCount,
    pub history_evictions_total: DiagnosticCount,
    pub successes_total: DiagnosticCount,
    pub failures_total: DiagnosticCount,
    pub unspecified_total: DiagnosticCount,
}

Fixed numeric accounting for one explicitly identified lifetime or refresh scope.

Recent-evidence loss cannot roll back accepted counts. Saturated counts remain explicit lower bounds. Code and event filters never redefine the summary scope.

Fields

recorded_events_total: DiagnosticCount

Accepted recording calls, one per call regardless of occurrence delta.

occurrences_total: DiagnosticCount

Accepted occurrence deltas across all outcomes and codes.

history_evictions_total: DiagnosticCount

Previously retained events owned by this component or context and evicted.

successes_total: DiagnosticCount

Occurrences whose owning operation explicitly succeeded.

failures_total: DiagnosticCount

Occurrences whose owning operation explicitly failed.

unspecified_total: DiagnosticCount

Occurrences without an established operation outcome.

Implementations

impl DiagnosticTotals

impl DiagnosticTotals

record

pub fn record(&mut self, outcome: DiagnosticOutcome, count: u64)

Add one accepted recording call and its observed occurrence delta.

The recording boundary validates the positive delta before updating every applicable scope. This helper does not perform admission or retain evidence.

Trait Implementations

impl Clone for DiagnosticTotals

impl Clone for DiagnosticTotals

clone

fn clone(&self) -> DiagnosticTotals

clone_from

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

impl Debug for DiagnosticTotals

impl Debug for DiagnosticTotals

fmt

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

impl Default for DiagnosticTotals

impl Default for DiagnosticTotals

default

fn default() -> DiagnosticTotals

impl<'de> Deserialize<'de> for DiagnosticTotals

impl<'de> Deserialize<'de> for DiagnosticTotals

deserialize

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

impl PartialEq for DiagnosticTotals

impl PartialEq for DiagnosticTotals

eq

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

ne

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

impl Serialize for DiagnosticTotals

impl Serialize for DiagnosticTotals

serialize

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

impl Copy for DiagnosticTotals

impl Copy for DiagnosticTotals

impl Eq for DiagnosticTotals

impl Eq for DiagnosticTotals

impl StructuralPartialEq for DiagnosticTotals

impl StructuralPartialEq for DiagnosticTotals