{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/datadog/refs/heads/main/json-structure/datadog-incidents-incident-structure.json",
  "name": "Incident",
  "description": "A Datadog incident record representing an outage or service disruption",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique string identifier of the incident",
      "example": "abc-123-def"
    },
    "type": {
      "type": "string",
      "description": "The resource type identifier (always 'incidents')",
      "example": "metric alert"
    },
    "attributes": {
      "$ref": "#/components/schemas/IncidentAttributes"
    },
    "relationships": {
      "type": "object",
      "description": "Relationships to associated resources such as commander, teams, and services",
      "properties": {
        "commander": {
          "type": "object",
          "description": "The incident commander responsible for coordinating the response",
          "properties": {
            "data": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The unique ID of the commander user"
                },
                "type": {
                  "type": "string",
                  "description": "The resource type (users)"
                }
              }
            }
          }
        }
      }
    }
  }
}