Skip to main content
GET
Analytics MTTD
string
Início da janela, RFC 3339 (ex.: 2026-03-01T00:00:00Z). Um valor inválido é ignorado.
string
Fim da janela, RFC 3339.
Role mínima: viewer. Cobre todos os namespaces. Para cada Issue criado na janela, exceto os induzidos por um experimento de chaos (label platform.chatcli.io/source: chaos-experiment), o tempo de detecção é status.detectedAt − metadata.creationTimestamp (0 quando detectedAt está vazio ou é anterior). Os Issues são agrupados pelo dia em que foram criados (YYYY-MM-DD, em ordem crescente). Em cada item, value é a média em segundos e count o número de Issues daquele dia. Como o Issue é criado quando o operator reage a uma anomalia, isso mede o intervalo entre o Issue e sua marcação de detecção, não o tempo entre a falha real e a detecção. Valores próximos de 0 são esperados.

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

from
string<date-time>

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

Exemplo:

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

to
string<date-time>

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

Exemplo:

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

Resposta

MTTD per day

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"MTTDMetrics"

metadata
object
items
object[]