curl --request GET \
--url {scheme}://{host}:{port}/{basePath}/analytics/summary \
--header 'X-API-Key: <api-key>'import requests
url = "{scheme}://{host}:{port}/{basePath}/analytics/summary"
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}/analytics/summary', 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}/analytics/summary",
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}/analytics/summary"
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}/analytics/summary")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("{scheme}://{host}:{port}/{basePath}/analytics/summary")
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": "AnalyticsSummary",
"spec": {
"totalIssues": 42,
"openIssues": 6,
"resolvedIssues": 36,
"containedIssues": 1,
"criticalIssues": 3,
"chaosInducedIssues": 2,
"totalRemediations": 30,
"successfulRemediations": 26,
"failedRemediations": 3,
"remediatedIssues": 28,
"resolvedByRemediation": 25,
"totalPostMortems": 34,
"postMortemsRequiringHumanAction": 1,
"totalRunbooks": 12,
"totalSLOs": 8,
"slosAtRisk": 0,
"pendingApprovals": 2,
"avgRiskScore": 47.5,
"severityBreakdown": {
"critical": 3,
"high": 12,
"medium": 18,
"low": 9
}
}
}
Resumo de Analytics
Retorna um resumo consolidado das métricas operacionais da plataforma
curl --request GET \
--url {scheme}://{host}:{port}/{basePath}/analytics/summary \
--header 'X-API-Key: <api-key>'import requests
url = "{scheme}://{host}:{port}/{basePath}/analytics/summary"
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}/analytics/summary', 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}/analytics/summary",
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}/analytics/summary"
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}/analytics/summary")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("{scheme}://{host}:{port}/{basePath}/analytics/summary")
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": "AnalyticsSummary",
"spec": {
"totalIssues": 42,
"openIssues": 6,
"resolvedIssues": 36,
"containedIssues": 1,
"criticalIssues": 3,
"chaosInducedIssues": 2,
"totalRemediations": 30,
"successfulRemediations": 26,
"failedRemediations": 3,
"remediatedIssues": 28,
"resolvedByRemediation": 25,
"totalPostMortems": 34,
"postMortemsRequiringHumanAction": 1,
"totalRunbooks": 12,
"totalSLOs": 8,
"slosAtRisk": 0,
"pendingApprovals": 2,
"avgRiskScore": 47.5,
"severityBreakdown": {
"critical": 3,
"high": 12,
"medium": 18,
"low": 9
}
}
}
2026-03-01T00:00:00Z). Um valor inválido é ignorado.viewer. Sem from/to, todos os recursos do cluster são contados. Não existem filtros period, namespace ou cluster: o resumo sempre cobre todos os namespaces do cluster onde o operator roda.
A que a janela se aplica:
- Issues, RemediationPlans e PostMortems são filtrados por
creationTimestamp. totalRunbooks,totalSLOs,slosAtRiskependingApprovalsnão são filtrados por tempo (totais atuais).
openIssuesconta todo Issue que não estáResolved(incluindoContained,EscalatedeFailed);containedIssuestambém entra emopenIssues.successfulRemediationssão planos no estadoCompleted;failedRemediationssãoFailedouRolledBack.remediatedIssuesé o número de Issues distintos com pelo menos um plano na janela, eresolvedByRemediationquantos deles terminaramResolved.chaosInducedIssuesconta Issues com a labelplatform.chatcli.io/source: chaos-experiment.pendingApprovalsconta ApprovalRequests com estadoPendingou vazio.slosAtRiskconta os SLOs cujo estado éAtRiskouBreached, derivado do status do SLO como em Listar SLOs.
{
"apiVersion": "v1",
"kind": "AnalyticsSummary",
"spec": {
"totalIssues": 42,
"openIssues": 6,
"resolvedIssues": 36,
"containedIssues": 1,
"criticalIssues": 3,
"chaosInducedIssues": 2,
"totalRemediations": 30,
"successfulRemediations": 26,
"failedRemediations": 3,
"remediatedIssues": 28,
"resolvedByRemediation": 25,
"totalPostMortems": 34,
"postMortemsRequiringHumanAction": 1,
"totalRunbooks": 12,
"totalSLOs": 8,
"slosAtRisk": 0,
"pendingApprovals": 2,
"avgRiskScore": 47.5,
"severityBreakdown": {
"critical": 3,
"high": 12,
"medium": 18,
"low": 9
}
}
}
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 consulta
Start of the time range (RFC3339). Unparseable values are ignored.
"2026-03-01T00:00:00Z"
End of the time range (RFC3339). Unparseable values are ignored.
"2026-03-19T23:59:59Z"