Skip to content
Sign in

system

v0.1.2

The machine the engine runs on — CPU and each core, memory and swap, load, temperatures, fans, power, pressure, the battery, GPUs, disk I/O and space, SSD health, and network, now (system::snapshot) and over 24 hours (system::history), sampled every second only while someone observes system::on-sample; the busiest processes, each worker's usage and each container's while observed; plus the System page of the iii app.

Install

bash
iii call compose::add worker=system

Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.

Agent-ready brief for v0.1.2
Install, config, dependencies, readme, skills and API reference, all in one place. Fetch as agent-context.md for an LLM to consume.
The same content rendered as discrete blocks below is exposed as a single markdown document at /registry/workers/system.md. Paste it into an LLM prompt or pipe it through curl from a worker.

Install

iii call compose::add worker=system@0.1.2

Configuration

iii-config.yaml
- disks:
    exclude:

    include:

  idle_interval_ms: 10000
  net:
    exclude:

    include:

  observed_interval_ms: 1000
  volumes:
    exclude:

Dependencies

No dependencies for v0.1.2

Readme

README.md

system

The machine the engine runs on, as an iii worker: CPU (each core too), memory and swap, load, temperatures, fans, power, pressure, the battery, GPUs, disk I/O and space, SSD health, and network. system::snapshot answers everything now, system::history up to 24 hours of each figure, and system::on-sample sends every sample to whoever observes it. The worker samples every second while someone observes and every 10 seconds otherwise, reads /proc and /sys on Linux and IOKit on macOS without starting any process, and keeps its history in memory (a restart starts it empty). While someone observes them, and only then, it also lists the busiest processes, what each iii worker uses, and each container. The iii app shows it all on its System page, and on Home in the widgets below.

Install

iii call compose::add worker=system

Linux (x86_64, arm64, armv7) and macOS. There is no Windows build. NVIDIA GPUs are read through NVML when the driver is installed. AMD GPUs are read from sysfs and Apple Silicon GPUs through IOKit. Intel GPUs are left out, because the kernel gives no busy figure for them without perf.

Quickstart

use iii_sdk::{CallRequest, InitOptions, register_worker};
use serde_json::json;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let iii = register_worker("ws://localhost:49134", InitOptions::default());

    let history = iii.call(CallRequest {
        function_id: "system::history".into(),
        payload: json!({ "series": ["cpu", "ram", "net.rx"], "window": "15m" }),
        action: None,
        timeout_ms: Some(5_000),
    }).await?;

    println!("{history:#}");
    Ok(())
}
{ "window": "15m", "step_s": 10, "end_at": 1764400000000,
  "series": { "cpu": [12.4, 9.8, null, 31.0],
              "ram": [48.2, 48.3, null, 48.9],
              "net.rx": [1200, 980, null, 15400] } }

The windows are 1m (60 points, one a second, filled only while someone observes), 15m (90 points of 10 s), 1h (60 of a minute) and 24h (96 of 15 minutes). The newest point is the slot in progress. A gap is null. Leave series out to get every series.

Key Unit What
cpu % all cores busy
ram, swap % used of total
load 1-minute load average
cpu:<n> % each logical CPU busy
temp °C the CPU's sensor; temp:<id> for every sensor of the snapshot's temps (a GPU's own is temp:gpu:<gpu id>, temp:gpu:card1; its others temp:gpu:card1.junction)
fan:<id> RPM each fan that reports its speed (none on macOS)
gpu, vram % the GPU with the most memory; gpu:<id>, vram:<id> for each
power.gpu W every GPU's power draw together; power.gpu:<id> for each that reports it
power.cpu W the CPU package (RAPL; readable only by root on most distributions)
psi.cpu, psi.mem, psi.io % time some task stalled on CPU, memory or I/O (Linux PSI); on macOS psi.mem only, the kernel's memory pressure level (normal 0, warning 50, critical 100)
battery % charge
disk.read, disk.write B/s all physical disks; disk.read:<id> for each
space % /; space:<mount> for each volume
net.rx, net.tx B/s all physical interfaces; net.rx:<id> for each

A series the machine lacks (no battery, no fan, no GPU) is absent. The temperatures other than the CPU's, the fans and the battery are read every 4.5 seconds and repeat between reads: each sits behind a slow bus.

system::snapshot ({}) answers the host (name, OS, kernel, uptime, and virtual: "container" | "vm" when it can tell), the CPU (model, threads, usage, each core's usage, clock, load), memory and swap in bytes, every temperature sensor with its limit (max, when the hardware gives one), the fans, the power figures, the pressure, the battery (pct, state, time_s, health_pct, cycles), each NVMe drive's health (wear_pct, written_bytes, errors, power_on_h, read at most once an hour; or error: "permission" on Linux, where the health log needs root), each GPU, disk, volume and interface, and the names of the virtual interfaces (Docker's bridges and veths, tunnels) it leaves out.

system::volumes, system::gpus, system::interfaces, system::disks and system::sensors ({}) answer { options: [{ value, label, detail? }] }, ready for a picker: the value is the id the series use (/, card1, enp8s0, nvme0n1, nvme0), the detail the volume's use, the GPU's memory (16 GB), Wi-Fi or Ethernet · 1 Gb/s, the disk's model and size, or the sensor's limit. The GPUs, interfaces and disks start with the choice that stands for them all, value "" (the series without a colon: gpu, net.rx, disk.read): Automatic (the GPU with the most memory), All interfaces, All disks.

Configuration

observed_interval_ms: 1000              # one sample a second while system::on-sample is observed
idle_interval_ms: 10000                 # one every 10 seconds otherwise
net: { include: [], exclude: [] }       # globs over interface names; empty include = the physical ones
disks: { include: [], exclude: [] }     # globs over block devices; empty include = whole physical disks
volumes: { exclude: [] }                # globs over mount points to leave out

include admits virtual devices too (include: ["eth*"] inside a container, where eth0 has no device behind it). The devices are found again every minute and on each snapshot.

Event functions

Function Args Called when Event (what observers receive)
system::on-sample none Every sample: each second while it has an observer; a new observer first gets the latest sample, sent to it alone { "at": 1764400000500, "values": { "cpu": 12.4, "ram": 48.2, "temp": 61.5, "disk.read": 0, … } }
system::on-processes none Every 3 seconds while it has an observer, never otherwise; a new observer gets its first event alone, as soon as two scans a second apart measured something { "at": …, "processes": [{ "pid": 4182, "name": "java", "cpu": 180.4, "mem": 2283458560 }] }: the 10 busiest and the 10 largest, by CPU (% of one core)
system::on-workers none As on-processes { "at": …, "workers": [{ "name": "system", "kind": "worker", "pids": [5120], "cpu": 0.3, "mem": 9437184 }, { "name": "engine", "kind": "engine", … }] }: each iii worker connected to the engine and running here, with every process it started, and the engine
system::on-containers none As on-processes { "at": …, "containers": [{ "id": "6829e3056f35", "name": "postgres", "cpu": 0.2, "mem": 31219712 }] }; "unsupported": true without cgroup v2 or a container runtime, and on macOS
let follow = iii.observe(Source::function("system::on-sample"), "my-worker::on-machine");
follow.ready().await?;

Observing is what makes the worker sample every second, and what makes it scan processes, workers or containers at all, so dispose of the observer when nothing shows the figures anymore. Rates are computed over the time that actually passed between two samples.

Home widgets

The iii app lists these on Home (the worker leaves out the ones whose hardware the machine lacks). Each follows the worker only while it is on screen, and opens the System page.

Widget Sizes What it shows
Machine S M L XL The metrics you pick (CPU, memory, temperature, GPU, GPU memory, disk, network, space, load, swap) over the window you pick; at L and XL a layout: a chart, a grid, one metric large, rings, an overlay or a list
GPU S M L How busy a GPU is, its memory, temperature and power (pick the GPU, or Automatic: the one with the most memory)
Temperatures M L XL Every sensor, tinted by how close it is to its own limit
Traffic M L XL Network or disk traffic mirrored, in above the line and out below, for all devices or the one you pick
Volumes M L How full each volume is, the fullest first
Health S M All normal, or what has stayed past its limit: the CPU at 85 % for 5 minutes, memory at 90 %, a volume 90 % full, a temperature near its limit
Processes M L XL The processes using the most CPU or memory
iii workers M L XL Each iii worker's CPU and memory, its whole process tree
Load S M The 1, 5 and 15 minute load against the CPU threads
This machine M L The name, OS, uptime, CPU, kernel, memory and GPUs; at L also the storage, the disks and the interfaces
Cores M L XL Each logical CPU as a thin bar in a heat map, coloured by how busy it is
Power S M L The watts the GPUs draw together, and the CPU's when the worker may read it
Fans M L Each fan's speed, at L over the last 15 minutes
Pressure S M L How much of the time tasks wait for the CPU, memory or I/O (Linux PSI)
Battery S M The charge, charging or how long it lasts, health and cycles
SSD health M L Each NVMe drive's wear, data written, errors and hours on (needs root or CAP_SYS_ADMIN on Linux)
Containers M L XL The Docker or Podman containers running, with their CPU and memory

What it can read

  • Process names and usage on macOS are the worker's own user's (the kernel answers no more without root); on Linux, every process.
  • Container names come from Docker's socket when the worker's user can reach it (the docker group); otherwise a container is its short id.
  • On Linux the NVMe health log and the CPU package's power need root (CAP_SYS_ADMIN, and energy_uj is root's since CVE-2020-8694): without it the snapshot says error: "permission" and there is no power.cpu. macOS reads the NVMe health log without privileges.
  • At start the worker leaves out of Home's widget gallery the widgets this machine cannot fill: battery without a battery, fans without a fan, power without a power figure, gpu without a GPU, containers without cgroup v2 and a container runtime, pressure without a stall figure, ssd without an NVMe drive.
  • system::on-workers asks the engine for its workers (engine::workers::list, engine::workers::info): behind an RBAC proxy those must be allowed for the worker.

Skills

API reference (JSON)

agent-api-reference.json
{
  "functions": [
    {
      "description": "The physical disks as options: { options: [{ value: '', label: 'All disks' } (the disk.read series), then each: { value: <id in disk.read:<id>>, label, detail?: '<model> · <size>' }] }; empty without one.",
      "metadata": {},
      "name": "system::disks",
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "No parameters. Anything is accepted (`null`, `{}`), as a caller with nothing to say may send either.",
        "title": "Empty",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "OptionItem": {
            "properties": {
              "detail": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "label": {
                "type": "string"
              },
              "value": {
                "description": "What the series keys use after the colon (`gpu:<value>`); `\"\"` for the choice that stands for them all (`gpu`, `net.rx`, `disk.read`).",
                "type": "string"
              }
            },
            "required": [
              "label",
              "value"
            ],
            "type": "object"
          }
        },
        "description": "A device list for a picker: the `param.from` contract.",
        "properties": {
          "options": {
            "items": {
              "$ref": "#/definitions/OptionItem"
            },
            "type": "array"
          }
        },
        "required": [
          "options"
        ],
        "title": "Options",
        "type": "object"
      }
    },
    {
      "description": "The GPUs as options: { options: [{ value: '', label: 'Automatic', detail: 'the GPU with the most memory' } (the gpu series), then each GPU, that one first: { value: <id in gpu:<id>>, label: <name>, detail: <memory, e.g. '16 GB'> }] }; empty without a GPU.",
      "metadata": {},
      "name": "system::gpus",
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "No parameters. Anything is accepted (`null`, `{}`), as a caller with nothing to say may send either.",
        "title": "Empty",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "OptionItem": {
            "properties": {
              "detail": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "label": {
                "type": "string"
              },
              "value": {
                "description": "What the series keys use after the colon (`gpu:<value>`); `\"\"` for the choice that stands for them all (`gpu`, `net.rx`, `disk.read`).",
                "type": "string"
              }
            },
            "required": [
              "label",
              "value"
            ],
            "type": "object"
          }
        },
        "description": "A device list for a picker: the `param.from` contract.",
        "properties": {
          "options": {
            "items": {
              "$ref": "#/definitions/OptionItem"
            },
            "type": "array"
          }
        },
        "required": [
          "options"
        ],
        "title": "Options",
        "type": "object"
      }
    },
    {
      "description": "History of the machine's series for a window: 1m (a point a second, only while system::on-sample is observed), 15m (10 s), 1h (1 min) or 24h (15 min). Keys: cpu, ram, swap, gpu, vram, space, psi.cpu, psi.mem, psi.io, battery (%), load, temp (°C), power.gpu (every GPU), power.cpu (W), disk.read, disk.write, net.rx, net.tx (B/s), and <key>:<device> per device (cpu:3, temp:nvme0, temp:gpu:card1, fan:gpu:card1 in RPM, gpu:card1, power.gpu:card1, space:/, net.rx:enp8s0). A series the machine lacks is absent. Empty series: all. Gaps are null; memory only, a restart starts empty.",
      "metadata": {},
      "name": "system::history",
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "WindowName": {
            "description": "The window `system::history` answers.",
            "oneOf": [
              {
                "description": "The last minute, a point a second (only while observed).",
                "enum": [
                  "1m"
                ],
                "type": "string"
              },
              {
                "description": "The last 15 minutes, a point every 10 seconds.",
                "enum": [
                  "15m"
                ],
                "type": "string"
              },
              {
                "description": "The last hour, a point a minute.",
                "enum": [
                  "1h"
                ],
                "type": "string"
              },
              {
                "description": "The last 24 hours, a point every 15 minutes.",
                "enum": [
                  "24h"
                ],
                "type": "string"
              }
            ]
          }
        },
        "description": "Unknown fields are ignored: the engine adds its own (`_caller_worker_id`) to every call's payload.",
        "properties": {
          "series": {
            "default": [],
            "description": "Series keys (`cpu`, `ram`, `gpu:card1`, `net.rx`, `space:/`...). Empty or missing: every series. Unknown keys are left out of the answer.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "window": {
            "$ref": "#/definitions/WindowName"
          }
        },
        "required": [
          "window"
        ],
        "title": "HistoryRequest",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "WindowName": {
            "description": "The window `system::history` answers.",
            "oneOf": [
              {
                "description": "The last minute, a point a second (only while observed).",
                "enum": [
                  "1m"
                ],
                "type": "string"
              },
              {
                "description": "The last 15 minutes, a point every 10 seconds.",
                "enum": [
                  "15m"
                ],
                "type": "string"
              },
              {
                "description": "The last hour, a point a minute.",
                "enum": [
                  "1h"
                ],
                "type": "string"
              },
              {
                "description": "The last 24 hours, a point every 15 minutes.",
                "enum": [
                  "24h"
                ],
                "type": "string"
              }
            ]
          }
        },
        "properties": {
          "end_at": {
            "description": "The start of the newest point's slot, ms since the epoch; each earlier point is `step_s` before the next.",
            "format": "int64",
            "type": "integer"
          },
          "series": {
            "additionalProperties": {
              "items": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "type": "array"
            },
            "description": "Each asked series that exists: its points, oldest first, `null` for a gap (nothing sampled then). Every array has the window's length (60, 90, 60 or 96).",
            "type": "object"
          },
          "step_s": {
            "description": "Seconds between points.",
            "format": "uint32",
            "minimum": 0,
            "type": "integer"
          },
          "window": {
            "$ref": "#/definitions/WindowName"
          }
        },
        "required": [
          "end_at",
          "series",
          "step_s",
          "window"
        ],
        "title": "HistoryResponse",
        "type": "object"
      }
    },
    {
      "description": "The physical network interfaces as options: { options: [{ value: '', label: 'All interfaces' } (the net.rx series), then each: { value: <id in net.rx:<id>>, label, detail?: 'Wi-Fi' | 'Ethernet · 1 Gb/s' }] }; empty without one.",
      "metadata": {},
      "name": "system::interfaces",
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "No parameters. Anything is accepted (`null`, `{}`), as a caller with nothing to say may send either.",
        "title": "Empty",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "OptionItem": {
            "properties": {
              "detail": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "label": {
                "type": "string"
              },
              "value": {
                "description": "What the series keys use after the colon (`gpu:<value>`); `\"\"` for the choice that stands for them all (`gpu`, `net.rx`, `disk.read`).",
                "type": "string"
              }
            },
            "required": [
              "label",
              "value"
            ],
            "type": "object"
          }
        },
        "description": "A device list for a picker: the `param.from` contract.",
        "properties": {
          "options": {
            "items": {
              "$ref": "#/definitions/OptionItem"
            },
            "type": "array"
          }
        },
        "required": [
          "options"
        ],
        "title": "Options",
        "type": "object"
      }
    },
    {
      "description": "Serve the system worker's native app bundle for the iii app.",
      "metadata": {
        "internal": true,
        "native_ui": {
          "app": {
            "blurb": "The machine the engine runs on: CPU, memory, temperature, GPU, disk and network.",
            "icon": "cpu",
            "title": "System"
          },
          "bundle": {
            "hash": "7613a0879881343b774887cb2bbee0d67af995db5111dc163cd084a4127c97bb",
            "path": "system/native.js",
            "size": 122464
          },
          "catalog": 3,
          "dev": false,
          "v": 1,
          "widgets": [
            {
              "blurb": "CPU, memory, temperature, GPU, disk and network of the machine the engine runs on",
              "catalog": 4,
              "icon": "cpu",
              "id": "machine",
              "params": [
                {
                  "default": [
                    "cpu",
                    "ram",
                    "temp",
                    "gpu",
                    "net",
                    "disk"
                  ],
                  "key": "metrics",
                  "kind": "many",
                  "label": "Metrics",
                  "max": {
                    "L": 6,
                    "M": 2,
                    "S": 1,
                    "XL": 8
                  },
                  "min": 1,
                  "options": [
                    {
                      "icon": "cpu",
                      "label": "CPU",
                      "value": "cpu"
                    },
                    {
                      "icon": "memory-stick",
                      "label": "Memory",
                      "value": "ram"
                    },
                    {
                      "icon": "thermometer",
                      "label": "Temperature",
                      "value": "temp"
                    },
                    {
                      "icon": "gpu",
                      "label": "GPU",
                      "value": "gpu"
                    },
                    {
                      "icon": "microchip",
                      "label": "GPU memory",
                      "value": "vram"
                    },
                    {
                      "icon": "hard-drive",
                      "label": "Disk",
                      "value": "disk"
                    },
                    {
                      "icon": "network",
                      "label": "Network",
                      "value": "net"
                    },
                    {
                      "icon": "database",
                      "label": "Space",
                      "value": "space"
                    },
                    {
                      "icon": "activity",
                      "label": "Load",
                      "value": "load"
                    },
                    {
                      "icon": "layers",
                      "label": "Swap",
                      "value": "swap"
                    }
                  ]
                },
                {
                  "default": "15m",
                  "key": "window",
                  "kind": "one",
                  "label": "History",
                  "options": [
                    {
                      "label": "1 min",
                      "value": "1m"
                    },
                    {
                      "label": "15 min",
                      "value": "15m"
                    },
                    {
                      "label": "1 h",
                      "value": "1h"
                    },
                    {
                      "label": "24 h",
                      "value": "24h"
                    }
                  ]
                },
                {
                  "default": "",
                  "fn": "system::volumes",
                  "key": "volume",
                  "kind": "from",
                  "label": "Volume",
                  "when": {
                    "metrics": "space"
                  }
                },
                {
                  "default": "",
                  "fn": "system::gpus",
                  "key": "gpu",
                  "kind": "from",
                  "label": "GPU",
                  "when": {
                    "metrics": "gpu"
                  }
                },
                {
                  "default": "backdrop",
                  "key": "chart",
                  "kind": "one",
                  "label": "Chart",
                  "options": [
                    {
                      "label": "Behind",
                      "value": "backdrop"
                    },
                    {
                      "label": "Under",
                      "value": "under"
                    },
                    {
                      "label": "None",
                      "value": "none"
                    }
                  ]
                },
                {
                  "default": "auto",
                  "key": "layout",
                  "kind": "one",
                  "label": "Layout",
                  "options": [
                    {
                      "label": "Automatic",
                      "value": "auto"
                    },
                    {
                      "label": "Chart and numbers",
                      "value": "chart"
                    },
                    {
                      "label": "Grid",
                      "value": "grid"
                    },
                    {
                      "label": "Highlight",
                      "value": "highlight"
                    },
                    {
                      "label": "Gauges",
                      "value": "gauges"
                    },
                    {
                      "label": "Overlay",
                      "value": "overlay"
                    },
                    {
                      "label": "List",
                      "value": "list"
                    }
                  ],
                  "sizes": [
                    "L",
                    "XL"
                  ]
                }
              ],
              "size": "M",
              "sizes": [
                "S",
                "M",
                "L",
                "XL"
              ],
              "title": "Machine"
            },
            {
              "blurb": "Every temperature sensor, tinted by how close it is to its own limit",
              "catalog": 4,
              "icon": "thermometer",
              "id": "temps",
              "params": [],
              "size": "M",
              "sizes": [
                "M",
                "L",
                "XL"
              ],
              "title": "Temperatures"
            },
            {
              "blurb": "Network or disk traffic mirrored: in above the line, out below it",
              "catalog": 4,
              "icon": "arrow-down-up",
              "id": "traffic",
              "params": [
                {
                  "default": "network",
                  "key": "source",
                  "kind": "one",
                  "label": "Source",
                  "options": [
                    {
                      "label": "Network",
                      "value": "network"
                    },
                    {
                      "label": "Disk",
                      "value": "disk"
                    }
                  ]
                },
                {
                  "default": "",
                  "fn": "system::interfaces",
                  "key": "interface",
                  "kind": "from",
                  "label": "Interface",
                  "when": {
                    "source": "network"
                  }
                },
                {
                  "default": "",
                  "fn": "system::disks",
                  "key": "disk",
                  "kind": "from",
                  "label": "Disk",
                  "when": {
                    "source": "disk"
                  }
                }
              ],
              "size": "M",
              "sizes": [
                "M",
                "L",
                "XL"
              ],
              "title": "Traffic"
            },
            {
              "blurb": "How full each volume is, live",
              "catalog": 4,
              "icon": "database",
              "id": "volumes",
              "params": [],
              "size": "M",
              "sizes": [
                "M",
                "L"
              ],
              "title": "Volumes"
            },
            {
              "blurb": "All normal, or what has stayed past its limit: CPU, memory, temperature and space",
              "catalog": 4,
              "icon": "shield-check",
              "id": "health",
              "params": [],
              "size": "M",
              "sizes": [
                "S",
                "M"
              ],
              "title": "Health"
            },
            {
              "blurb": "The processes using the most CPU or memory, live",
              "catalog": 4,
              "icon": "list",
              "id": "processes",
              "params": [
                {
                  "default": "cpu",
                  "key": "sort",
                  "kind": "one",
                  "label": "Sort by",
                  "options": [
                    {
                      "label": "CPU",
                      "value": "cpu"
                    },
                    {
                      "label": "Memory",
                      "value": "memory"
                    }
                  ]
                }
              ],
              "size": "M",
              "sizes": [
                "M",
                "L",
                "XL"
              ],
              "title": "Processes"
            },
            {
              "blurb": "Each iii worker's CPU and memory, its whole process tree, live",
              "catalog": 4,
              "icon": "boxes",
              "id": "workers",
              "params": [],
              "size": "M",
              "sizes": [
                "M",
                "L",
                "XL"
              ],
              "title": "iii workers"
            },
            {
              "blurb": "The 1, 5 and 15 minute load against the number of CPU threads",
              "catalog": 4,
              "icon": "gauge",
              "id": "load",
              "params": [],
              "size": "M",
              "sizes": [
                "S",
                "M"
              ],
              "title": "Load"
            },
            {
              "blurb": "The machine's name, OS, uptime, CPU and kernel, to tell machines apart",
              "catalog": 4,
              "icon": "server",
              "id": "host",
              "params": [],
              "size": "M",
              "sizes": [
                "M",
                "L"
              ],
              "title": "This machine"
            },
            {
              "blurb": "Each logical CPU as a cell of a heat map, coloured by how busy it is",
              "catalog": 4,
              "icon": "layout-grid",
              "id": "cores",
              "params": [],
              "size": "M",
              "sizes": [
                "M",
                "L",
                "XL"
              ],
              "title": "Cores"
            },
            {
              "blurb": "How much of the time tasks wait for the CPU, memory or I/O (Linux PSI)",
              "catalog": 4,
              "icon": "hourglass",
              "id": "pressure",
              "params": [],
              "size": "M",
              "sizes": [
                "S",
                "M",
                "L"
              ],
              "title": "Pressure"
            },
            {
              "blurb": "The containers running, with their CPU and memory",
              "catalog": 4,
              "icon": "container",
              "id": "containers",
              "params": [],
              "size": "M",
              "sizes": [
                "M",
                "L",
                "XL"
              ],
              "title": "Containers"
            }
          ]
        }
      },
      "name": "system::native-ui",
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "Input of `<ns>::native-ui`: the app asks for the bundle by its path. Transport fields the engine adds (`_caller_worker_id`) are ignored.",
        "properties": {
          "path": {
            "description": "The descriptor's `bundle.path` (e.g. `browser/native.js`).",
            "type": "string"
          }
        },
        "required": [
          "path"
        ],
        "title": "NativeUiInput",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "Output of `<ns>::native-ui`.",
        "properties": {
          "content": {
            "description": "The bundle's JavaScript source, verbatim.",
            "type": "string"
          },
          "hash": {
            "description": "sha256 of the UTF-8 bytes of `content`, lower-case hex.",
            "type": "string"
          },
          "size": {
            "description": "Size of `content` in UTF-8 bytes.",
            "format": "uint",
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "content",
          "hash",
          "size"
        ],
        "title": "NativeUiContent",
        "type": "object"
      }
    },
    {
      "description": "Every 3 seconds while observed (and never otherwise): { at, containers: [{ id, name, cpu, mem }], unsupported? }, each container's cgroup (Docker, Podman, systemd-nspawn, LXC): cpu % of one core, mem bytes. unsupported: true without cgroup v2 or without a container runtime (and on macOS). Only the system worker calls it.",
      "metadata": {},
      "name": "system::on-containers",
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "ContainerRow": {
            "properties": {
              "cpu": {
                "description": "Percent of one core since the previous scan.",
                "format": "double",
                "type": "number"
              },
              "id": {
                "description": "Docker's and Podman's short id (12 hex digits), else the machine's or LXC container's name.",
                "type": "string"
              },
              "mem": {
                "description": "The cgroup's `memory.current`, bytes (page cache included).",
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "name": {
                "description": "Docker's name for it when its socket answers, else `id`.",
                "type": "string"
              }
            },
            "required": [
              "cpu",
              "id",
              "mem",
              "name"
            ],
            "type": "object"
          }
        },
        "description": "`system::on-containers`: the containers' cgroups.",
        "properties": {
          "at": {
            "format": "int64",
            "type": "integer"
          },
          "containers": {
            "description": "By CPU, the busiest first.",
            "items": {
              "$ref": "#/definitions/ContainerRow"
            },
            "type": "array"
          },
          "unsupported": {
            "description": "No cgroup v2 or no container runtime here (macOS, whose containers run in a VM, an old Linux, a machine without Docker, Podman, LXC or machined): `containers` is always empty.",
            "type": "boolean"
          }
        },
        "required": [
          "at",
          "containers"
        ],
        "title": "ContainersEvent",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "ContainerRow": {
            "properties": {
              "cpu": {
                "description": "Percent of one core since the previous scan.",
                "format": "double",
                "type": "number"
              },
              "id": {
                "description": "Docker's and Podman's short id (12 hex digits), else the machine's or LXC container's name.",
                "type": "string"
              },
              "mem": {
                "description": "The cgroup's `memory.current`, bytes (page cache included).",
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "name": {
                "description": "Docker's name for it when its socket answers, else `id`.",
                "type": "string"
              }
            },
            "required": [
              "cpu",
              "id",
              "mem",
              "name"
            ],
            "type": "object"
          }
        },
        "description": "`system::on-containers`: the containers' cgroups.",
        "properties": {
          "at": {
            "format": "int64",
            "type": "integer"
          },
          "containers": {
            "description": "By CPU, the busiest first.",
            "items": {
              "$ref": "#/definitions/ContainerRow"
            },
            "type": "array"
          },
          "unsupported": {
            "description": "No cgroup v2 or no container runtime here (macOS, whose containers run in a VM, an old Linux, a machine without Docker, Podman, LXC or machined): `containers` is always empty.",
            "type": "boolean"
          }
        },
        "required": [
          "at",
          "containers"
        ],
        "title": "ContainersEvent",
        "type": "object"
      }
    },
    {
      "description": "Every 3 seconds while observed (and never otherwise): { at, processes: [{ pid, name, cpu, mem }] }, the 10 processes using the most CPU and the 10 using the most memory, by CPU. cpu is % of one core (can pass 100), mem resident bytes. Only the system worker calls it.",
      "metadata": {},
      "name": "system::on-processes",
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "ProcessRow": {
            "properties": {
              "cpu": {
                "description": "Percent of one core since the previous scan (top-style: a process busy on four cores is 400).",
                "format": "double",
                "type": "number"
              },
              "mem": {
                "description": "Resident memory, bytes.",
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "name": {
                "type": "string"
              },
              "pid": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "cpu",
              "mem",
              "name",
              "pid"
            ],
            "type": "object"
          }
        },
        "description": "`system::on-processes`: the busiest processes.",
        "properties": {
          "at": {
            "description": "When the scan was taken, ms since the epoch.",
            "format": "int64",
            "type": "integer"
          },
          "processes": {
            "description": "The ten using the most CPU and the ten using the most memory (one row each), by CPU, the busiest first.",
            "items": {
              "$ref": "#/definitions/ProcessRow"
            },
            "type": "array"
          }
        },
        "required": [
          "at",
          "processes"
        ],
        "title": "ProcessesEvent",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "ProcessRow": {
            "properties": {
              "cpu": {
                "description": "Percent of one core since the previous scan (top-style: a process busy on four cores is 400).",
                "format": "double",
                "type": "number"
              },
              "mem": {
                "description": "Resident memory, bytes.",
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "name": {
                "type": "string"
              },
              "pid": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "cpu",
              "mem",
              "name",
              "pid"
            ],
            "type": "object"
          }
        },
        "description": "`system::on-processes`: the busiest processes.",
        "properties": {
          "at": {
            "description": "When the scan was taken, ms since the epoch.",
            "format": "int64",
            "type": "integer"
          },
          "processes": {
            "description": "The ten using the most CPU and the ten using the most memory (one row each), by CPU, the busiest first.",
            "items": {
              "$ref": "#/definitions/ProcessRow"
            },
            "type": "array"
          }
        },
        "required": [
          "at",
          "processes"
        ],
        "title": "ProcessesEvent",
        "type": "object"
      }
    },
    {
      "description": "One call per sample of the machine: { at, values: { <key>: number } } with the keys of system::history. Observed, the worker samples every second and each new observer gets the current sample at once; unobserved, every 10 seconds. Takes no args. Only the system worker calls it.",
      "metadata": {},
      "name": "system::on-sample",
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "One sample: what `system::on-sample` observers receive.",
        "properties": {
          "at": {
            "description": "When it was taken, ms since the epoch.",
            "format": "int64",
            "type": "integer"
          },
          "values": {
            "additionalProperties": {
              "format": "double",
              "type": "number"
            },
            "description": "Every series known this time: `cpu`, `ram`, `swap`, `gpu`, `vram`, `space`, `psi.cpu`, `psi.mem`, `psi.io`, `battery` (%), `load`, `temp` (°C), `power.gpu` (every GPU), `power.cpu` (W), `disk.read`, `disk.write`, `net.rx`, `net.tx` (bytes a second), and `<key>:<device>` per device (`cpu:3`, `temp:nvme0`, `temp:gpu:card1`, `fan:gpu:card1` in RPM, `power.gpu:card1`). A series with no value this time is absent.",
            "type": "object"
          }
        },
        "required": [
          "at",
          "values"
        ],
        "title": "SampleEvent",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "One sample: what `system::on-sample` observers receive.",
        "properties": {
          "at": {
            "description": "When it was taken, ms since the epoch.",
            "format": "int64",
            "type": "integer"
          },
          "values": {
            "additionalProperties": {
              "format": "double",
              "type": "number"
            },
            "description": "Every series known this time: `cpu`, `ram`, `swap`, `gpu`, `vram`, `space`, `psi.cpu`, `psi.mem`, `psi.io`, `battery` (%), `load`, `temp` (°C), `power.gpu` (every GPU), `power.cpu` (W), `disk.read`, `disk.write`, `net.rx`, `net.tx` (bytes a second), and `<key>:<device>` per device (`cpu:3`, `temp:nvme0`, `temp:gpu:card1`, `fan:gpu:card1` in RPM, `power.gpu:card1`). A series with no value this time is absent.",
            "type": "object"
          }
        },
        "required": [
          "at",
          "values"
        ],
        "title": "SampleEvent",
        "type": "object"
      }
    },
    {
      "description": "Every 3 seconds while observed (and never otherwise): { at, workers: [{ name, kind: 'worker' | 'engine', pids, cpu, mem }] }, what each iii worker connected to the engine (and the engine) uses with every process it started: cpu % of one core, mem resident bytes. Only the system worker calls it.",
      "metadata": {},
      "name": "system::on-workers",
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "WorkerRow": {
            "properties": {
              "cpu": {
                "description": "Percent of one core, the whole tree.",
                "format": "double",
                "type": "number"
              },
              "kind": {
                "description": "`worker` or `engine`.",
                "type": "string"
              },
              "mem": {
                "description": "Resident memory of the whole tree, bytes (shared pages count once per process).",
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "name": {
                "description": "The worker's name (`engine` for the engine's own process).",
                "type": "string"
              },
              "pids": {
                "description": "The worker's process first, then every process it started that is not itself a worker.",
                "items": {
                  "format": "uint32",
                  "minimum": 0,
                  "type": "integer"
                },
                "type": "array"
              }
            },
            "required": [
              "cpu",
              "kind",
              "mem",
              "name",
              "pids"
            ],
            "type": "object"
          }
        },
        "description": "`system::on-workers`: what each iii worker's process tree uses.",
        "properties": {
          "at": {
            "format": "int64",
            "type": "integer"
          },
          "workers": {
            "description": "Each worker connected to the engine whose process runs on this machine, and the engine itself when its process is known; by CPU, the busiest first.",
            "items": {
              "$ref": "#/definitions/WorkerRow"
            },
            "type": "array"
          }
        },
        "required": [
          "at",
          "workers"
        ],
        "title": "WorkersEvent",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "WorkerRow": {
            "properties": {
              "cpu": {
                "description": "Percent of one core, the whole tree.",
                "format": "double",
                "type": "number"
              },
              "kind": {
                "description": "`worker` or `engine`.",
                "type": "string"
              },
              "mem": {
                "description": "Resident memory of the whole tree, bytes (shared pages count once per process).",
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "name": {
                "description": "The worker's name (`engine` for the engine's own process).",
                "type": "string"
              },
              "pids": {
                "description": "The worker's process first, then every process it started that is not itself a worker.",
                "items": {
                  "format": "uint32",
                  "minimum": 0,
                  "type": "integer"
                },
                "type": "array"
              }
            },
            "required": [
              "cpu",
              "kind",
              "mem",
              "name",
              "pids"
            ],
            "type": "object"
          }
        },
        "description": "`system::on-workers`: what each iii worker's process tree uses.",
        "properties": {
          "at": {
            "format": "int64",
            "type": "integer"
          },
          "workers": {
            "description": "Each worker connected to the engine whose process runs on this machine, and the engine itself when its process is known; by CPU, the busiest first.",
            "items": {
              "$ref": "#/definitions/WorkerRow"
            },
            "type": "array"
          }
        },
        "required": [
          "at",
          "workers"
        ],
        "title": "WorkersEvent",
        "type": "object"
      }
    },
    {
      "description": "The temperature sensors as options, the CPU's first: { options: [{ value: <id in temp:<id>>, label, detail?: 'limit 89 °C' }] }.",
      "metadata": {},
      "name": "system::sensors",
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "No parameters. Anything is accepted (`null`, `{}`), as a caller with nothing to say may send either.",
        "title": "Empty",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "OptionItem": {
            "properties": {
              "detail": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "label": {
                "type": "string"
              },
              "value": {
                "description": "What the series keys use after the colon (`gpu:<value>`); `\"\"` for the choice that stands for them all (`gpu`, `net.rx`, `disk.read`).",
                "type": "string"
              }
            },
            "required": [
              "label",
              "value"
            ],
            "type": "object"
          }
        },
        "description": "A device list for a picker: the `param.from` contract.",
        "properties": {
          "options": {
            "items": {
              "$ref": "#/definitions/OptionItem"
            },
            "type": "array"
          }
        },
        "required": [
          "options"
        ],
        "title": "Options",
        "type": "object"
      }
    },
    {
      "description": "The machine the engine runs on, now: host (name, OS, kernel, arch, uptime), CPU (model, threads, usage %, each core's %, MHz, load), memory and swap (bytes), every temperature sensor (°C and its limit), fans (RPM), power (W of the GPUs and the CPU package), pressure (% of the time tasks stalled on CPU, memory, I/O), the battery, NVMe health (wear, writes, errors, hours; or why it cannot be read), GPUs (busy %, VRAM, °C), disks (read/write B/s, busy %), volumes (bytes), physical network interfaces (rx/tx B/s) and the virtual ones by name.",
      "metadata": {},
      "name": "system::snapshot",
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "No parameters. Anything is accepted (`null`, `{}`), as a caller with nothing to say may send either.",
        "title": "Empty",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "Battery": {
            "properties": {
              "cycles": {
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "health_pct": {
                "description": "The full capacity now over the design capacity, percent.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "pct": {
                "description": "Percent charged.",
                "format": "double",
                "type": "number"
              },
              "state": {
                "description": "`charging`, `discharging`, `full` or `unknown`.",
                "type": "string"
              },
              "time_s": {
                "description": "Seconds to full while charging, to empty while discharging.",
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "pct",
              "state"
            ],
            "type": "object"
          },
          "Cpu": {
            "properties": {
              "cores": {
                "description": "Percent busy of each logical CPU (`cpu:<n>`, in order); null before the second sample.",
                "items": {
                  "format": "double",
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "type": "array"
              },
              "load": {
                "description": "1, 5 and 15 minute load averages.",
                "items": {
                  "format": "double",
                  "type": "number"
                },
                "type": "array"
              },
              "mhz": {
                "description": "The fastest core now, MHz.",
                "format": "uint32",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "model": {
                "type": "string"
              },
              "threads": {
                "format": "uint32",
                "minimum": 0,
                "type": "integer"
              },
              "usage": {
                "description": "Percent of all cores busy; null before the second sample.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "cores",
              "load",
              "model",
              "threads"
            ],
            "type": "object"
          },
          "Disk": {
            "properties": {
              "busy": {
                "description": "Percent of the time with I/O in flight (Linux).",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "read_bps": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "write_bps": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "id"
            ],
            "type": "object"
          },
          "Fan": {
            "properties": {
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "rpm": {
                "format": "double",
                "type": "number"
              }
            },
            "required": [
              "id",
              "label",
              "rpm"
            ],
            "type": "object"
          },
          "Gpu": {
            "properties": {
              "busy": {
                "description": "Percent busy.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "c": {
                "description": "°C.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "vram_total": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "vram_used": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "name"
            ],
            "type": "object"
          },
          "Host": {
            "properties": {
              "arch": {
                "type": "string"
              },
              "kernel": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "os": {
                "type": "string"
              },
              "uptime_s": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "virtual": {
                "description": "`container` or `vm` when the worker runs in one (it then reports the sandbox, not the machine around it).",
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "arch",
              "kernel",
              "name",
              "os",
              "uptime_s"
            ],
            "type": "object"
          },
          "MemoryNow": {
            "description": "Bytes.",
            "properties": {
              "available": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "swap_total": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "swap_used": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "total": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "used": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "available",
              "swap_total",
              "swap_used",
              "total",
              "used"
            ],
            "type": "object"
          },
          "Net": {
            "properties": {
              "id": {
                "type": "string"
              },
              "rx_bps": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              },
              "tx_bps": {
                "format": "uint64",
                "minimum": 0,
                "type": [
                  "integer",
                  "null"
                ]
              }
            },
            "required": [
              "id"
            ],
            "type": "object"
          },
          "Power": {
            "properties": {
              "id": {
                "description": "`gpu:<id>` or `cpu`.",
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "w": {
                "description": "Watts.",
                "format": "double",
                "type": "number"
              }
            },
            "required": [
              "id",
              "label",
              "w"
            ],
            "type": "object"
          },
          "Pressure": {
            "description": "Percent of the time some task stalled (Linux PSI `some`), each null when unknown. On macOS `mem` is the memory pressure level: 0 normal, 50 warning, 100 critical.",
            "properties": {
              "cpu": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "io": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              },
              "mem": {
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "type": "object"
          },
          "Ssd": {
            "anyOf": [
              {
                "properties": {
                  "c": {
                    "description": "°C.",
                    "format": "double",
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "errors": {
                    "description": "Media and data integrity errors.",
                    "format": "uint64",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "id": {
                    "type": "string"
                  },
                  "model": {
                    "type": "string"
                  },
                  "power_on_h": {
                    "format": "uint64",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "wear_pct": {
                    "description": "The drive's estimate of its life used, percent (may pass 100).",
                    "format": "uint8",
                    "minimum": 0,
                    "type": "integer"
                  },
                  "written_bytes": {
                    "format": "uint64",
                    "minimum": 0,
                    "type": "integer"
                  }
                },
                "required": [
                  "errors",
                  "id",
                  "model",
                  "power_on_h",
                  "wear_pct",
                  "written_bytes"
                ],
                "type": "object"
              },
              {
                "properties": {
                  "c": {
                    "description": "°C, from the controller's own sensor when it has one.",
                    "format": "double",
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "error": {
                    "description": "`permission` (the health log needs root) or `unsupported`.",
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "model": {
                    "type": "string"
                  }
                },
                "required": [
                  "error",
                  "id",
                  "model"
                ],
                "type": "object"
              }
            ],
            "description": "An NVMe drive: its health, or why it cannot be read."
          },
          "Temp": {
            "properties": {
              "c": {
                "description": "°C.",
                "format": "double",
                "type": "number"
              },
              "id": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "max": {
                "description": "The sensor's own limit, °C (hwmon `crit`, else `max`); null when it gives none.",
                "format": "double",
                "type": [
                  "number",
                  "null"
                ]
              }
            },
            "required": [
              "c",
              "id",
              "label"
            ],
            "type": "object"
          },
          "Volume": {
            "description": "Bytes. `used` is what `df` calls used (on macOS, the whole APFS container's).",
            "properties": {
              "available": {
                "description": "What is left for the person to fill.",
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "fs": {
                "type": "string"
              },
              "mount": {
                "type": "string"
              },
              "total": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              },
              "used": {
                "format": "uint64",
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "available",
              "fs",
              "mount",
              "total",
              "used"
            ],
            "type": "object"
          }
        },
        "description": "Everything now, and what does not change.",
        "properties": {
          "at": {
            "description": "When the sample it reports was taken, ms since the epoch.",
            "format": "int64",
            "type": "integer"
          },
          "battery": {
            "anyOf": [
              {
                "$ref": "#/definitions/Battery"
              },
              {
                "type": "null"
              }
            ]
          },
          "cpu": {
            "$ref": "#/definitions/Cpu"
          },
          "disks": {
            "items": {
              "$ref": "#/definitions/Disk"
            },
            "type": "array"
          },
          "fans": {
            "description": "Every fan that reports its speed.",
            "items": {
              "$ref": "#/definitions/Fan"
            },
            "type": "array"
          },
          "gpus": {
            "items": {
              "$ref": "#/definitions/Gpu"
            },
            "type": "array"
          },
          "host": {
            "$ref": "#/definitions/Host"
          },
          "memory": {
            "$ref": "#/definitions/MemoryNow"
          },
          "net": {
            "description": "Physical interfaces (what the `net` series count).",
            "items": {
              "$ref": "#/definitions/Net"
            },
            "type": "array"
          },
          "net_virtual": {
            "description": "Interfaces left out of `net`: bridges, veths, tunnels, loopback.",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "power": {
            "description": "Every power reading: `gpu:<id>` and `cpu`.",
            "items": {
              "$ref": "#/definitions/Power"
            },
            "type": "array"
          },
          "pressure": {
            "anyOf": [
              {
                "$ref": "#/definitions/Pressure"
              },
              {
                "type": "null"
              }
            ],
            "description": "Percent of the time some task stalled; null where the machine says nothing of it."
          },
          "ssd": {
            "description": "Each NVMe drive's health, read at most once an hour.",
            "items": {
              "$ref": "#/definitions/Ssd"
            },
            "type": "array"
          },
          "temps": {
            "description": "Every temperature sensor; `id: \"cpu\"` is the one the `temp` series follows.",
            "items": {
              "$ref": "#/definitions/Temp"
            },
            "type": "array"
          },
          "volumes": {
            "items": {
              "$ref": "#/definitions/Volume"
            },
            "type": "array"
          }
        },
        "required": [
          "at",
          "cpu",
          "disks",
          "fans",
          "gpus",
          "host",
          "memory",
          "net",
          "net_virtual",
          "power",
          "ssd",
          "temps",
          "volumes"
        ],
        "title": "Snapshot",
        "type": "object"
      }
    },
    {
      "description": "The volumes (real filesystems, one per device, / first) as options: { options: [{ value: <mount point>, label, detail: '<fs> · <used> of <size>' }] }.",
      "metadata": {},
      "name": "system::volumes",
      "request_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "description": "No parameters. Anything is accepted (`null`, `{}`), as a caller with nothing to say may send either.",
        "title": "Empty",
        "type": "object"
      },
      "response_schema": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "definitions": {
          "OptionItem": {
            "properties": {
              "detail": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "label": {
                "type": "string"
              },
              "value": {
                "description": "What the series keys use after the colon (`gpu:<value>`); `\"\"` for the choice that stands for them all (`gpu`, `net.rx`, `disk.read`).",
                "type": "string"
              }
            },
            "required": [
              "label",
              "value"
            ],
            "type": "object"
          }
        },
        "description": "A device list for a picker: the `param.from` contract.",
        "properties": {
          "options": {
            "items": {
              "$ref": "#/definitions/OptionItem"
            },
            "type": "array"
          }
        },
        "required": [
          "options"
        ],
        "title": "Options",
        "type": "object"
      }
    }
  ]
}

Search the registry

Find workers, kits and executables, or jump to a page.