Struct Resource Metrics Snapshot

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -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 ResourceMetricsSnapshot {
    pub timestamp: DateTime<Utc>,
    pub operating_system: ResourceOperatingSystem,
    pub measurement_scope: ResourceMeasurementScope,
    pub process_sampling: Option<ProcessSamplingMetadata>,
    pub cpu: Option<CpuMetrics>,
    pub memory: Option<MemoryMetrics>,
    pub process: Option<ProcessMetrics>,
    pub disk: Option<DiskMetrics>,
    pub gpu: Option<GpuMetrics>,
    pub network: Option<NetworkMetrics>,
}

One point-in-time observation of the selected system and process resources.

Fields

timestamp: DateTime<Utc>

UTC time at which collection completed.

operating_system: ResourceOperatingSystem

Operating system that produced this snapshot.

measurement_scope: ResourceMeasurementScope

Boundary for process-attributed values; system and device values keep their own scope.

process_sampling: Option<ProcessSamplingMetadata>

Coverage for process-summed values, or None when no query was requested or listing failed.

cpu: Option<CpuMetrics>

CPU category, or None when CPU collection is disabled.

memory: Option<MemoryMetrics>

Memory category, or None when memory collection is disabled.

process: Option<ProcessMetrics>

Process category, or None when process collection is disabled.

disk: Option<DiskMetrics>

Disk category, or None when disk collection is disabled.

gpu: Option<GpuMetrics>

GPU category, or None when GPU collection is disabled.

network: Option<NetworkMetrics>

System-wide network category, or None when disabled.

Trait Implementations

impl Clone for ResourceMetricsSnapshot

impl Clone for ResourceMetricsSnapshot

clone

fn clone(&self) -> ResourceMetricsSnapshot

clone_from

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

impl Debug for ResourceMetricsSnapshot

impl Debug for ResourceMetricsSnapshot

fmt

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

impl<'de> Deserialize<'de> for ResourceMetricsSnapshot

impl<'de> Deserialize<'de> for ResourceMetricsSnapshot

deserialize

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

impl PartialEq for ResourceMetricsSnapshot

impl PartialEq for ResourceMetricsSnapshot

eq

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

ne

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

impl Serialize for ResourceMetricsSnapshot

impl Serialize for ResourceMetricsSnapshot

serialize

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

impl StructuralPartialEq for ResourceMetricsSnapshot

impl StructuralPartialEq for ResourceMetricsSnapshot