curl --request GET \
--url https://api.example.com/api/v1/incidents/{name}{
"apiVersion": "v1",
"kind": "Incident",
"metadata": {
"name": "INC-20260319-001",
"namespace": "production",
"createdAt": "2026-03-19T15:20:00Z",
"labels": {
"app": "payment-service",
"team": "platform",
"severity": "high"
}
},
"spec": {
"resource": "Deployment/payment-service",
"severity": "high",
"description": "OOMKill detected — container reiniciado 5 vezes nos ultimos 10 minutos",
"detectionSource": "k8s-watcher",
"correlationId": "corr-abc123",
"runbook": "runbook-oomkill-standard",
"escalationPolicy": "pagerduty-critical"
},
"status": {
"state": "Analyzing",
"riskScore": 65,
"analysisResult": {
"rootCause": "Memory limit de 512Mi insuficiente para carga atual",
"recommendation": "Aumentar memory limit para 1Gi",
"confidence": 0.87,
"relatedEvents": [
"Pod payment-service-7d4b8c9f6-x2k4m OOMKilled",
"HPA unable to scale — max replicas reached"
]
},
"acknowledged": false,
"assignedTo": "sre-team",
"detectedAt": "2026-03-19T15:20:00Z",
"lastUpdated": "2026-03-19T15:25:00Z",
"timelineCount": 8
}
}
Retorna os detalhes completos de um incidente especifico
curl --request GET \
--url https://api.example.com/api/v1/incidents/{name}{
"apiVersion": "v1",
"kind": "Incident",
"metadata": {
"name": "INC-20260319-001",
"namespace": "production",
"createdAt": "2026-03-19T15:20:00Z",
"labels": {
"app": "payment-service",
"team": "platform",
"severity": "high"
}
},
"spec": {
"resource": "Deployment/payment-service",
"severity": "high",
"description": "OOMKill detected — container reiniciado 5 vezes nos ultimos 10 minutos",
"detectionSource": "k8s-watcher",
"correlationId": "corr-abc123",
"runbook": "runbook-oomkill-standard",
"escalationPolicy": "pagerduty-critical"
},
"status": {
"state": "Analyzing",
"riskScore": 65,
"analysisResult": {
"rootCause": "Memory limit de 512Mi insuficiente para carga atual",
"recommendation": "Aumentar memory limit para 1Gi",
"confidence": 0.87,
"relatedEvents": [
"Pod payment-service-7d4b8c9f6-x2k4m OOMKilled",
"HPA unable to scale — max replicas reached"
]
},
"acknowledged": false,
"assignedTo": "sre-team",
"detectedAt": "2026-03-19T15:20:00Z",
"lastUpdated": "2026-03-19T15:25:00Z",
"timelineCount": 8
}
}
INC-20260319-001){
"apiVersion": "v1",
"kind": "Incident",
"metadata": {
"name": "INC-20260319-001",
"namespace": "production",
"createdAt": "2026-03-19T15:20:00Z",
"labels": {
"app": "payment-service",
"team": "platform",
"severity": "high"
}
},
"spec": {
"resource": "Deployment/payment-service",
"severity": "high",
"description": "OOMKill detected — container reiniciado 5 vezes nos ultimos 10 minutos",
"detectionSource": "k8s-watcher",
"correlationId": "corr-abc123",
"runbook": "runbook-oomkill-standard",
"escalationPolicy": "pagerduty-critical"
},
"status": {
"state": "Analyzing",
"riskScore": 65,
"analysisResult": {
"rootCause": "Memory limit de 512Mi insuficiente para carga atual",
"recommendation": "Aumentar memory limit para 1Gi",
"confidence": 0.87,
"relatedEvents": [
"Pod payment-service-7d4b8c9f6-x2k4m OOMKilled",
"HPA unable to scale — max replicas reached"
]
},
"acknowledged": false,
"assignedTo": "sre-team",
"detectedAt": "2026-03-19T15:20:00Z",
"lastUpdated": "2026-03-19T15:25:00Z",
"timelineCount": 8
}
}
{
"apiVersion": "v1",
"kind": "Error",
"error": {
"code": 404,
"message": "Incidente não encontrado",
"details": "O incidente 'INC-20260319-999' não existe"
}
}