usage_stats
Windowed statistics for the authenticated account, same data as the console's Statistics pages. report=latency: per-chain p50/p95 per bucket + summary. report=errors: 4xx/5xx by method and chain, per-bucket series and the most recent failures. report=spend: month-to-date pace (weighted units per day), projected month-end vs the plan's included volume and quota-exhaustion risk (no metered overage exists; Builder has no ceiling). report=cache: edge-cache hit rate, upstream calls avoided, measured time saved, units_saved (cache hits cost 0 units — the nominal weight they would have cost) and money_saved_cents at rate_basis (plan or pro_reference).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| report | Yes | One of: latency, errors, spend, cache | |
| window | No | Window key: 1h, 6h, 12h, 24h (default), 3d, 7d or 30d (ignored for spend) |