Skip to navigation

Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -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>,
}

Referenced types: DiagnosticNumber, DateTime, Utc, ComponentIdentity, DiagnosticOrigin, Option, RemoteDiagnosticOrigin, Classification, PluginObservationContext, DiagnosticSeverity, DiagnosticOutcome, DiagnosticDetail, DiagnosticCorrelation

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

Referenced types: DiagnosticEvent

code

pub fn code(&self) -> &str

Referenced types: str

Borrow the canonical code without allocating a second representation.

message

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

Referenced types: Option, str

Borrow retained detail, when available.

Trait Implementations

impl Clone for DiagnosticEvent

impl Clone for DiagnosticEvent

Referenced types: Clone, DiagnosticEvent

clone

fn clone(&self) -> DiagnosticEvent

Referenced types: clone, DiagnosticEvent

clone_from

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

Referenced types: clone_from

impl Debug for DiagnosticEvent

impl Debug for DiagnosticEvent

Referenced types: Debug, DiagnosticEvent

fmt

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

Referenced types: fmt, Formatter, Result, (), Error

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

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

Referenced types: Deserialize, DiagnosticEvent

deserialize

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

Referenced types: deserialize, Result, DiagnosticEvent, Deserializer, Error

impl JsonSchema for DiagnosticEvent

impl JsonSchema for DiagnosticEvent

Referenced types: DiagnosticEvent

schema_name

fn schema_name() -> String

Referenced types: String

schema_id

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

Referenced types: Cow, str

json_schema

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

is_referenceable

fn is_referenceable() -> bool

Referenced types: bool

impl PartialEq for DiagnosticEvent

impl PartialEq for DiagnosticEvent

Referenced types: PartialEq, DiagnosticEvent

eq

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

Referenced types: eq, DiagnosticEvent, bool

ne

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

Referenced types: ne, &Rhs, bool

impl Serialize for DiagnosticEvent

impl Serialize for DiagnosticEvent

Referenced types: Serialize, DiagnosticEvent

serialize

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

Referenced types: serialize, Result, Serializer, Ok, Error

impl WireValue<Box<DiagnosticEvent>> for DiagnosticEvent

impl WireValue<Box<DiagnosticEvent>> for DiagnosticEvent

Referenced types: WireValue, Box, DiagnosticEvent, DiagnosticEvent

to_wire

fn to_wire(self) -> Result<Box<DiagnosticEvent>, ConversionError>

Referenced types: to_wire, Result, Box, DiagnosticEvent, ConversionError

from_wire

fn from_wire(
value: Box<DiagnosticEvent>,
) -> Result<DiagnosticEvent, ConversionError>

Referenced types: from_wire, Box, DiagnosticEvent, Result, DiagnosticEvent, ConversionError

impl WireValue<DiagnosticEvent> for DiagnosticEvent

impl WireValue<DiagnosticEvent> for DiagnosticEvent

Referenced types: WireValue, DiagnosticEvent, DiagnosticEvent

to_wire

fn to_wire(self) -> Result<DiagnosticEvent, ConversionError>

Referenced types: to_wire, Result, DiagnosticEvent, ConversionError

from_wire

fn from_wire(value: DiagnosticEvent) -> Result<DiagnosticEvent, ConversionError>

Referenced types: from_wire, DiagnosticEvent, Result, DiagnosticEvent, ConversionError

impl Eq for DiagnosticEvent

impl Eq for DiagnosticEvent

Referenced types: Eq, DiagnosticEvent

impl StructuralPartialEq for DiagnosticEvent

impl StructuralPartialEq for DiagnosticEvent

Referenced types: StructuralPartialEq, DiagnosticEvent