get_usage
Read the organisation's usage of Ankra - the same report GET /org/billing/usage serves: worker vCPU-hours, ordered playground time, managed service instance time (seconds) and storage (byte-hours), hosted logs bytes and lines, hosted metrics samples and active series (series-hours), and AI requests and tokens - one line per meter and period, optionally split by cluster, by the application a managed service serves, or by managed service instance. Give instance_id for one managed service instance's usage, or application_id for the service usage of one application's instances. Each line says its unit, quantity, coverage and price state: coverage unknown means nothing measured that period and quantity is null - unknown usage, never zero, so never report it as zero; partial means quantity is a lower bound. price_state included means Ankra charges nothing for it during the managed services pilot; priced means a published rate applies and amount_display is what it costs; unpriced means no per-unit rate applies (price_basis says why). Only priced lines carry an amount. Read-only; needs billing.read. The window is at most 93 days; a longer stretch is read in parts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The day after the last UTC day to read, YYYY-MM-DD. Defaults to tomorrow; at most 93 days after from. | |
| from | No | First UTC day to read, YYYY-MM-DD. Defaults to the first day of the current month; not after today and not more than 400 days back. | |
| group_by | No | Split the lines by meter only (default), or also by cluster, application or managed service instance. Ignored with instance_id or application_id, which split by instance. | |
| granularity | No | Period of each line: a calendar month (default) or a UTC day. | |
| instance_id | No | A managed service instance id: report only that instance's instance time and storage. | |
| application_id | No | An application id: report the instance time and storage of each managed service instance whose reviewed plan serves it. |