Review Postmortem
curl --request POST \
--url http://{host}:{port}/{basePath}/postmortems/{name}/review \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"reviewer": "carlos.silva@empresa.com",
"notes": "Root cause confirmed. Adding additional action item for rate limiting."
}
'import requests
url = "http://{host}:{port}/{basePath}/postmortems/{name}/review"
payload = {
"reviewer": "carlos.silva@empresa.com",
"notes": "Root cause confirmed. Adding additional action item for rate limiting."
}
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({
reviewer: 'carlos.silva@empresa.com',
notes: 'Root cause confirmed. Adding additional action item for rate limiting.'
})
};
fetch('http://{host}:{port}/{basePath}/postmortems/{name}/review', 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}/review",
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([
'reviewer' => 'carlos.silva@empresa.com',
'notes' => 'Root cause confirmed. Adding additional action item for rate limiting.'
]),
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}/review"
payload := strings.NewReader("{\n \"reviewer\": \"carlos.silva@empresa.com\",\n \"notes\": \"Root cause confirmed. Adding additional action item for rate limiting.\"\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}/review")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reviewer\": \"carlos.silva@empresa.com\",\n \"notes\": \"Root cause confirmed. Adding additional action item for rate limiting.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/postmortems/{name}/review")
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 \"reviewer\": \"carlos.silva@empresa.com\",\n \"notes\": \"Root cause confirmed. Adding additional action item for rate limiting.\"\n}"
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "PostMortem",
"metadata": {
"name": "PM-20260319-001",
"namespace": "production"
},
"status": {
"state": "InReview",
"reviewer": "carlos.silva@empresa.com",
"reviewStartedAt": "2026-03-19T17:00:00Z",
"notes": "Root cause confirmed. Adding additional action item for rate limiting."
}
}
PostMortems
Revisar PostMortem
Move um postmortem para o estado InReview, indicando que um humano está revisando a análise gerada pela IA
POST
/
postmortems
/
{name}
/
review
Review Postmortem
curl --request POST \
--url http://{host}:{port}/{basePath}/postmortems/{name}/review \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"reviewer": "carlos.silva@empresa.com",
"notes": "Root cause confirmed. Adding additional action item for rate limiting."
}
'import requests
url = "http://{host}:{port}/{basePath}/postmortems/{name}/review"
payload = {
"reviewer": "carlos.silva@empresa.com",
"notes": "Root cause confirmed. Adding additional action item for rate limiting."
}
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({
reviewer: 'carlos.silva@empresa.com',
notes: 'Root cause confirmed. Adding additional action item for rate limiting.'
})
};
fetch('http://{host}:{port}/{basePath}/postmortems/{name}/review', 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}/review",
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([
'reviewer' => 'carlos.silva@empresa.com',
'notes' => 'Root cause confirmed. Adding additional action item for rate limiting.'
]),
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}/review"
payload := strings.NewReader("{\n \"reviewer\": \"carlos.silva@empresa.com\",\n \"notes\": \"Root cause confirmed. Adding additional action item for rate limiting.\"\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}/review")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"reviewer\": \"carlos.silva@empresa.com\",\n \"notes\": \"Root cause confirmed. Adding additional action item for rate limiting.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://{host}:{port}/{basePath}/postmortems/{name}/review")
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 \"reviewer\": \"carlos.silva@empresa.com\",\n \"notes\": \"Root cause confirmed. Adding additional action item for rate limiting.\"\n}"
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "PostMortem",
"metadata": {
"name": "PM-20260319-001",
"namespace": "production"
},
"status": {
"state": "InReview",
"reviewer": "carlos.silva@empresa.com",
"reviewStartedAt": "2026-03-19T17:00:00Z",
"notes": "Root cause confirmed. Adding additional action item for rate limiting."
}
}
string
obrigatório
Nome único do postmortem (ex.:
PM-20260319-001)string
padrão:"default"
Namespace Kubernetes
string
Identificador do revisor (ex.: email ou nome de usuário)
string
Notas de revisao ou correcoes ao postmortem gerado pela IA
Quando Usar
PostMortems são gerados automaticamente quando um incidente e resolvido. Este endpoint permite que a equipe:- Marque como em revisao — sinaliza para a equipe que alguem está revisando a análise da IA
- Adicione correcoes — sobrescreva ou complemente a causa raiz, linha do tempo ou itens de ação gerados pela IA
- Acompanhe o status da revisao — distinga entre postmortems não revisados (gerados automaticamente) e validados por humanos
{
"apiVersion": "v1",
"kind": "PostMortem",
"metadata": {
"name": "PM-20260319-001",
"namespace": "production"
},
"status": {
"state": "InReview",
"reviewer": "carlos.silva@empresa.com",
"reviewStartedAt": "2026-03-19T17:00:00Z",
"notes": "Root cause confirmed. Adding additional action item for rate limiting."
}
}
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
⌘I