pub async fn get_usage(
__arg0: State<AppState>,
__arg1: Query<UsageQuery>,
) -> Result<Json<UsageReport>, ApiError>Expand description
GET /api/usage — cost, turns, and terminal outcomes per workspace over a
window, with a per-day series (#180).
The store does the aggregation; this only resolves the window and reshapes
the rows. Bounds are compared lexically against the stored RFC-3339
timestamps — the same assumption retention already makes — so the defaults
are emitted with to_rfc3339() to match the format events are written in.