Skip to main content
GET
Get the organisation's fleet cost rollup

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-ankra-organisation-id
string

PAT organisation override.

Response

Successful response

by_credential
FleetCredentialCost · object[]
required
by_provider
FleetProviderCost · object[]
required
cluster_count
integer
required
clusters
FleetClusterCost · object[]
required
currency
string
required
month_to_date_cents
integer
required
monthly_cost_estimate_cents
integer
required
projected_month_end_cents
integer
required
top_clusters
FleetClusterCost · object[]
required
generated_at
string<date-time> | null
required

When the newest cost snapshot behind these figures was computed (RFC 3339, UTC), so a reader can say how fresh they are rather than when it asked. Null when no cluster has a snapshot in the window.

unmetered_clusters
FleetUnmeteredCluster · object[]
required

The clusters in scope that spent money this month but carry no fresh snapshot: deleted this month, or with metering that has stalled. What they spent is part of month_to_date_cents and projected_month_end_cents; they add no pace and are not in clusters, cluster_count or the buckets.

unmetered_month_to_date_cents
integer
required

What the unmetered clusters spent this month, in the display currency. The buckets plus this figure reconcile to month_to_date_cents.