AccountUsage
The AccountUsage type of the TypeScript SDK, which accounts.getUsage take or answer.
type AccountUsage = {
accountId: string
days: UsageDay[]
from: string
requests?: RequestBreakdownRow[]
to: string
}Fields
| Field | Type | Description |
|---|---|---|
accountId | string | Account ID |
days | UsageDay[] | Daily usage metrics for each day in range |
from | string | Start date of queried usage range (YYYY-MM-DD) |
requests | RequestBreakdownRow[] | Optional. Summary of API calls broken down by resource and surface |
to | string | End date of queried usage range (YYYY-MM-DD) |
Used by
| Method | What it does |
|---|---|
accounts.getUsage | Get daily account usage metrics |