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"
}
}
]
}
Retorna lista de incidentes com filtros opcionais e paginacao
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"
}
}
]
}
critical, high, medium, lowDetected, Analyzing, Remediating, Resolved, Escalated, FailedDeployment/payment-service)2026-03-19T00:00:00Z){
"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"
}
}
]
}