ai_usage_log_stats
Get billing ledger KPIs including totals, per-model breakdown, 30-day trends, and error analysis for AI usage logs.
Instructions
Dashboard KPIs for the billing ledger: totals, per-model breakdown, 30-day timeseries, recent errors, derived metrics (cache hit rate, avg cost per billed doc, monthly €).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connection | No | default | |
| tenant_code | No | Tenant slug. Derived from connection if omitted. | |
| period | No | month |