Skip to main content
POST
Acknowledge required human action
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
Quem executou o acompanhamento. Máximo 253 caracteres. Gravado na annotation aiops.chatcli.io/human-action-acknowledged-by.
string
Nota livre sobre o que foi feito. Máximo 1024 caracteres. Gravada na annotation aiops.chatcli.io/human-action-note.

Quando usar

Quando o operator contém um incidente (por exemplo, silencia um workload em crash em vez de corrigi-lo), o Issue termina no estado Contained e o PostMortem recebe requiresHumanAction: true e um requiredAction descrevendo o que uma pessoa precisa fazer. Enquanto essa flag estiver ativa e sem reconhecimento, o controller de PostMortem volta qualquer estado Closed para Open. Depois de fazer o acompanhamento, chame este endpoint. Ele:
  1. Define as annotations aiops.chatcli.io/human-action-acknowledged: "true" e aiops.chatcli.io/human-action-acknowledged-at (UTC, RFC 3339), além de -acknowledged-by e human-action-note quando enviados
  2. Limpa status.requiresHumanAction (requiredAction é mantido como histórico)
Em seguida, feche o postmortem. O body é opcional. Role mínima: operator.
A chamada não restaura o workload; ela só registra que alguém fez isso. Definir a annotation com kubectl annotate tem o mesmo efeito no controller (os valores true, True, yes, ack e acknowledged são aceitos), mas deixa status.requiresHumanAction ativo.

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, description}; no chart creates it. Roles: viewer < operator < admin — any other role string is denied everywhere. Changes are picked up within about 30 seconds. 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
acknowledgedBy
string

Who performed the required action.

Maximum string length: 253
Exemplo:

"sre-team"

note
string

Free-text note describing the action taken.

Maximum string length: 1024
Exemplo:

"Rolled back to v1.2.3 and scaled replicas back to 3."

Resposta

Human action acknowledged. The response has spec and status but no resourceMeta.

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"PostMortem"

spec
object
status
object
resourceMeta
object