{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-xray/json-schema/amazon-xray-get-insight-result-schema.json",
  "title": "GetInsightResult",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-xray-insight-api-openapi.yml#/components/schemas/GetInsightResult",
  "type": "object",
  "properties": {
    "Insight": {
      "$ref": "#/$defs/Insight"
    }
  },
  "$defs": {
    "AnomalousService": {
      "type": "object",
      "properties": {
        "ServiceId": {
          "$ref": "#/$defs/ServiceId"
        }
      }
    },
    "Insight": {
      "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": "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."
        }
      }
    },
    "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"
        }
      }
    }
  }
}