Skip to main content
GET
List SLOs
string
Filtrar por namespace Kubernetes. Sem ele, lista todos os namespaces.
integer
padrão:"1"
Número da página
integer
padrão:"20"
Itens por página (máximo 100)
Role mínima: viewer. Não existem filtros por serviço ou status: a lista só é filtrada por namespace e paginada. Sobre os campos:
  • sli é spec.indicator.type (availability, latency, error_rate ou throughput); target e window vêm de spec.target.percentage e spec.target.window.
  • currentValue e errorBudgetRemaining são convertidos para percentual (o CRD guarda frações); errorBudgetTotal é devolvido como está armazenado, uma fração (1 - target/100).
  • errorBudgetUsed é a parte usada do budget, na mesma unidade de errorBudgetTotal (errorBudgetTotal × status.errorBudgetConsumedPercentage / 100).
  • burnRate1h, burnRate6h, burnRate24h e burnRate72h são as taxas de consumo multi-janela do controller (1.0 = consumindo o budget exatamente no ritmo previsto); activeAlerts é o número de alertas de burn rate disparados.
  • state é derivado do status que o controller grava: Breached quando a meta não é atingida ou o error budget acabou, AtRisk enquanto um alerta de burn rate está disparado, Healthy nos demais casos. Ele fica de fora 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 consulta

namespace
string

Kubernetes namespace. Empty means all namespaces.

page
integer
padrão:1

Page number (1-based). Invalid values fall back to 1.

Intervalo obrigatório: x >= 1
pageSize
integer
padrão:20

Items per page. Values above 100 are capped at 100.

Intervalo obrigatório: 1 <= x <= 100

Resposta

Paginated list of SLOs

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"ServiceLevelObjectiveList"

metadata
object
items
object[]