{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-xray/json-schema/amazon-xray-get-insight-summaries-result-schema.json",
  "title": "GetInsightSummariesResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-xray-insightsummaries-api-openapi.yml#/components/schemas/GetInsightSummariesResult",
  "type": "object",
  "properties": {
    "InsightSummaries": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InsightSummary"
      },
      "description": "The summary of each insight within the group matching the provided filters. The summary contains the InsightID, start and end time, the root cause service, the root cause and client impact statistics, the top anomalous services, and the status of the insight."
    },
    "NextToken": {
      "type": "string",
      "description": "Pagination token."
    }
  },
  "$defs": {
    "AnomalousService": {
      "type": "object",
      "properties": {
        "ServiceId": {
          "$ref": "#/$defs/ServiceId"
        }
      }
    },
    "InsightSummary": {
      "type": "object",
      "properties": {
        "InsightId": {
          "type": "string",
          "description": "The insights unique identifier."
        },
        "GroupARN": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the group that the insight belongs to."
        },
        "GroupName": {
          "type": "string",
          "description": "The name of the group that the insight belongs to."
        },
        "RootCauseServiceId": {
          "$ref": "#/$defs/ServiceId"
        },
        "Categories": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "FAULT"
            ]
          },
          "description": "Categories The categories that label and describe the type of insight."
        },
        "State": {
          "type": "string",
          "enum": [
            "ACTIVE",
            "CLOSED"
          ],
          "description": "The current state of the insight."
        },
        "StartTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time, in Unix seconds, at which the insight began."
        },
        "EndTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time, in Unix seconds, at which the insight ended."
        },
        "Summary": {
          "type": "string",
          "description": "A brief description of the insight."
        },
        "ClientRequestImpactStatistics": {
          "$ref": "#/$defs/RequestImpactStatistics"
        },
        "RootCauseServiceRequestImpactStatistics": {
          "$ref": "#/$defs/RequestImpactStatistics"
        },
        "TopAnomalousServices": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/AnomalousService"
          },
          "description": "The service within the insight that is most impacted by the incident."
        },
        "LastUpdateTime": {
          "type": "string",
          "format": "date-time",
          "description": "The time, in Unix seconds, that the insight was last updated."
        }
      }
    },
    "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"
        }
      }
    }
  }
}