Expand description
Schema-version-2 wire types.
Version 2 extends the version-1 snapshot with explicit capability flags for load average, swap, and memory commit. This allows the protocol to truthfully represent Linux, macOS, and Windows metric differences without fabricating unsupported values.
V2 snapshots are served from the daemon on a separate endpoint
(/v2/status). V1 endpoints remain unchanged. Clients prefer v2 but
fall back to v1 when the daemon does not support v2 (404 response).
Re-exports§
pub use crate::LoadAverage;pub use crate::MemoryMetrics;pub use crate::SystemIdentity;
Structs§
- Commit
Metrics - Commit charge metrics (Windows memory commit accounting).
- CpuMetrics
V2 - CPU utilization snapshot for schema version 2.
- Drive
Metrics - Capacity metrics for one operator-visible mounted filesystem.
- Health
Response V2 - Health and readiness response for schema version 2.
- Metric
Capabilities V2 - Per-metric capability flags for schema version 2.
- Status
Payload V2 - Flat v2 status response with optional drive capacity data.
- Status
Snapshot V2 - Top-level daemon snapshot for schema version 2.
- Swap
Metrics - Swap utilization for schema version 2.
Constants§
- MAX_
DRIVE_ ENTRIES - Maximum number of drive records in a v2 status payload.
- MAX_
DRIVE_ NAME_ BYTES - Maximum UTF-8 byte length of a drive display name.
- SCHEMA_
VERSION_ V2 - Schema major version 2.