get_namespace_cost_history
Read how the current cluster's cost was allocated to each namespace over time - the same series GET /org/clusters/{cluster_id}/cost/namespaces/history serves. days is the window, 1 to 35 (the metering keeps 35 days; default 30), and granularity is day (the default) or hour (at most 7 days; default 7). Returns, in the organisation's display currency, the buckets the window was cut into (each with hours and attributed_hours, the hours the metering attributed to namespaces) and, costliest first, each namespace's cost_cents: one value per bucket in minor units of currency, null where the metering attributed none of the bucket's hours (unknown, not zero) and 0 where it ran and gave the namespace nothing. The 15 costliest namespaces are listed; namespaces_not_listed counts the rest. List-price estimates, not the bill; nothing is extrapolated. Read-only; use get_cluster_cost for the latest snapshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | The window in days: 1 to 35, at most 7 by the hour. Leave it out for 30 days (7 by the hour). | |
| cluster_id | Yes | Ankra cluster id (UUID) the call targets. Discover ids with list_clusters. | |
| granularity | No | The bucket size: day (the default) or hour. |