Skip to navigation

Struct Diagnostic Event

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 DiagnosticEvent {
    pub sequence: DiagnosticNumber,
    pub observed_at: DateTime<Utc>,
    pub component: ComponentIdentity,
    pub origin: DiagnosticOrigin,
    pub remote: Option<RemoteDiagnosticOrigin>,
    pub classification: Classification,
    pub context: PluginObservationContext,
    pub severity: DiagnosticSeverity,
    pub outcome: DiagnosticOutcome,
    pub detail: Option<DiagnosticDetail>,
    pub count: DiagnosticNumber,
    pub correlation: DiagnosticCorrelation<'static>,
}

One recent observation with its actual class and original configuration attribution.

Fields

sequence: DiagnosticNumber

Unique source-local update sequence; it is not an occurrence counter.

observed_at: DateTime<Utc>

Source observation time, preserved through projections.

component: ComponentIdentity

Registration that owned the original observation.

origin: DiagnosticOrigin

Original configuration attribution, preserved through component refresh.

remote: Option<RemoteDiagnosticOrigin>

Authenticated remote submission provenance, absent for local observations.

classification: Classification

Canonical event classification; never reconstructed from a latest message.

context: PluginObservationContext

Bounded plugin-operation wire facts, excluded from aggregation keys.

severity: DiagnosticSeverity

Evidence severity, independent of its observed operation outcome.

outcome: DiagnosticOutcome

Explicit observed operation outcome.

detail: Option<DiagnosticDetail>

Bounded optional evidence; absence does not imply a missing counter.

count: DiagnosticNumber

Input occurrence delta represented by this recording call.

correlation: DiagnosticCorrelation<'static>

Restricted caller correlation, excluded from aggregation identity.

Implementations

impl DiagnosticEvent

impl DiagnosticEvent

code

pub fn code(&self) -> &str

Borrow the canonical code without allocating a second representation.

message

pub fn message(&self) -> Option<&str>

Borrow retained detail, when available.

Trait Implementations

impl Clone for DiagnosticEvent

impl Clone for DiagnosticEvent

clone

fn clone(&self) -> DiagnosticEvent

clone_from

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

impl Debug for DiagnosticEvent

impl Debug for DiagnosticEvent

fmt

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

impl<'de> Deserialize<'de> for DiagnosticEvent

impl<'de> Deserialize<'de> for DiagnosticEvent

deserialize

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

impl PartialEq for DiagnosticEvent

impl PartialEq for DiagnosticEvent

eq

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

ne

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

impl Serialize for DiagnosticEvent

impl Serialize for DiagnosticEvent

serialize

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

impl Eq for DiagnosticEvent

impl Eq for DiagnosticEvent

impl StructuralPartialEq for DiagnosticEvent

impl StructuralPartialEq for DiagnosticEvent