Skip to navigation

Struct Runtime Resource Snapshot

View as Markdown

Generated from cargo doc --no-deps -p nemo-fabric-core.

pub struct RuntimeResourceSnapshot {
    pub runtime_id: String,
    pub started_at: String,
    pub observed_at: String,
    pub resident_memory_bytes: u64,
    pub process_count: u64,
    pub cpu_time_seconds: f64,
}

Timestamped resource usage of one runtime’s local adapter host process tree.

Memory, process count, and CPU time cover the adapter host process and its live descendants. For a runtime started on a service, the shared service process is not included. Values NeMo Fabric cannot read are returned as an error, never as zero.

Fields

runtime_id: String

Runtime this snapshot describes.

started_at: String

When NeMo Fabric started the runtime’s adapter host, as an RFC 3339 UTC timestamp.

observed_at: String

When NeMo Fabric read these values, as an RFC 3339 UTC timestamp.

resident_memory_bytes: u64

Sum of the resident set sizes of the live processes, in bytes. Pages shared between processes count once per process.

process_count: u64

Live processes in the tree, including the adapter host. Exited processes that are not yet reaped are not counted.

cpu_time_seconds: f64

CPU time consumed by the tree since the adapter host started, in seconds, including exited descendants. It can drop when a descendant leaves the tree.

Trait Implementations

impl Clone for RuntimeResourceSnapshot

impl Clone for RuntimeResourceSnapshot

clone

fn clone(&self) -> RuntimeResourceSnapshot

clone_from

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

impl Debug for RuntimeResourceSnapshot

impl Debug for RuntimeResourceSnapshot

fmt

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

impl<'de> Deserialize<'de> for RuntimeResourceSnapshot

impl<'de> Deserialize<'de> for RuntimeResourceSnapshot

deserialize

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

impl JsonSchema for RuntimeResourceSnapshot

impl JsonSchema for RuntimeResourceSnapshot

schema_name

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

schema_id

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

json_schema

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

inline_schema

fn inline_schema() -> bool

impl PartialEq for RuntimeResourceSnapshot

impl PartialEq for RuntimeResourceSnapshot

eq

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

ne

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

impl Serialize for RuntimeResourceSnapshot

impl Serialize for RuntimeResourceSnapshot

serialize

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

impl StructuralPartialEq for RuntimeResourceSnapshot

impl StructuralPartialEq for RuntimeResourceSnapshot