Skip to main content
GET
Analytics Trends
string
Início da janela, RFC 3339 (ex.: 2026-03-01T00:00:00Z). Um valor inválido é ignorado.
string
Fim da janela, RFC 3339.
string
padrão:"day"
Agrupa os resultados por day ou week. Qualquer outro valor agrupa por dia.
Role mínima: viewer. Cobre todos os namespaces. Os Issues são agrupados por creationTimestamp; os grupos vêm ordenados por data e só aparecem grupos com pelo menos um Issue. bySeverity lista apenas as severidades que ocorreram. Com groupBy=week, a date do grupo é 1º de janeiro do ano ISO mais (semana ISO − 1) × 7 dias, uma aproximação que nem sempre cai numa segunda-feira.

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"

groupBy
enum<string>
padrão:day

day (default) or week.

Opções disponíveis:
day,
week

Resposta

Incident trends

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"IssueTrends"

metadata
object
items
object[]