Skip to main content
GET
Get a cluster's namespace cost history (bearer twin)

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.

Path Parameters

cluster_id
string<uuid>
required

Query Parameters

days
integer

The window in days, 1 to 35 (at most 7 when granularity is hour); 30 by default, 7 for hour.

Required range: 1 <= x <= 35
granularity
enum<string>

The bucket size: day (the default) or hour.

Available options:
day,
hour

Response

Successful response

cluster_id
string<uuid>
required
currency
string
required
granularity
enum<string>
required
Available options:
day,
hour
days
integer
required
from
string<date-time>
required

The start of the first bucket (UTC).

to
string<date-time>
required

The end of the window: now.

buckets
NamespaceCostBucket · object[]
required
namespaces
NamespaceCostSeries · object[]
required

One series per namespace seen in the window, costliest first.