dev.cocore.compute.modelActivity

Aggregate receipt activity per model and per time window. Walks the most-recent indexed receipts (capped at 5000), groups by `body.model`, and tallies requests + tokens across the hour/day/week/month windows, with per-provider breakdowns. The scan cap is reported back as `scanned`/`scanLimit`/`truncated` so consumers can tell an exact total from a lower bound; `oldestScannedAt` is the earliest receipt that contributed to any window.

Repository @cocore.dev did:plc:5quuhkmwe2q4k3azfsgg7kdz namespace authority
Details · query
Kindquery
Authoritycompute.cocore.dev
Indexed

Query

query · GET

Output

application/json

generatedAt

requiredstring · datetime

models

requiredarray
itemsobject

oldestScannedAt

string · datetime

Earliest receipt timestamp that contributed to any window, so a consumer can state the coverage of the counts. Absent when nothing counted.

scanLimit

integer

Cap the scan applied (receipts are walked newest-first).

scanned

integer

Number of indexed receipts this scan walked.

truncated

boolean

True when the scan filled its cap, so older receipts exist that these totals do not include. The wider windows (week/month) are then lower bounds.

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Network latency rollup derived purely from indexed receipts' signed `startedAt`/`completedAt` pairs — the last ≤100 per group (overall, per-provider, per-model). No side metrics store: the receipts are the source of truth, so the numbers cannot drift from them.