Get account-level statistics
ably_get_account_statsRetrieve aggregated usage statistics across the whole account, bucketed by time. Account id is resolved from the control token when ABLY_ACCOUNT_ID is unset. Control API: GET /accounts/{account_id}/stats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End of range, ms since epoch (inclusive). | |
| unit | No | Bucket size: minute | hour | day | month. Default minute. | |
| limit | No | Max buckets (<=1000). Default 100. | |
| start | No | Start of range, ms since epoch (inclusive). | |
| account_id | No | Override the account id (defaults to the token's account). |