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 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>,
}

Referenced types: u32, Option, String, i32, u64, Timestamp

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

Referenced types: DiagnosticObservation

failure_class

pub fn failure_class(&self) -> &str

Referenced types: str

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

outcome

pub fn outcome(&self) -> DiagnosticObservationOutcome

Referenced types: 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)

Referenced types: DiagnosticObservationOutcome

Sets outcome to the provided enum value.

severity

pub fn severity(&self) -> DiagnosticObservationSeverity

Referenced types: 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)

Referenced types: DiagnosticObservationSeverity

Sets severity to the provided enum value.

detail

pub fn detail(&self) -> &str

Referenced types: str

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

session_id

pub fn session_id(&self) -> &str

Referenced types: str

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

request_id

pub fn request_id(&self) -> &str

Referenced types: 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

Referenced types: Clone, DiagnosticObservation

clone

fn clone(&self) -> DiagnosticObservation

Referenced types: clone, DiagnosticObservation

clone_from

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

Referenced types: clone_from

impl Debug for DiagnosticObservation

impl Debug for DiagnosticObservation

Referenced types: Debug, DiagnosticObservation

fmt

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

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

impl Default for DiagnosticObservation

impl Default for DiagnosticObservation

Referenced types: Default, DiagnosticObservation

default

fn default() -> DiagnosticObservation

Referenced types: default, DiagnosticObservation

impl Hash for DiagnosticObservation

impl Hash for DiagnosticObservation

Referenced types: Hash, DiagnosticObservation

hash

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

Referenced types: hash, &mut __H, Hasher

hash_slice

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

Referenced types: hash_slice, &mut H, Hasher, Sized

impl Message for DiagnosticObservation

impl Message for DiagnosticObservation

Referenced types: Message, DiagnosticObservation

encoded_len

fn encoded_len(&self) -> usize

Referenced types: encoded_len, usize

clear

fn clear(&mut self)

Referenced types: clear

encode

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

Referenced types: encode, Result, (), EncodeError, Sized

encode_to_vec

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

Referenced types: encode_to_vec, Vec, u8, Sized

encode_length_delimited

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

Referenced types: encode_length_delimited, Result, (), EncodeError, Sized

encode_length_delimited_to_vec

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

Referenced types: encode_length_delimited_to_vec, Vec, u8, Sized

decode

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

Referenced types: decode, Result, DecodeError, Default

decode_length_delimited

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

Referenced types: decode_length_delimited, Result, DecodeError, Default

merge

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

Referenced types: merge, Result, (), DecodeError, Sized

merge_length_delimited

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

Referenced types: merge_length_delimited, Result, (), DecodeError, Sized

impl Name for DiagnosticObservation

impl Name for DiagnosticObservation

Referenced types: Name, DiagnosticObservation

NAME

const NAME: &'static str = "DiagnosticObservation"

Referenced types: NAME, str

PACKAGE

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

Referenced types: PACKAGE, str

full_name

fn full_name() -> String

Referenced types: full_name, String

type_url

fn type_url() -> String

Referenced types: type_url, String

impl PartialEq for DiagnosticObservation

impl PartialEq for DiagnosticObservation

Referenced types: PartialEq, DiagnosticObservation

eq

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

Referenced types: eq, DiagnosticObservation, bool

ne

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

Referenced types: ne, &Rhs, bool

impl Eq for DiagnosticObservation

impl Eq for DiagnosticObservation

Referenced types: Eq, DiagnosticObservation

impl StructuralPartialEq for DiagnosticObservation

impl StructuralPartialEq for DiagnosticObservation

Referenced types: StructuralPartialEq, DiagnosticObservation