Skip to main content

Module record_read

Module record_read 

Source
Expand description

GET /api/v1/app/record: this machine’s record of AgentMux’s own size over weeks, for the App tool’s record action and the panel (docs/specs/SPEC_LONG_RUNNING_ZERO_DEGRADATION_2026_11_16.md §6, task #47820). It reads the files backend::record writes; nothing is sent anywhere, and a line holds numbers and stable keys only (no names, titles or paths).

Structs§

Ask 🔒
What was asked: kind (rollup, the default, raw or events), the window from_ms to to_ms (or one UTC day) and how many of its newest lines (limit).

Enums§

Kind 🔒

Constants§

DAY_MS 🔒
DEFAULT_EVENTS 🔒
DEFAULT_RAW 🔒
DEFAULT_ROLLUPS 🔒
MAX_EVENTS 🔒
MAX_RAW 🔒
MAX_ROLLUPS 🔒
Lines an answer may carry: an hourly rollup is about 1 KB and a five-minute line about 2 KB.

Functions§

answer 🔒
The answer for ask read from dir: what the record holds, the lines, and matched: how many lines the window holds in all (more than lines when the limit cut it).
handle_record 🔒
parse_ask 🔒