Struct Diagnostic Snapshot
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 DiagnosticSnapshot {
pub schema_version: u32,
pub catalogue_version: u32,
pub source: Option<DiagnosticSourceIdentity>,
pub capture_time: Option<Timestamp>,
pub sequence: u64,
pub lifetime: Option<DiagnosticLifetimeSummary>,
pub components: Vec<DiagnosticComponentSnapshot>,
pub events: Vec<DiagnosticEvent>,
pub coverage: Option<DiagnosticCoverage>,
pub continuation: Option<DiagnosticCursor>,
}
JSON output represents every uint64 diagnostic counter as a decimal string.
Fields
schema_version: u32
Core snapshot/catalogue revisions, independent of the worker contract.
catalogue_version: u32
Catalogue revision. Preserve unknown names without assigning them meaning.
source: Option<DiagnosticSourceIdentity>
Source identity preserved through collection and projection.
capture_time: Option<Timestamp>
Source capture time; it is not a collector receipt timestamp.
sequence: u64
Latest source update revision; reads do not increment it.
lifetime: Option<DiagnosticLifetimeSummary>
Whole-context lifetime accounting, independent of component/event selectors. Hosts must authorize access to this context-wide view before exposing it.
components: Vec<DiagnosticComponentSnapshot>
Bounded rows, one per selected retained component instance.
events: Vec<DiagnosticEvent>
Bounded selected recent evidence.
coverage: Option<DiagnosticCoverage>
Availability, scope, integration, and loss limitations.
continuation: Option<DiagnosticCursor>
Next bounded page, subject to mutation and retention validation.
Trait Implementations
impl Clone for DiagnosticSnapshot
impl Clone for DiagnosticSnapshot
clone
fn clone(&self) -> DiagnosticSnapshot
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for DiagnosticSnapshot
impl Debug for DiagnosticSnapshot
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for DiagnosticSnapshot
impl Default for DiagnosticSnapshot
default
fn default() -> Self
impl Message for DiagnosticSnapshot
impl Message for DiagnosticSnapshot
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 DiagnosticSnapshot
impl Name for DiagnosticSnapshot
NAME
const NAME: &'static str = "DiagnosticSnapshot"
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 DiagnosticSnapshot
impl PartialEq for DiagnosticSnapshot
eq
fn eq(&self, other: &DiagnosticSnapshot) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl WireValue<DiagnosticSnapshot> for DiagnosticSnapshot
impl WireValue<DiagnosticSnapshot> for DiagnosticSnapshot
to_wire
fn to_wire(self) -> Result<DiagnosticSnapshot>
from_wire
fn from_wire(value: DiagnosticSnapshot) -> Result<Self>
impl StructuralPartialEq for DiagnosticSnapshot
impl StructuralPartialEq for DiagnosticSnapshot