Skip to navigation

Struct Diagnostic Observation

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 DiagnosticObservation {
    pub component: u32,
    pub code: u32,
    pub failure_class: Option<String>,
    pub outcome: i32,
    pub severity: i32,
    pub count: u64,
    pub observe_time: Option<Timestamp>,
    pub detail: Option<String>,
    pub session_id: Option<String>,
    pub request_id: Option<String>,
}

Records a positive occurrence delta using admitted component and code handles.

Fields

component: u32

One-based component handle admitted in this diagnostic session.

code: u32

One-based code handle admitted for this component.

failure_class: Option<String>

Optional admitted failure-class name for this observation.

outcome: i32

Explicit observed operation outcome.

severity: i32

Evidence severity, independent of its observed operation outcome.

count: u64

Positive occurrence delta, not an absolute counter.

observe_time: Option<Timestamp>

Source observation time, preserved through projections.

detail: Option<String>

Optional restricted diagnostic detail, bounded by the host policy.

session_id: Option<String>

Optional trajectory session correlation, not the diagnostic transport session UUID.

request_id: Option<String>

Optional trajectory request correlation; it is not an authority token.

Implementations

impl DiagnosticObservation

impl DiagnosticObservation

failure_class

pub fn failure_class(&self) -> &str

Returns the value of failure_class, or the default value if failure_class is unset.

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.

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.

detail

pub fn detail(&self) -> &str

Returns the value of detail, or the default value if detail is unset.

session_id

pub fn session_id(&self) -> &str

Returns the value of session_id, or the default value if session_id is unset.

request_id

pub fn request_id(&self) -> &str

Returns the value of request_id, or the default value if request_id is unset.

Trait Implementations

impl Clone for DiagnosticObservation

impl Clone for DiagnosticObservation

clone

fn clone(&self) -> DiagnosticObservation

clone_from

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

impl Debug for DiagnosticObservation

impl Debug for DiagnosticObservation

fmt

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

impl Default for DiagnosticObservation

impl Default for DiagnosticObservation

default

fn default() -> Self

impl Hash for DiagnosticObservation

impl Hash for DiagnosticObservation

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 DiagnosticObservation

impl Message for DiagnosticObservation

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 DiagnosticObservation

impl Name for DiagnosticObservation

NAME

const NAME: &'static str = "DiagnosticObservation"

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 DiagnosticObservation

impl PartialEq for DiagnosticObservation

eq

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

ne

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

impl Eq for DiagnosticObservation

impl Eq for DiagnosticObservation

impl StructuralPartialEq for DiagnosticObservation

impl StructuralPartialEq for DiagnosticObservation