Pular para o conteúdo principal
GET
/
api
/
v1
/
incidents
Listar Incidentes
curl --request GET \
  --url https://api.example.com/api/v1/incidents
{
  "apiVersion": "v1",
  "kind": "IncidentList",
  "metadata": {
    "totalCount": 42,
    "page": 1,
    "pageSize": 20
  },
  "items": [
    {
      "name": "INC-20260319-001",
      "namespace": "production",
      "severity": "high",
      "state": "Analyzing",
      "resource": "Deployment/payment-service",
      "description": "OOMKill detected — container reiniciado 5 vezes nos ultimos 10 minutos",
      "riskScore": 65,
      "detectedAt": "2026-03-19T15:20:00Z",
      "age": "5m",
      "assignedTo": "sre-team",
      "labels": {
        "app": "payment-service",
        "team": "platform"
      }
    },
    {
      "name": "INC-20260319-002",
      "namespace": "staging",
      "severity": "medium",
      "state": "Resolved",
      "resource": "Deployment/api-gateway",
      "description": "Alta latencia no endpoint /health",
      "riskScore": 30,
      "detectedAt": "2026-03-19T14:10:00Z",
      "resolvedAt": "2026-03-19T14:35:00Z",
      "age": "25m",
      "labels": {
        "app": "api-gateway",
        "team": "backend"
      }
    }
  ]
}
severity
string
Filtrar por severidade: critical, high, medium, low
state
string
Filtrar por estado: Detected, Analyzing, Remediating, Resolved, Escalated, Failed
namespace
string
Filtrar por namespace Kubernetes
resource
string
Filtrar por recurso (ex: Deployment/payment-service)
since
string
Filtrar incidentes a partir de uma data ISO 8601 (ex: 2026-03-19T00:00:00Z)
page
integer
padrão:"1"
Número da pagina
pageSize
integer
padrão:"20"
Itens por pagina (maximo 100)
{
  "apiVersion": "v1",
  "kind": "IncidentList",
  "metadata": {
    "totalCount": 42,
    "page": 1,
    "pageSize": 20
  },
  "items": [
    {
      "name": "INC-20260319-001",
      "namespace": "production",
      "severity": "high",
      "state": "Analyzing",
      "resource": "Deployment/payment-service",
      "description": "OOMKill detected — container reiniciado 5 vezes nos ultimos 10 minutos",
      "riskScore": 65,
      "detectedAt": "2026-03-19T15:20:00Z",
      "age": "5m",
      "assignedTo": "sre-team",
      "labels": {
        "app": "payment-service",
        "team": "platform"
      }
    },
    {
      "name": "INC-20260319-002",
      "namespace": "staging",
      "severity": "medium",
      "state": "Resolved",
      "resource": "Deployment/api-gateway",
      "description": "Alta latencia no endpoint /health",
      "riskScore": 30,
      "detectedAt": "2026-03-19T14:10:00Z",
      "resolvedAt": "2026-03-19T14:35:00Z",
      "age": "25m",
      "labels": {
        "app": "api-gateway",
        "team": "backend"
      }
    }
  ]
}