Expand description
Wire-level request/response DTOs for the usage stats API.
These types are shared between distri-cloud and distri-server so both
services expose byte-identical JSON on the wire for the
GET /v1/usage/stats endpoint. Do not add server-specific logic here —
this module is pure serde shapes.
Structs§
- Applied
Filters - Filters that were applied to produce the response, echoed back to the caller so clients can confirm defaults that were filled in server-side.
- Usage
Bucket - One time-bucket’s aggregated usage.
- Usage
Stats Query - Query parameters accepted by
GET /v1/usage/stats. - Usage
Stats Response - Response body for
GET /v1/usage/stats. - Usage
Totals - Aggregated totals across the full query window.
Enums§
- Bucket
- Bucketing granularity for usage aggregation.