v14

latestOpenAPI 3.0.1Apache 2.0raw.githubusercontent.com2026-08-0151328.1 KB

query for costs and resources allocated to Kubernetes workloads

The standard OpenCost API query for costs and resources allocated to Kubernetes workloads. Note that 'data' is an array of sets (one per 'step').

get/allocation

Query parameters

windowstring required

Duration of time over which to query. Accepts: words like today, lastweek; durations like 30m, 7d; RFC3339 date pairs; or Unix timestamps.

aggregatestring

Field by which to aggregate. e.g., namespace, controller, label:app.

stepstring

Duration of a single allocation set. Default is window.

accumulateboolean

If true, sums the entire window into a single result set.

Response

Success

codeinteger
statusstring
dataobject[]
All 5 operations