docs(web-ui): document the 'all' stats window
Follow-up to the stats 'all' time-range feature: the agent and hive stats endpoint docs enumerated the window options but predated 'all'. Add it to the /api/stats and /api/stats-hive window lists, and note that 'all' ranges from the earliest recorded turn with an adaptive bucket width.
This commit is contained in:
parent
684c85686e
commit
9634327b59
2 changed files with 5 additions and 4 deletions
|
|
@ -328,8 +328,9 @@ shaped).
|
|||
flyout (`renderLooseEnds`). Returns pending questions the agent asked
|
||||
or owes, plus pending reminders. Also calls `reconcileAskBinds()` to
|
||||
wire inline answer forms to open `question_asked` events.
|
||||
- `GET /api/stats?window=24h|7d|30d` — time-bucketed turn analytics
|
||||
`Snapshot` consumed by the `/stats` page.
|
||||
- `GET /api/stats?window=24h|7d|30d|all` — time-bucketed turn analytics
|
||||
`Snapshot` consumed by the `/stats` page. `all` ranges from the
|
||||
earliest recorded turn with an adaptive bucket width.
|
||||
- `GET /events/history` — replay buffer for the terminal.
|
||||
- `GET /screen` — VNC viewer page (minimal RFB-over-WebSocket
|
||||
renderer — deliberately thin, just enough to display the
|
||||
|
|
@ -380,7 +381,7 @@ Bus events (new vocabulary on `/events/stream`):
|
|||
harness, linked from the per-agent page's `📊 stats →` and from
|
||||
each dashboard container row). Turn analytics, read-only, from
|
||||
`/state/hyperhive-turn-stats.sqlite`. `GET /api/stats?window=
|
||||
24h|7d|30d` returns a time-bucketed `Snapshot`; the page renders
|
||||
24h|7d|30d|all` returns a time-bucketed `Snapshot`; the page renders
|
||||
it with Chart.js (bundled into `stats.js` via esbuild — no CDN
|
||||
dependency). Charts: turns, duration (p50 · p95 · avg), context
|
||||
tokens, token cost per bucket, a **turns-by-model** stacked bar
|
||||
|
|
|
|||
|
|
@ -1094,7 +1094,7 @@ that's a browser-level decision, not ours.
|
|||
`/dashboard/history` backfill.
|
||||
- `GET /api/reminders` — list pending reminders for the
|
||||
dashboard's queued-reminders panel.
|
||||
- `GET /api/stats-hive?window=<1h|4h|24h|3d|7d|30d>` — hive-wide
|
||||
- `GET /api/stats-hive?window=<1h|4h|24h|3d|7d|30d|all>` — hive-wide
|
||||
turn-stats rollup for the ST4TS tab. Aggregates every agent's
|
||||
`hyperhive-turn-stats.sqlite` read-only (skips missing / unreadable /
|
||||
zero-turn dbs); returns swarm totals, a busiest-first per-agent
|
||||
|
|
|
|||
Loading…
Reference in a new issue