Skip to main content
POST
Postmortem Feedback
string
obrigatório
Nome do PostMortem (ex.: pm-checkout-service-oom-kill-1773871200)
string
padrão:"default"
Namespace Kubernetes (se omitido, só default é pesquisado)
string
obrigatório
Identificador de quem está fornecendo o feedback (ex.: email ou nome de usuário). Máximo 253 caracteres.
integer
obrigatório
Nota de 1 a 5 para a precisão da remediação automática da IA
  • 1 — Completamente errada, não resolveu nada
  • 2 — Parcialmente correta, mas com problemas significativos
  • 3 — Razoável, resolveu mas com ajustes manuais
  • 4 — Boa, resolveu com observações menores
  • 5 — Excelente, remediação perfeita
string
Causa raiz informada pela pessoa, gravada em feedback.overrideRootCause ao lado da análise da IA (o campo rootCause da IA não é reescrito). Máximo 4096 caracteres.
string
Comentários adicionais sobre o postmortem ou a remediação. Máximo 4096 caracteres.

Quando Usar

Após revisar um postmortem no Dashboard, o desenvolvedor pode fornecer feedback estruturado:
  1. Avaliar a remediação: classificar de 1 a 5 a precisão da ação automática
  2. Corrigir a causa raiz: registrar a causa raiz correta se a IA errou ou foi imprecisa
  3. Adicionar contexto: comentários com informações às quais a IA não tinha acesso
O feedback é exibido diretamente no Dashboard e fica persistido no status do CR PostMortem.
Requer role operator ou superior. O campo providedBy é obrigatório para rastreabilidade. remediationAccuracy deve ser de 1 a 5 (0 ou ausente retorna 400). Enviar feedback novamente sobrescreve o feedback anterior. Em caso de conflito concorrente, a API retorna 409 Conflict.

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

PostMortem name.

Exemplo:

"pm-payment-service-oom-1710860400"

Parâmetros de consulta

namespace
string
padrão:default

Namespace of the object. Defaults to default — pass it for objects in any other namespace.

Corpo

application/json
providedBy
string
obrigatório

Identifier of the feedback author.

Maximum string length: 253
Exemplo:

"sre-oncall"

remediationAccuracy
integer
obrigatório

Score 1-5 for the AI remediation accuracy.

Intervalo obrigatório: 1 <= x <= 5
Exemplo:

4

overrideRootCause
string

Human-provided root cause overriding the AI analysis.

Maximum string length: 4096
comments
string

Additional comments.

Maximum string length: 4096

Resposta

Feedback recorded

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"PostMortem"

spec
object
status
object
resourceMeta
object