{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-xray/json-schema/amazon-xray-get-insight-events-result-schema.json",
  "title": "GetInsightEventsResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-xray-insightevents-api-openapi.yml#/components/schemas/GetInsightEventsResult",
  "type": "object",
  "properties": {
    "InsightEvents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InsightEvent"
      },
      "description": "A detailed description of the event. This includes the time of the event, client and root cause impact statistics, and the top anomalous service at the time of the event."
    },
    "NextToken": {
      "type": "string",
      "description": "Use this token to retrieve the next page of insight events."
    }
  },
  "$defs": {
    "AnomalousService": {
      "type": "object",
      "properties": {
        "ServiceId": {
          "$ref": "#/$defs/ServiceId"
        }
      }
    },
    "InsightEvent": {
      "type": "object",
      "properties": {
        "Summary": {
          "type": "string",
          "description": "A brief description of the event."
        },
        "EventTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time, in Unix seconds, at which the event was recorded."
        },
        "ClientRequestImpactStatistics": {
          "$ref": "#/$defs/RequestImpactStatistics"
        },
        "RootCauseServiceRequestImpactStatistics": {
          "$ref": "#/$defs/RequestImpactStatistics"
        },
        "TopAnomalousServices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnomalousService"
          },
          "description": "The service during the event that is most impacted by the incident."
        }
      }
    },
    "RequestImpactStatistics": {
      "type": "object",
      "properties": {
        "FaultCount": {
          "type": "integer",
          "description": "The number of requests that have resulted in a fault,"
        },
        "OkCount": {
          "type": "integer",
          "description": "The number of successful requests."
        },
        "TotalCount": {
          "type": "integer",
          "description": "The total number of requests to the service."
        }
      }
    },
    "ServiceId": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string"
        },
        "Names": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "AccountId": {
          "type": "string"
        },
        "Type": {
          "type": "string"
        }
      }
    }
  }
}