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 DiagnosticSnapshot {
pub schema_version: u32,
pub catalogue_version: u32,
pub source: SourceIdentity,
pub captured_at: DateTime<Utc>,
pub sequence: DiagnosticNumber,
pub lifetime: DiagnosticLifetimeSummary,
pub components: Vec<ComponentSnapshot>,
pub events: Vec<DiagnosticEvent>,
pub coverage: DiagnosticCoverage,
pub continuation: Option<DiagnosticCursor>,
}

Referenced types: u32, SourceIdentity, DateTime, Utc, DiagnosticNumber, DiagnosticLifetimeSummary, Vec, ComponentSnapshot, DiagnosticEvent, DiagnosticCoverage, Option, DiagnosticCursor

Read evidence from one source incarnation, using the canonical snapshot schema.

Fields

schema_version: u32

Supported envelope version, independent of the catalogue version.

catalogue_version: u32

Stable catalogue revision; unknown names stay opaque in this envelope.

source: SourceIdentity

Source identity preserved through collection and projection.

captured_at: DateTime<Utc>

Source capture time; it is not a collector receipt timestamp.

sequence: DiagnosticNumber

Latest source update revision; reads do not increment it.

lifetime: DiagnosticLifetimeSummary

Whole-context lifetime accounting, independent of component/event selectors. Hosts must authorize access to this context-wide view before exposing it.

components: Vec<ComponentSnapshot>

Bounded rows, one per selected retained component instance.

events: Vec<DiagnosticEvent>

Bounded selected recent evidence.

coverage: 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

Referenced types: Clone, DiagnosticSnapshot

clone

fn clone(&self) -> DiagnosticSnapshot

Referenced types: clone, DiagnosticSnapshot

clone_from

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

Referenced types: clone_from

impl Debug for DiagnosticSnapshot

impl Debug for DiagnosticSnapshot

Referenced types: Debug, DiagnosticSnapshot

fmt

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

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

impl<'de> Deserialize<'de> for DiagnosticSnapshot

impl<'de> Deserialize<'de> for DiagnosticSnapshot

Referenced types: Deserialize, DiagnosticSnapshot

deserialize

fn deserialize<__D>(
__deserializer: __D,
) -> Result<DiagnosticSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,

Referenced types: deserialize, Result, DiagnosticSnapshot, Deserializer, Error

impl JsonSchema for DiagnosticSnapshot

impl JsonSchema for DiagnosticSnapshot

Referenced types: DiagnosticSnapshot

schema_name

fn schema_name() -> String

Referenced types: String

schema_id

fn schema_id() -> Cow<'static, str>

Referenced types: Cow, str

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

is_referenceable

fn is_referenceable() -> bool

Referenced types: bool

impl PartialEq for DiagnosticSnapshot

impl PartialEq for DiagnosticSnapshot

Referenced types: PartialEq, DiagnosticSnapshot

eq

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

Referenced types: eq, DiagnosticSnapshot, bool

ne

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

Referenced types: ne, &Rhs, bool

impl Serialize for DiagnosticSnapshot

impl Serialize for DiagnosticSnapshot

Referenced types: Serialize, DiagnosticSnapshot

serialize

fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,

Referenced types: serialize, Result, Serializer, Ok, Error

impl WireValue<Box<DiagnosticSnapshot>> for DiagnosticSnapshot

impl WireValue<Box<DiagnosticSnapshot>> for DiagnosticSnapshot

Referenced types: WireValue, Box, DiagnosticSnapshot, DiagnosticSnapshot

to_wire

fn to_wire(self) -> Result<Box<DiagnosticSnapshot>, ConversionError>

Referenced types: to_wire, Result, Box, DiagnosticSnapshot, ConversionError

from_wire

fn from_wire(
value: Box<DiagnosticSnapshot>,
) -> Result<DiagnosticSnapshot, ConversionError>

Referenced types: from_wire, Box, DiagnosticSnapshot, Result, DiagnosticSnapshot, ConversionError

impl WireValue<DiagnosticSnapshot> for DiagnosticSnapshot

impl WireValue<DiagnosticSnapshot> for DiagnosticSnapshot

Referenced types: WireValue, DiagnosticSnapshot, DiagnosticSnapshot

to_wire

fn to_wire(self) -> Result<DiagnosticSnapshot, ConversionError>

Referenced types: to_wire, Result, DiagnosticSnapshot, ConversionError

from_wire

fn from_wire(
value: DiagnosticSnapshot,
) -> Result<DiagnosticSnapshot, ConversionError>

Referenced types: from_wire, DiagnosticSnapshot, Result, DiagnosticSnapshot, ConversionError

impl Eq for DiagnosticSnapshot

impl Eq for DiagnosticSnapshot

Referenced types: Eq, DiagnosticSnapshot

impl StructuralPartialEq for DiagnosticSnapshot

impl StructuralPartialEq for DiagnosticSnapshot

Referenced types: StructuralPartialEq, DiagnosticSnapshot