usage_timeseries
Retrieve the signed-in user's request usage as UTC time buckets for charts, with optional filters for range, bucket size, and endpoint.
Instructions
Get current user's usage timeseries. Returns the signed-in user's request usage as UTC time buckets for charts. range is period (default), day, week, month or custom (with RFC3339 from and to); bucket is hour or day; endpoint filters to one endpoint such as google/search. Each bucket has start, end, requests, charged_requests, credits and overage. Empty buckets are filled with zeros.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Custom upper bound in RFC3339 format when range=custom | |
| from | No | Custom lower bound in RFC3339 format when range=custom | |
| range | No | Time range preset. Defaults to the current billing period. | |
| bucket | No | Bucket size. Defaults to hour for day range and day otherwise. | |
| endpoint | No | Optional endpoint filter |