{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-incident-manager/refs/heads/main/json-schema/incident-manager-trigger-details-schema.json",
  "title": "TriggerDetails",
  "description": "Details about what caused the incident to be created in Incident Manager.",
  "type": "object",
  "properties": {
    "rawData": {
      "allOf": [
        {
          "$ref": "#/components/schemas/RawData"
        },
        {
          "description": "Raw data passed from either Amazon EventBridge, Amazon CloudWatch, or Incident Manager when an incident is created."
        }
      ]
    },
    "source": {
      "allOf": [
        {
          "$ref": "#/components/schemas/IncidentSource"
        },
        {
          "description": "Identifies the service that sourced the event. All events sourced from within Amazon Web Services begin with \"<code>aws.</code>\" Customer-generated events can have any value here, as long as it doesn't begin with \"<code>aws.</code>\" We recommend the use of Java package-name style reverse domain-name strings. "
        }
      ]
    },
    "timestamp": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Timestamp"
        },
        {
          "description": "The time that the incident was detected."
        }
      ]
    },
    "triggerArn": {
      "allOf": [
        {
          "$ref": "#/components/schemas/Arn"
        },
        {
          "description": "The Amazon Resource Name (ARN) of the source that detected the incident."
        }
      ]
    }
  },
  "required": [
    "source",
    "timestamp"
  ]
}