Skip to main content
POST
Review Postmortem
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
Identificador de quem revisa (ex.: um nome de usuário). Gravado na annotation aiops.chatcli.io/reviewed-by.
string
Notas da revisão. Gravadas na annotation aiops.chatcli.io/review-notes, e somente quando reviewer também é enviado.

Quando usar

PostMortems são gerados quando um incidente é resolvido ou contido. Este endpoint permite ao time:
  1. Marcar como em revisão: define status.state como InReview e status.reviewedAt com o horário atual
  2. Registrar quem está revisando: os campos opcionais reviewer/notes viram annotations no PostMortem
  3. Separar postmortems revisados dos não revisados: Open significa que ninguém olhou ainda
O body é opcional. O endpoint não altera a causa raiz, a timeline nem outros campos da análise; use Feedback do desenvolvedor para registrar uma causa raiz corrigida. Role mínima: operator. Não há trava de estado: a chamada também funciona em um postmortem Closed e o devolve para InReview.

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
reviewer
string

Stored in the annotation aiops.chatcli.io/reviewed-by.

notes
string

Stored in aiops.chatcli.io/review-notes, only together with reviewer.

Resposta

Postmortem moved to InReview

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"PostMortem"

spec
object
status
object
resourceMeta
object