Expand description
SQLite-backed telemetry database for agent performance tracking.
Stores events, per-agent metrics, per-task metrics, and session summaries
in .batty/telemetry.db. All tables use CREATE TABLE IF NOT EXISTS —
no migration framework needed.
Structs§
- Agent
Metrics Row - Agent metrics row for
batty telemetry agents. - Event
Row - Recent events row for
batty telemetry events. - Review
Metrics Row - Review pipeline metrics aggregated from the events table.
- Session
Summary Row - Summary row for
batty telemetry summary. - Task
Metrics Row - Task metrics row for
batty telemetry tasks.
Functions§
- insert_
event - Insert a raw event into the events table. Also updates derived metrics.
- open
- Open or create the telemetry database, initializing the schema.
- query_
agent_ metrics - query_
recent_ events - query_
review_ metrics - Query aggregated review pipeline metrics from the events table.
- query_
session_ summaries - query_
task_ metrics - record_
agent_ poll_ state - Record an agent’s poll state (idle or working) and accumulate cycle time.