curl --request POST \
--url {scheme}://{host}:{port}/{basePath}/postmortems/{name}/feedback \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"providedBy": "sre-oncall",
"remediationAccuracy": 4,
"overrideRootCause": "Leak caused by an uncancelled goroutine in the webhook handler.",
"comments": "Good analysis. Suggest AdjustResources before restart next time."
}
'import requests
url = "{scheme}://{host}:{port}/{basePath}/postmortems/{name}/feedback"
payload = {
"providedBy": "sre-oncall",
"remediationAccuracy": 4,
"overrideRootCause": "Leak caused by an uncancelled goroutine in the webhook handler.",
"comments": "Good analysis. Suggest AdjustResources before restart next time."
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
providedBy: 'sre-oncall',
remediationAccuracy: 4,
overrideRootCause: 'Leak caused by an uncancelled goroutine in the webhook handler.',
comments: 'Good analysis. Suggest AdjustResources before restart next time.'
})
};
fetch('{scheme}://{host}:{port}/{basePath}/postmortems/{name}/feedback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "{scheme}://{host}:{port}/{basePath}/postmortems/{name}/feedback",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'providedBy' => 'sre-oncall',
'remediationAccuracy' => 4,
'overrideRootCause' => 'Leak caused by an uncancelled goroutine in the webhook handler.',
'comments' => 'Good analysis. Suggest AdjustResources before restart next time.'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{scheme}://{host}:{port}/{basePath}/postmortems/{name}/feedback"
payload := strings.NewReader("{\n \"providedBy\": \"sre-oncall\",\n \"remediationAccuracy\": 4,\n \"overrideRootCause\": \"Leak caused by an uncancelled goroutine in the webhook handler.\",\n \"comments\": \"Good analysis. Suggest AdjustResources before restart next time.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("{scheme}://{host}:{port}/{basePath}/postmortems/{name}/feedback")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"providedBy\": \"sre-oncall\",\n \"remediationAccuracy\": 4,\n \"overrideRootCause\": \"Leak caused by an uncancelled goroutine in the webhook handler.\",\n \"comments\": \"Good analysis. Suggest AdjustResources before restart next time.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("{scheme}://{host}:{port}/{basePath}/postmortems/{name}/feedback")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"providedBy\": \"sre-oncall\",\n \"remediationAccuracy\": 4,\n \"overrideRootCause\": \"Leak caused by an uncancelled goroutine in the webhook handler.\",\n \"comments\": \"Good analysis. Suggest AdjustResources before restart next time.\"\n}"
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "PostMortem",
"spec": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "InReview",
"duration": "45m0s",
"feedback": {
"overrideRootCause": "Leak causado por uma goroutine não cancelada no handler de webhook, e não pelo response body",
"remediationAccuracy": 4,
"comments": "Boa análise. Da próxima vez, considere sugerir AdjustResources antes de um restart.",
"providedBy": "sre-oncall",
"providedAt": "2026-03-19T09:00:00Z"
},
"generatedAt": "2026-03-18T22:45:00Z",
"reviewedAt": "2026-03-19T08:30:00Z",
"creationTimestamp": "2026-03-18T22:45:00Z"
},
"status": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "InReview",
"duration": "45m0s",
"feedback": {
"overrideRootCause": "Leak causado por uma goroutine não cancelada no handler de webhook, e não pelo response body",
"remediationAccuracy": 4,
"comments": "Boa análise. Da próxima vez, considere sugerir AdjustResources antes de um restart.",
"providedBy": "sre-oncall",
"providedAt": "2026-03-19T09:00:00Z"
},
"generatedAt": "2026-03-18T22:45:00Z",
"reviewedAt": "2026-03-19T08:30:00Z",
"creationTimestamp": "2026-03-18T22:45:00Z"
},
"resourceMeta": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"uid": "3d9b8e61-2f4a-4b7c-8e15-6a0c9f2d7b43",
"creationTimestamp": "2026-03-18T22:45:00Z"
}
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "Bad Request",
"code": 400,
"message": "remediationAccuracy must be between 1 and 5"
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "Conflict",
"code": 409,
"message": "postmortem was modified concurrently, please retry"
}
Feedback do Desenvolvedor
Envia feedback humano sobre um postmortem: permite ao desenvolvedor avaliar a precisão da remediação, corrigir a causa raiz e adicionar comentários
curl --request POST \
--url {scheme}://{host}:{port}/{basePath}/postmortems/{name}/feedback \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"providedBy": "sre-oncall",
"remediationAccuracy": 4,
"overrideRootCause": "Leak caused by an uncancelled goroutine in the webhook handler.",
"comments": "Good analysis. Suggest AdjustResources before restart next time."
}
'import requests
url = "{scheme}://{host}:{port}/{basePath}/postmortems/{name}/feedback"
payload = {
"providedBy": "sre-oncall",
"remediationAccuracy": 4,
"overrideRootCause": "Leak caused by an uncancelled goroutine in the webhook handler.",
"comments": "Good analysis. Suggest AdjustResources before restart next time."
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
providedBy: 'sre-oncall',
remediationAccuracy: 4,
overrideRootCause: 'Leak caused by an uncancelled goroutine in the webhook handler.',
comments: 'Good analysis. Suggest AdjustResources before restart next time.'
})
};
fetch('{scheme}://{host}:{port}/{basePath}/postmortems/{name}/feedback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "62437",
CURLOPT_URL => "{scheme}://{host}:{port}/{basePath}/postmortems/{name}/feedback",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'providedBy' => 'sre-oncall',
'remediationAccuracy' => 4,
'overrideRootCause' => 'Leak caused by an uncancelled goroutine in the webhook handler.',
'comments' => 'Good analysis. Suggest AdjustResources before restart next time.'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "{scheme}://{host}:{port}/{basePath}/postmortems/{name}/feedback"
payload := strings.NewReader("{\n \"providedBy\": \"sre-oncall\",\n \"remediationAccuracy\": 4,\n \"overrideRootCause\": \"Leak caused by an uncancelled goroutine in the webhook handler.\",\n \"comments\": \"Good analysis. Suggest AdjustResources before restart next time.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("{scheme}://{host}:{port}/{basePath}/postmortems/{name}/feedback")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"providedBy\": \"sre-oncall\",\n \"remediationAccuracy\": 4,\n \"overrideRootCause\": \"Leak caused by an uncancelled goroutine in the webhook handler.\",\n \"comments\": \"Good analysis. Suggest AdjustResources before restart next time.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("{scheme}://{host}:{port}/{basePath}/postmortems/{name}/feedback")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"providedBy\": \"sre-oncall\",\n \"remediationAccuracy\": 4,\n \"overrideRootCause\": \"Leak caused by an uncancelled goroutine in the webhook handler.\",\n \"comments\": \"Good analysis. Suggest AdjustResources before restart next time.\"\n}"
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "PostMortem",
"spec": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "InReview",
"duration": "45m0s",
"feedback": {
"overrideRootCause": "Leak causado por uma goroutine não cancelada no handler de webhook, e não pelo response body",
"remediationAccuracy": 4,
"comments": "Boa análise. Da próxima vez, considere sugerir AdjustResources antes de um restart.",
"providedBy": "sre-oncall",
"providedAt": "2026-03-19T09:00:00Z"
},
"generatedAt": "2026-03-18T22:45:00Z",
"reviewedAt": "2026-03-19T08:30:00Z",
"creationTimestamp": "2026-03-18T22:45:00Z"
},
"status": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "InReview",
"duration": "45m0s",
"feedback": {
"overrideRootCause": "Leak causado por uma goroutine não cancelada no handler de webhook, e não pelo response body",
"remediationAccuracy": 4,
"comments": "Boa análise. Da próxima vez, considere sugerir AdjustResources antes de um restart.",
"providedBy": "sre-oncall",
"providedAt": "2026-03-19T09:00:00Z"
},
"generatedAt": "2026-03-18T22:45:00Z",
"reviewedAt": "2026-03-19T08:30:00Z",
"creationTimestamp": "2026-03-18T22:45:00Z"
},
"resourceMeta": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"uid": "3d9b8e61-2f4a-4b7c-8e15-6a0c9f2d7b43",
"creationTimestamp": "2026-03-18T22:45:00Z"
}
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "Bad Request",
"code": 400,
"message": "remediationAccuracy must be between 1 and 5"
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "Conflict",
"code": 409,
"message": "postmortem was modified concurrently, please retry"
}
pm-checkout-service-oom-kill-1773871200)default é pesquisado)- 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
feedback.overrideRootCause ao lado da análise da IA (o campo rootCause da IA não é reescrito). Máximo 4096 caracteres.Quando Usar
Após revisar um postmortem no Dashboard, o desenvolvedor pode fornecer feedback estruturado:- Avaliar a remediação: classificar de 1 a 5 a precisão da ação automática
- Corrigir a causa raiz: registrar a causa raiz correta se a IA errou ou foi imprecisa
- Adicionar contexto: comentários com informações às quais a IA não tinha acesso
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.{
"apiVersion": "v1",
"kind": "PostMortem",
"spec": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "InReview",
"duration": "45m0s",
"feedback": {
"overrideRootCause": "Leak causado por uma goroutine não cancelada no handler de webhook, e não pelo response body",
"remediationAccuracy": 4,
"comments": "Boa análise. Da próxima vez, considere sugerir AdjustResources antes de um restart.",
"providedBy": "sre-oncall",
"providedAt": "2026-03-19T09:00:00Z"
},
"generatedAt": "2026-03-18T22:45:00Z",
"reviewedAt": "2026-03-19T08:30:00Z",
"creationTimestamp": "2026-03-18T22:45:00Z"
},
"status": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"issueRef": "checkout-service-oom-kill-1773871200",
"resource": {
"kind": "Deployment",
"name": "checkout-service",
"namespace": "production"
},
"severity": "critical",
"state": "InReview",
"duration": "45m0s",
"feedback": {
"overrideRootCause": "Leak causado por uma goroutine não cancelada no handler de webhook, e não pelo response body",
"remediationAccuracy": 4,
"comments": "Boa análise. Da próxima vez, considere sugerir AdjustResources antes de um restart.",
"providedBy": "sre-oncall",
"providedAt": "2026-03-19T09:00:00Z"
},
"generatedAt": "2026-03-18T22:45:00Z",
"reviewedAt": "2026-03-19T08:30:00Z",
"creationTimestamp": "2026-03-18T22:45:00Z"
},
"resourceMeta": {
"name": "pm-checkout-service-oom-kill-1773871200",
"namespace": "production",
"uid": "3d9b8e61-2f4a-4b7c-8e15-6a0c9f2d7b43",
"creationTimestamp": "2026-03-18T22:45:00Z"
}
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "Bad Request",
"code": 400,
"message": "remediationAccuracy must be between 1 and 5"
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "Conflict",
"code": 409,
"message": "postmortem was modified concurrently, please retry"
}
Autorizações
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
PostMortem name.
"pm-payment-service-oom-1710860400"
Parâmetros de consulta
Namespace of the object. Defaults to default — pass it for objects in any other namespace.
Corpo
Identifier of the feedback author.
253"sre-oncall"
Score 1-5 for the AI remediation accuracy.
1 <= x <= 54
Human-provided root cause overriding the AI analysis.
4096Additional comments.
4096