Skip to main content

Module usage

Module usage 

Source
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§

AppliedFilters
Filters that were applied to produce the response, echoed back to the caller so clients can confirm defaults that were filled in server-side.
UsageBucket
One time-bucket’s aggregated usage.
UsageStatsQuery
Query parameters accepted by GET /v1/usage/stats.
UsageStatsResponse
Response body for GET /v1/usage/stats.
UsageTotals
Aggregated totals across the full query window.

Enums§

Bucket
Bucketing granularity for usage aggregation.