Pular para o conteúdo principal
GET
/
api
/
v1
/
remediations
Listar Remediações
curl --request GET \
  --url https://api.example.com/api/v1/remediations
{
  "apiVersion": "v1",
  "kind": "RemediationPlanList",
  "metadata": {
    "totalCount": 3,
    "page": 1,
    "pageSize": 20
  },
  "items": [
    {
      "name": "remediation-inc-20260319-001-1",
      "namespace": "production",
      "issueRef": "INC-20260319-001",
      "attempt": 1,
      "strategy": "Runbook: oomkill-standard (Tier 1 match: oom_kill + critical + Deployment)",
      "state": "Completed",
      "startedAt": "2026-03-19T14:35:00Z",
      "completedAt": "2026-03-19T14:38:00Z",
      "result": "All actions completed successfully. Resource healthy after verification.",
      "agenticMode": false,
      "agenticStepCount": 0,
      "actions": [
        {"type": "AdjustResources", "params": {"memoryLimit": "1Gi"}},
        {"type": "RestartDeployment", "params": {"deployment": "payment-service"}}
      ],
      "creationTimestamp": "2026-03-19T14:34:00Z"
    },
    {
      "name": "remediation-inc-20260319-002-1",
      "namespace": "production",
      "issueRef": "INC-20260319-002",
      "attempt": 1,
      "strategy": "Agentic mode: no matching runbook found",
      "state": "Executing",
      "startedAt": "2026-03-19T15:10:00Z",
      "result": "",
      "agenticMode": true,
      "agenticStepCount": 3,
      "actions": [],
      "creationTimestamp": "2026-03-19T15:09:00Z"
    }
  ]
}
namespace
string
Filtrar por namespace Kubernetes
state
string
Filtrar por estado: Pending, Executing, Verifying, Completed, Failed, RolledBack
issue
string
Filtrar por nome do incidente (ex.: INC-20260319-001)
page
integer
padrão:"1"
Número da pagina para paginacao
pageSize
integer
padrão:"20"
Itens por pagina (maximo 100)

Modos de Remediação

Cada plano opera em um dos dois modos:
  • Modo Runbook (agenticMode: false): Executa uma sequencia pre-definida de ações a partir de um runbook correspondente
  • Modo Agentico (agenticMode: true): Remediação passo a passo orientada por IA, onde o LLM propoe ações, observa resultados e decide os próximos passos
{
  "apiVersion": "v1",
  "kind": "RemediationPlanList",
  "metadata": {
    "totalCount": 3,
    "page": 1,
    "pageSize": 20
  },
  "items": [
    {
      "name": "remediation-inc-20260319-001-1",
      "namespace": "production",
      "issueRef": "INC-20260319-001",
      "attempt": 1,
      "strategy": "Runbook: oomkill-standard (Tier 1 match: oom_kill + critical + Deployment)",
      "state": "Completed",
      "startedAt": "2026-03-19T14:35:00Z",
      "completedAt": "2026-03-19T14:38:00Z",
      "result": "All actions completed successfully. Resource healthy after verification.",
      "agenticMode": false,
      "agenticStepCount": 0,
      "actions": [
        {"type": "AdjustResources", "params": {"memoryLimit": "1Gi"}},
        {"type": "RestartDeployment", "params": {"deployment": "payment-service"}}
      ],
      "creationTimestamp": "2026-03-19T14:34:00Z"
    },
    {
      "name": "remediation-inc-20260319-002-1",
      "namespace": "production",
      "issueRef": "INC-20260319-002",
      "attempt": 1,
      "strategy": "Agentic mode: no matching runbook found",
      "state": "Executing",
      "startedAt": "2026-03-19T15:10:00Z",
      "result": "",
      "agenticMode": true,
      "agenticStepCount": 3,
      "actions": [],
      "creationTimestamp": "2026-03-19T15:09:00Z"
    }
  ]
}