Query
Parameters
Input parameters for usage history query
Return Type
Returns aUsageHistoryV2 object with:
| Field | Type | Description |
|---|---|---|
totalUsage | Float | Total usage in the period |
periods | [UsagePeriod] | Usage broken down by period |
UsagePeriod Fields
| Field | Type | Description |
|---|---|---|
periodStart | DateTime | Period start time |
periodEnd | DateTime | Period end time |
usage | Float | Usage in this period |
Common Use Cases
Usage analytics dashboard
Usage analytics dashboard
Build usage trend charts showing consumption over time.
Billing reports
Billing reports
Generate usage reports for customer billing visibility.
Capacity planning
Capacity planning
Analyze usage patterns to predict future needs.
Example: Build Usage Chart
Related Operations
- Usage Events - Raw usage events
- Report Usage - Report usage
