pub struct Snapshot {Show 19 fields
pub schema_version: u32,
pub taken_at_ms: u64,
pub host: HostInfo,
pub memory: HostMemory,
pub cpu: HostCpu,
pub oom: Oom,
pub accelerators: Vec<Accelerator>,
pub thermal: Thermal,
pub processes: Vec<Process>,
pub groups: Vec<Group>,
pub model_servers: Vec<ModelServer>,
pub sandboxes: Vec<Sandbox>,
pub source_status: BTreeMap<String, SourceStatus>,
pub self_pid: Option<u32>,
pub cohorts: Vec<Cohort>,
pub duplicates: Vec<DuplicateSet>,
pub net: Net,
pub cgroups: Vec<CgroupMem>,
pub isolation: Isolation,
}Expand description
One consistent view of the machine. Output of the sampler + attribution + adapters.
Fields§
§schema_version: u32Always SCHEMA_VERSION.
taken_at_ms: u64§host: HostInfo§memory: HostMemory§cpu: HostCpu§oom: Oom§accelerators: Vec<Accelerator>§thermal: Thermal§processes: Vec<Process>§groups: Vec<Group>§model_servers: Vec<ModelServer>§sandboxes: Vec<Sandbox>§source_status: BTreeMap<String, SourceStatus>Per source name (e.g. “macos.procs”, “linux.meminfo”, “adapter.ollama”).
self_pid: Option<u32>pid of the oomtop process that produced this snapshot.
cohorts: Vec<Cohort>Leftovers bucketed by the agent session that ended (crate::staleness::cohorts).
duplicates: Vec<DuplicateSet>More than one live instance of one fingerprint in one project (crate::staleness::duplicates).
net: NetPorts and “who talks to whom” (crate::net): sockets from the socket source, listeners, links and
findings computed by crate::net::analyze. Left out of JSON when no socket source ran.
cgroups: Vec<CgroupMem>Linux cgroup v2 memory accounting of container / pod cgroups and of every cgroup with a memory limit (SPEC §8.3 per-limit forecast, §11).
isolation: IsolationContainers, local Kubernetes clusters, per-limit forecasts, VM slack, namespace sets and stale
containers (SPEC §8.3, §11; crate::cluster).