Postmortem Feedback
curl --request POST \
--url http://{host}:{port}/{basePath}/postmortems/{name}/feedback \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"providedBy": "sre@empresa.com",
"remediationAccuracy": 4,
"overrideRootCause": "Leak caused by uncancelled goroutine in webhook handler, not the response body.",
"comments": "Good analysis. Suggest AdjustResources before restart next time."
}
'import requests
url = "http://{host}:{port}/{basePath}/postmortems/{name}/feedback"
payload = {
"providedBy": "sre@empresa.com",
"remediationAccuracy": 4,
"overrideRootCause": "Leak caused by uncancelled goroutine in webhook handler, not the response body.",
"comments": "Good analysis. Suggest AdjustResources before restart next time."
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
providedBy: 'sre@empresa.com',
remediationAccuracy: 4,
overrideRootCause: 'Leak caused by uncancelled goroutine in webhook handler, not the response body.',
comments: 'Good analysis. Suggest AdjustResources before restart next time.'
})
};
fetch('http://{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 => "http://{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@empresa.com',
'remediationAccuracy' => 4,
'overrideRootCause' => 'Leak caused by uncancelled goroutine in webhook handler, not the response body.',
'comments' => 'Good analysis. Suggest AdjustResources before restart next time.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$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 := "http://{host}:{port}/{basePath}/postmortems/{name}/feedback"
payload := strings.NewReader("{\n \"providedBy\": \"sre@empresa.com\",\n \"remediationAccuracy\": 4,\n \"overrideRootCause\": \"Leak caused by uncancelled goroutine in webhook handler, not the response body.\",\n \"comments\": \"Good analysis. Suggest AdjustResources before restart next time.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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("http://{host}:{port}/{basePath}/postmortems/{name}/feedback")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"providedBy\": \"sre@empresa.com\",\n \"remediationAccuracy\": 4,\n \"overrideRootCause\": \"Leak caused by uncancelled goroutine in webhook handler, not the response body.\",\n \"comments\": \"Good analysis. Suggest AdjustResources before restart next time.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/postmortems/{name}/feedback")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"providedBy\": \"sre@empresa.com\",\n \"remediationAccuracy\": 4,\n \"overrideRootCause\": \"Leak caused by uncancelled goroutine in webhook handler, not the response body.\",\n \"comments\": \"Good analysis. Suggest AdjustResources before restart next time.\"\n}"
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "PostMortem",
"resourceMeta": {
"name": "PM-20260319-001",
"namespace": "production"
},
"status": {
"state": "InReview",
"feedback": {
"overrideRootCause": "Leak causado por goroutine não cancelada no webhook handler, não pelo response body",
"remediationAccuracy": 4,
"comments": "Boa análise. Sugerir AdjustResources antes de restart na proxima vez.",
"providedBy": "sre@empresa.com",
"providedAt": "2026-03-19T09:00:00Z"
}
}
}
PostMortems
Feedback do Desenvolvedor
Submete feedback humano sobre um postmortem — permite ao desenvolvedor avaliar a precisao da remediação, sobrescrever a root cause e adicionar comentarios
POST
/
postmortems
/
{name}
/
feedback
Postmortem Feedback
curl --request POST \
--url http://{host}:{port}/{basePath}/postmortems/{name}/feedback \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"providedBy": "sre@empresa.com",
"remediationAccuracy": 4,
"overrideRootCause": "Leak caused by uncancelled goroutine in webhook handler, not the response body.",
"comments": "Good analysis. Suggest AdjustResources before restart next time."
}
'import requests
url = "http://{host}:{port}/{basePath}/postmortems/{name}/feedback"
payload = {
"providedBy": "sre@empresa.com",
"remediationAccuracy": 4,
"overrideRootCause": "Leak caused by uncancelled goroutine in webhook handler, not the response body.",
"comments": "Good analysis. Suggest AdjustResources before restart next time."
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
providedBy: 'sre@empresa.com',
remediationAccuracy: 4,
overrideRootCause: 'Leak caused by uncancelled goroutine in webhook handler, not the response body.',
comments: 'Good analysis. Suggest AdjustResources before restart next time.'
})
};
fetch('http://{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 => "http://{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@empresa.com',
'remediationAccuracy' => 4,
'overrideRootCause' => 'Leak caused by uncancelled goroutine in webhook handler, not the response body.',
'comments' => 'Good analysis. Suggest AdjustResources before restart next time.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$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 := "http://{host}:{port}/{basePath}/postmortems/{name}/feedback"
payload := strings.NewReader("{\n \"providedBy\": \"sre@empresa.com\",\n \"remediationAccuracy\": 4,\n \"overrideRootCause\": \"Leak caused by uncancelled goroutine in webhook handler, not the response body.\",\n \"comments\": \"Good analysis. Suggest AdjustResources before restart next time.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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("http://{host}:{port}/{basePath}/postmortems/{name}/feedback")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"providedBy\": \"sre@empresa.com\",\n \"remediationAccuracy\": 4,\n \"overrideRootCause\": \"Leak caused by uncancelled goroutine in webhook handler, not the response body.\",\n \"comments\": \"Good analysis. Suggest AdjustResources before restart next time.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/postmortems/{name}/feedback")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"providedBy\": \"sre@empresa.com\",\n \"remediationAccuracy\": 4,\n \"overrideRootCause\": \"Leak caused by uncancelled goroutine in webhook handler, not the response body.\",\n \"comments\": \"Good analysis. Suggest AdjustResources before restart next time.\"\n}"
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "PostMortem",
"resourceMeta": {
"name": "PM-20260319-001",
"namespace": "production"
},
"status": {
"state": "InReview",
"feedback": {
"overrideRootCause": "Leak causado por goroutine não cancelada no webhook handler, não pelo response body",
"remediationAccuracy": 4,
"comments": "Boa análise. Sugerir AdjustResources antes de restart na proxima vez.",
"providedBy": "sre@empresa.com",
"providedAt": "2026-03-19T09:00:00Z"
}
}
}
string
obrigatório
Nome único do postmortem (ex.:
PM-20260319-001)string
padrão:"default"
Namespace Kubernetes
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 precisao da remediação automática da IA
- 1 — Completamente errada, não resolveu nada
- 2 — Parcialmente correta, mas com problemas significativos
- 3 — Razoavel, resolveu mas com ajustes manuais
- 4 — Boa, resolveu com observações menores
- 5 — Excelente, remediação perfeita
string
Causa raiz fornecida pelo humano (sobrescreve a análise da IA). Deixe vazio para manter a root cause original. Máximo 4096 caracteres.
string
Comentarios adicionais sobre o postmortem ou a remediação. Máximo 4096 caracteres.
Quando Usar
Após revisar um postmortem na Dashboard, o desenvolvedor pode fornecer feedback estruturado:- Avaliar a remediação — classificar de 1 a 5 a precisao da ação automatica
- Corrigir root cause — sobrescrever a causa raiz se a IA errou ou foi imprecisa
- Adicionar contexto — comentarios com informações que a IA não tinha acesso
Requer role
operator ou superior. O campo providedBy e obrigatório para rastreabilidade.
Submeter feedback novamente sobrescreve o feedback anterior. Em caso de conflito concorrente, a API retorna 409 Conflict.{
"apiVersion": "v1",
"kind": "PostMortem",
"resourceMeta": {
"name": "PM-20260319-001",
"namespace": "production"
},
"status": {
"state": "InReview",
"feedback": {
"overrideRootCause": "Leak causado por goroutine não cancelada no webhook handler, não pelo response body",
"remediationAccuracy": 4,
"comments": "Boa análise. Sugerir AdjustResources antes de restart na proxima vez.",
"providedBy": "sre@empresa.com",
"providedAt": "2026-03-19T09:00:00Z"
}
}
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "remediationAccuracy must be between 1 and 5",
"code": 400
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "postmortem was modified concurrently, please retry",
"code": 409
}
Autorizações
Bearer token issued by the operator. Format: Authorization: Bearer <token>.
Parâmetros de caminho
Unique postmortem name.
Exemplo:
"PM-20260319-001"
Parâmetros de consulta
Kubernetes namespace.
Corpo
application/json
Identifier of the feedback author. Max 253 chars.
Maximum string length:
253Exemplo:
"sre@empresa.com"
Score 1-5 for AI remediation accuracy.
Intervalo obrigatório:
1 <= x <= 5Exemplo:
4
Human-provided root cause overriding AI analysis. Max 4096 chars.
Maximum string length:
4096Additional comments. Max 4096 chars.
Maximum string length:
4096⌘I