Skip to main content
GET
Capacity Forecast
string
Filter by Kubernetes namespace. Omit it to cover every namespace.
string
Start of the window, RFC 3339.
string
End of the window, RFC 3339. The window length is to − from when both are valid, otherwise 7 days; the window always ends at the current time.
Minimum role: viewer. One forecast is built for each distinct resource referenced by an Issue (any Issue, not only those in the window). The planner reads it as a Deployment of that name; resources that are not Deployments, or that no longer exist, are skipped silently.

Forecast Fields

The recommendation warns when requests are above 80% of limits, then flags repeated incidents on a bottleneck resource, and otherwise says that no trend can be projected and requests are within limits.
This is a requests-versus-limits report plus incident correlation, not a forecast: usage is what the first container requests, not measured consumption, and no trend or exhaustion date is projected.
The forecast is a Go struct with no JSON tags, so its keys are PascalCase (only Resource keeps lowercase inner keys). Absent exhaustion dates are null and absent day counts are 0.

Authorizations

X-API-Key
string
header
required

API key sent in the X-API-Key header. Keys are read from the Secret chatcli-operator-secrets, key api-keys (fallback: ConfigMap chatcli-operator-config, key api-keys) in the operator namespace, as a YAML list of {key, role, name, description} (name is the identity recorded on approval decisions); the operator chart creates it only with apiKeys.create: true. Roles: viewer < operator < admin — any other role string is denied everywhere. Changes are picked up within about 30 seconds; deleting both the Secret and the ConfigMap revokes every key. With no keys configured every /api/ call returns 401, unless CHATCLI_OPERATOR_DEV_MODE=true, which grants admin without a key (development only).

Query Parameters

namespace
string

Kubernetes namespace. Empty means all namespaces.

from
string<date-time>

Start of the time range (RFC3339). Unparseable values are ignored.

Example:

"2026-03-01T00:00:00Z"

to
string<date-time>

End of the time range (RFC3339). Unparseable values are ignored.

Example:

"2026-03-19T23:59:59Z"

Response

Capacity forecast list

apiVersion
string
Example:

"v1"

kind
string
Example:

"CapacityForecastList"

metadata
object
items
object[]