Skip to navigation

Struct Diagnostic Query

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 DiagnosticQuery {Show 14 fields
    pub schema_version: Option<u32>,
    pub component_key: Option<String>,
    pub component_instance_id: Option<String>,
    pub origin_generation: Option<u64>,
    pub code: Option<String>,
    pub domain: Option<i32>,
    pub plugin_family: Option<i32>,
    pub failure_class: Option<String>,
    pub ownership: Option<DiagnosticComponentOwnership>,
    pub after_sequence: Option<u64>,
    pub max_components: Option<u32>,
    pub max_events: Option<u32>,
    pub max_response_bytes: Option<u32>,
    pub continuation: Option<DiagnosticCursor>,
}

Typed diagnostic query preserving the shared runtime fields.

Fields

schema_version: Option<u32>

Optional required snapshot version; omission selects this runtime’s version.

component_key: Option<String>

Select one logical component key across retained registrations.

component_instance_id: Option<String>

Select one registration incarnation.

origin_generation: Option<u64>

Select recent events by original refresh generation only. Lifetime and current-refresh summaries keep their declared scope.

code: Option<String>

Select exact canonical code counters and events.

domain: Option<i32>

Select the authoritative catalogue parent domain.

plugin_family: Option<i32>

Select the plugin catalogue family derived from code ownership.

failure_class: Option<String>

Select event causes only; code counters do not retain cause breakdowns.

ownership: Option<DiagnosticComponentOwnership>

Select component rows by current-refresh ownership and events by original ownership. Selected lifetime counters still span the entire component instance.

after_sequence: Option<u64>

Select later recent events; summary and code counters remain cumulative.

max_components: Option<u32>

Requested component-instance row cap, rejected above core limits.

max_events: Option<u32>

Requested recent-event cap, rejected above core limits.

max_response_bytes: Option<u32>

Requested encoded response cap, rejected above core limits.

continuation: Option<DiagnosticCursor>

Resume a compatible bounded selection without granting additional scope.

Implementations

impl DiagnosticQuery

impl DiagnosticQuery

schema_version

pub fn schema_version(&self) -> u32

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

component_key

pub fn component_key(&self) -> &str

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

component_instance_id

pub fn component_instance_id(&self) -> &str

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

origin_generation

pub fn origin_generation(&self) -> u64

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

code

pub fn code(&self) -> &str

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

domain

pub fn domain(&self) -> DiagnosticDomain

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

set_domain

pub fn set_domain(&mut self, value: DiagnosticDomain)

Sets domain to the provided enum value.

plugin_family

pub fn plugin_family(&self) -> PluginDiagnosticFamily

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

set_plugin_family

pub fn set_plugin_family(&mut self, value: PluginDiagnosticFamily)

Sets plugin_family to the provided enum value.

failure_class

pub fn failure_class(&self) -> &str

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

after_sequence

pub fn after_sequence(&self) -> u64

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

max_components

pub fn max_components(&self) -> u32

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

max_events

pub fn max_events(&self) -> u32

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

max_response_bytes

pub fn max_response_bytes(&self) -> u32

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

Trait Implementations

impl Clone for DiagnosticQuery

impl Clone for DiagnosticQuery

clone

fn clone(&self) -> DiagnosticQuery

clone_from

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

impl Debug for DiagnosticQuery

impl Debug for DiagnosticQuery

fmt

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

impl Default for DiagnosticQuery

impl Default for DiagnosticQuery

default

fn default() -> Self

impl Hash for DiagnosticQuery

impl Hash for DiagnosticQuery

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 DiagnosticQuery

impl Message for DiagnosticQuery

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 DiagnosticQuery

impl Name for DiagnosticQuery

NAME

const NAME: &'static str = "DiagnosticQuery"

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 DiagnosticQuery

impl PartialEq for DiagnosticQuery

eq

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

ne

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

impl WireValue<DiagnosticQuery> for DiagnosticQuery

impl WireValue<DiagnosticQuery> for DiagnosticQuery

to_wire

fn to_wire(self) -> Result<DiagnosticQuery>

from_wire

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

impl Eq for DiagnosticQuery

impl Eq for DiagnosticQuery

impl StructuralPartialEq for DiagnosticQuery

impl StructuralPartialEq for DiagnosticQuery