Skip to main content
GET
Get SLO Error Budget
string
obrigatório
Nome do SLO (ex.: payment-availability)
string
Namespace do SLO. Se omitido, todos os namespaces são pesquisados.
Role mínima: viewer. A resposta tem apenas spec (sem status nem resourceMeta) e todos os campos sempre aparecem. Não há histórico, previsão nem opção de granularidade.
  • currentValue e errorBudgetRemaining são percentuais; errorBudgetTotal é uma fração (1 - target/100) e errorBudgetUsed é a parte usada, na mesma unidade.
  • burnRate é a taxa de consumo de 1 hora do controller (status.burnRate1h; 1.0 = consumindo o budget exatamente no ritmo previsto). As taxas de 6h, 24h e 72h estão em Obter SLO.
  • state é Healthy, AtRisk ou Breached (veja Listar SLOs) e vem vazio antes do primeiro cálculo do controller.

Autorizações

X-API-Key
string
header
obrigatório

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).

Parâmetros de caminho

name
string
obrigatório

ServiceLevelObjective name.

Exemplo:

"payment-availability"

Parâmetros de consulta

namespace
string

Namespace of the object. When omitted, all namespaces are searched and the first object with this name is used.

Resposta

SLO budget

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"SLOBudget"

spec
object