Pular para o conteúdo principal
GET
/
incidents
List Incidents
curl --request GET \
  --url http://{host}:{port}/{basePath}/incidents \
  --header 'Authorization: <api-key>'
{
  "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 últimos 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 latência 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 página
pageSize
integer
padrão:"20"
Itens por página (máximo 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 últimos 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 latência 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"
      }
    }
  ]
}

Autorizações

Authorization
string
header
obrigatório

Bearer token issued by the operator. Format: Authorization: Bearer <token>.

Parâmetros de consulta

severity
enum<string>

Filter by severity: critical, high, medium, low.

Opções disponíveis:
critical,
high,
medium,
low
state
enum<string>

Filter by state: Detected, Analyzing, Remediating, Resolved, Escalated, Failed.

Opções disponíveis:
Detected,
Analyzing,
Remediating,
Resolved,
Escalated,
Failed
namespace
string

Filter by Kubernetes namespace.

resource
string

Filter by resource (e.g. Deployment/payment-service).

since
string<date-time>

ISO 8601 timestamp — only return incidents detected at or after this time.

Exemplo:

"2026-03-19T00:00:00Z"

page
integer
padrão:1

Page number.

pageSize
integer
padrão:20

Items per page (max 100).

Intervalo obrigatório: x <= 100

Resposta

Paginated list of incidents

apiVersion
string
Exemplo:

"v1"

kind
string
Exemplo:

"IncidentList"

metadata
object
items
object[]