Pular para o conteúdo principal
GET
/
api
/
v1
/
incidents
/
{name}
/
timeline
Obter Timeline do Incidente
curl --request GET \
  --url https://api.example.com/api/v1/incidents/{name}/timeline
{
  "apiVersion": "v1",
  "kind": "IncidentTimeline",
  "metadata": {
    "name": "INC-20260319-001",
    "namespace": "production",
    "eventCount": 6
  },
  "events": [
    {
      "timestamp": "2026-03-19T15:20:00Z",
      "type": "Detection",
      "source": "k8s-watcher",
      "message": "OOMKill detectado no pod payment-service-7d4b8c9f6-x2k4m",
      "severity": "high"
    },
    {
      "timestamp": "2026-03-19T15:20:05Z",
      "type": "Analysis",
      "source": "decision-engine",
      "message": "Iniciando análise de root cause com IA",
      "details": {
        "model": "claude-sonnet-4-20250514",
        "contextSize": 4200
      }
    },
    {
      "timestamp": "2026-03-19T15:20:30Z",
      "type": "Analysis",
      "source": "decision-engine",
      "message": "Root cause identificado: memory limit insuficiente (512Mi) para carga atual",
      "details": {
        "confidence": 0.87,
        "recommendation": "Aumentar memory limit para 1Gi"
      }
    },
    {
      "timestamp": "2026-03-19T15:21:00Z",
      "type": "RunbookMatch",
      "source": "runbook-engine",
      "message": "Runbook 'oomkill-standard' selecionado para remediação",
      "details": {
        "runbook": "runbook-oomkill-standard",
        "matchScore": 0.92
      }
    },
    {
      "timestamp": "2026-03-19T15:21:05Z",
      "type": "ApprovalRequired",
      "source": "approval-workflow",
      "message": "Aguardando aprovação para executar remediação (riskScore: 65)",
      "details": {
        "approvalName": "APR-20260319-001",
        "requiredRole": "operator"
      }
    },
    {
      "timestamp": "2026-03-19T15:25:00Z",
      "type": "Notification",
      "source": "notification-manager",
      "message": "Alerta enviado via Slack para canal #sre-alerts",
      "details": {
        "channel": "slack",
        "target": "#sre-alerts"
      }
    }
  ]
}
name
string
obrigatório
Nome único do incidente (ex: INC-20260319-001)
{
  "apiVersion": "v1",
  "kind": "IncidentTimeline",
  "metadata": {
    "name": "INC-20260319-001",
    "namespace": "production",
    "eventCount": 6
  },
  "events": [
    {
      "timestamp": "2026-03-19T15:20:00Z",
      "type": "Detection",
      "source": "k8s-watcher",
      "message": "OOMKill detectado no pod payment-service-7d4b8c9f6-x2k4m",
      "severity": "high"
    },
    {
      "timestamp": "2026-03-19T15:20:05Z",
      "type": "Analysis",
      "source": "decision-engine",
      "message": "Iniciando análise de root cause com IA",
      "details": {
        "model": "claude-sonnet-4-20250514",
        "contextSize": 4200
      }
    },
    {
      "timestamp": "2026-03-19T15:20:30Z",
      "type": "Analysis",
      "source": "decision-engine",
      "message": "Root cause identificado: memory limit insuficiente (512Mi) para carga atual",
      "details": {
        "confidence": 0.87,
        "recommendation": "Aumentar memory limit para 1Gi"
      }
    },
    {
      "timestamp": "2026-03-19T15:21:00Z",
      "type": "RunbookMatch",
      "source": "runbook-engine",
      "message": "Runbook 'oomkill-standard' selecionado para remediação",
      "details": {
        "runbook": "runbook-oomkill-standard",
        "matchScore": 0.92
      }
    },
    {
      "timestamp": "2026-03-19T15:21:05Z",
      "type": "ApprovalRequired",
      "source": "approval-workflow",
      "message": "Aguardando aprovação para executar remediação (riskScore: 65)",
      "details": {
        "approvalName": "APR-20260319-001",
        "requiredRole": "operator"
      }
    },
    {
      "timestamp": "2026-03-19T15:25:00Z",
      "type": "Notification",
      "source": "notification-manager",
      "message": "Alerta enviado via Slack para canal #sre-alerts",
      "details": {
        "channel": "slack",
        "target": "#sre-alerts"
      }
    }
  ]
}