Skip to navigation

Struct Diagnostic Event

View as Markdown

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: u64,
    pub observe_time: Option<Timestamp>,
    pub component: Option<DiagnosticComponentIdentity>,
    pub origin: Option<DiagnosticOrigin>,
    pub remote: Option<RemoteDiagnosticOrigin>,
    pub classification: Option<DiagnosticClassification>,
    pub context: Option<DiagnosticPluginContext>,
    pub severity: i32,
    pub outcome: i32,
    pub detail: Option<DiagnosticDetail>,
    pub count: u64,
    pub correlation: Option<DiagnosticCorrelation>,
}

One retained observation, its attribution, occurrence delta, and optional evidence.

Fields

sequence: u64

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

observe_time: Option<Timestamp>

Source observation time, preserved through projections.

component: Option<DiagnosticComponentIdentity>

Registration that owned the original observation.

origin: Option<DiagnosticOrigin>

Original configuration attribution, preserved through component refresh.

remote: Option<RemoteDiagnosticOrigin>

Authenticated remote submission provenance, absent for local observations.

classification: Option<DiagnosticClassification>

Canonical event classification; never reconstructed from a latest message.

context: Option<DiagnosticPluginContext>

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

severity: i32

Evidence severity, independent of its observed operation outcome.

outcome: i32

Explicit observed operation outcome.

detail: Option<DiagnosticDetail>

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

count: u64

Input occurrence delta represented by this recording call.

correlation: Option<DiagnosticCorrelation>

Restricted caller correlation, excluded from aggregation identity.

Implementations

impl DiagnosticEvent

impl DiagnosticEvent

severity

pub fn severity(&self) -> DiagnosticObservationSeverity

Returns the enum value of severity, or the default if the field is set to an invalid enum value.

set_severity

pub fn set_severity(&mut self, value: DiagnosticObservationSeverity)

Sets severity to the provided enum value.

outcome

pub fn outcome(&self) -> DiagnosticObservationOutcome

Returns the enum value of outcome, or the default if the field is set to an invalid enum value.

set_outcome

pub fn set_outcome(&mut self, value: DiagnosticObservationOutcome)

Sets outcome to the provided enum value.

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

impl Default for DiagnosticEvent

impl Default for DiagnosticEvent

default

fn default() -> Self

impl Hash for DiagnosticEvent

impl Hash for DiagnosticEvent

hash

fn hash<__H: Hasher>(&self, state: &mut __H)

hash_slice

fn hash_slice<H>(data: &[Self], state: &mut H)where
    H: Hasher,
    Self: Sized,

impl Message for DiagnosticEvent

impl Message for DiagnosticEvent

encoded_len

fn encoded_len(&self) -> usize

clear

fn clear(&mut self)

encode

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
    Self: Sized,

encode_to_vec

fn encode_to_vec(&self) -> Vec<u8> where
    Self: Sized,

encode_length_delimited

fn encode_length_delimited(
    &self,
    buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
    Self: Sized,

encode_length_delimited_to_vec

fn encode_length_delimited_to_vec(&self) -> Vec<u8> where
    Self: Sized,

decode

fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
    Self: Default,

decode_length_delimited

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
    Self: Default,

merge

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
    Self: Sized,

merge_length_delimited

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
    Self: Sized,

impl Name for DiagnosticEvent

impl Name for DiagnosticEvent

NAME

const NAME: &'static str = "DiagnosticEvent"

PACKAGE

const PACKAGE: &'static str = "nvidia.nemo.relay.worker.v1"

full_name

fn full_name() -> String

type_url

fn type_url() -> String

impl PartialEq for DiagnosticEvent

impl PartialEq for DiagnosticEvent

eq

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

ne

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

impl WireValue<DiagnosticEvent> for DiagnosticEvent

impl WireValue<DiagnosticEvent> for DiagnosticEvent

to_wire

fn to_wire(self) -> Result<DiagnosticEvent>

from_wire

fn from_wire(value: DiagnosticEvent) -> Result<Self>

impl Eq for DiagnosticEvent

impl Eq for DiagnosticEvent

impl StructuralPartialEq for DiagnosticEvent

impl StructuralPartialEq for DiagnosticEvent