Skip to main content
POST
Close 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 está fechando o postmortem. Gravado na annotation aiops.chatcli.io/reviewed-by.
string
Notas finais. Gravadas na annotation aiops.chatcli.io/review-notes, somente quando reviewer também é enviado.

Ciclo de vida do PostMortem

A chamada define status.state como Closed e status.reviewedAt com o horário atual. Role mínima: operator. O handler REST não tem trava de estado (fechar duas vezes funciona, e /review pode reabrir um postmortem fechado), então Closed é um status, não uma garantia de imutabilidade.
Incidentes contidos precisam de reconhecimento antes. Quando o postmortem tem requiresHumanAction: true (o operator conteve o incidente e uma pessoa precisa restaurar o workload), /close ainda retorna 200, mas o controller de PostMortem volta o estado para Open no próximo reconcile, a menos que a annotation aiops.chatcli.io/human-action-acknowledged esteja definida. Chame Reconhecer ação humana antes de fechar.

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 closed

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"PostMortem"

spec
object
status
object
resourceMeta
object