curl --request GET \
--url {scheme}://{host}:{port}/{basePath}/incidents/{name}/timeline \
--header 'X-API-Key: <api-key>'import requests
url = "{scheme}://{host}:{port}/{basePath}/incidents/{name}/timeline"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('{scheme}://{host}:{port}/{basePath}/incidents/{name}/timeline', 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}/incidents/{name}/timeline",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "{scheme}://{host}:{port}/{basePath}/incidents/{name}/timeline"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("{scheme}://{host}:{port}/{basePath}/incidents/{name}/timeline")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("{scheme}://{host}:{port}/{basePath}/incidents/{name}/timeline")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "IncidentTimeline",
"metadata": {
"totalCount": 4,
"page": 1,
"pageSize": 4
},
"items": [
{
"timestamp": "2026-03-19T15:20:00Z",
"type": "detected",
"detail": "Auto-detected oom_kill anomaly: container restarted after OOMKill (value=5, threshold=3)"
},
{
"timestamp": "2026-03-19T15:24:10Z",
"type": "action_executed",
"detail": "AdjustResources: memory limit raised to 1Gi"
},
{
"timestamp": "2026-03-19T15:25:30Z",
"type": "action_executed",
"detail": "RestartDeployment: rollout restarted"
},
{
"timestamp": "2026-03-19T15:27:00Z",
"type": "resolved",
"detail": "All actions completed successfully. Resource healthy after verification."
}
]
}
Obter Timeline do Incidente
Retorna a timeline de eventos registrada no PostMortem do incidente
curl --request GET \
--url {scheme}://{host}:{port}/{basePath}/incidents/{name}/timeline \
--header 'X-API-Key: <api-key>'import requests
url = "{scheme}://{host}:{port}/{basePath}/incidents/{name}/timeline"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('{scheme}://{host}:{port}/{basePath}/incidents/{name}/timeline', 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}/incidents/{name}/timeline",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "{scheme}://{host}:{port}/{basePath}/incidents/{name}/timeline"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("{scheme}://{host}:{port}/{basePath}/incidents/{name}/timeline")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("{scheme}://{host}:{port}/{basePath}/incidents/{name}/timeline")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"apiVersion": "v1",
"kind": "IncidentTimeline",
"metadata": {
"totalCount": 4,
"page": 1,
"pageSize": 4
},
"items": [
{
"timestamp": "2026-03-19T15:20:00Z",
"type": "detected",
"detail": "Auto-detected oom_kill anomaly: container restarted after OOMKill (value=5, threshold=3)"
},
{
"timestamp": "2026-03-19T15:24:10Z",
"type": "action_executed",
"detail": "AdjustResources: memory limit raised to 1Gi"
},
{
"timestamp": "2026-03-19T15:25:30Z",
"type": "action_executed",
"detail": "RestartDeployment: rollout restarted"
},
{
"timestamp": "2026-03-19T15:27:00Z",
"type": "resolved",
"detail": "All actions completed successfully. Resource healthy after verification."
}
]
}
payment-service-oom-kill-1773933600)issueRef é este incidente (status.timeline). O PostMortem é gerado quando um RemediationPlan do incidente termina (resolvido ou contido), então um incidente ainda em análise ou remediação, escalado sem plano concluÃdo, ou resolvido manualmente ainda não tem timeline e retorna 404.
Os valores de type gravados pelo operator são detected, action_executed, action_failed e resolved; no modo agêntico cada passo vira um evento cujo detail inclui o raciocÃnio da IA. A lista não é paginada (page é sempre 1).
{
"apiVersion": "v1",
"kind": "IncidentTimeline",
"metadata": {
"totalCount": 4,
"page": 1,
"pageSize": 4
},
"items": [
{
"timestamp": "2026-03-19T15:20:00Z",
"type": "detected",
"detail": "Auto-detected oom_kill anomaly: container restarted after OOMKill (value=5, threshold=3)"
},
{
"timestamp": "2026-03-19T15:24:10Z",
"type": "action_executed",
"detail": "AdjustResources: memory limit raised to 1Gi"
},
{
"timestamp": "2026-03-19T15:25:30Z",
"type": "action_executed",
"detail": "RestartDeployment: rollout restarted"
},
{
"timestamp": "2026-03-19T15:27:00Z",
"type": "resolved",
"detail": "All actions completed successfully. Resource healthy after verification."
}
]
}
{
"apiVersion": "v1",
"kind": "Error",
"error": "Not Found",
"code": 404,
"message": "no timeline found for issue: payment-service-oom-kill-1773933600"
}
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
Issue name.
"payment-service-oom-1710860400"
Parâmetros de consulta
Kubernetes namespace. Empty means all namespaces.