{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-devops-guru/json-schema/amazon-devops-guru-list-anomalous-log-groups-response-schema.json",
  "title": "ListAnomalousLogGroupsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-devops-guru-list-log-anomalies-api-openapi.yml#/components/schemas/ListAnomalousLogGroupsResponse",
  "type": "object",
  "required": [
    "InsightId",
    "AnomalousLogGroups"
  ],
  "properties": {
    "InsightId": {
      "allOf": [
        {
          "$ref": "#/$defs/InsightId"
        },
        {
          "description": " The ID of the insight containing the log groups. "
        }
      ]
    },
    "AnomalousLogGroups": {
      "allOf": [
        {
          "$ref": "#/$defs/AnomalousLogGroups"
        },
        {
          "description": " The list of Amazon CloudWatch log groups that are related to an insight. "
        }
      ]
    },
    "NextToken": {
      "allOf": [
        {
          "$ref": "#/$defs/UuidNextToken"
        },
        {
          "description": "The pagination token to use to retrieve the next page of results for this operation. If there are no more pages, this value is null."
        }
      ]
    }
  },
  "$defs": {
    "AnomalousLogGroup": {
      "type": "object",
      "properties": {
        "LogGroupName": {
          "allOf": [
            {
              "$ref": "#/$defs/LogGroupName"
            },
            {
              "description": " The name of the CloudWatch log group. "
            }
          ]
        },
        "ImpactStartTime": {
          "allOf": [
            {
              "$ref": "#/$defs/Timestamp"
            },
            {
              "description": " The time the anomalous log events began. The impact start time indicates the time of the first log anomaly event that occurs. "
            }
          ]
        },
        "ImpactEndTime": {
          "allOf": [
            {
              "$ref": "#/$defs/Timestamp"
            },
            {
              "description": " The time the anomalous log events stopped. "
            }
          ]
        },
        "NumberOfLogLinesScanned": {
          "allOf": [
            {
              "$ref": "#/$defs/NumberOfLogLinesScanned"
            },
            {
              "description": " The number of log lines that were scanned for anomalous log events. "
            }
          ]
        },
        "LogAnomalyShowcases": {
          "allOf": [
            {
              "$ref": "#/$defs/LogAnomalyShowcases"
            },
            {
              "description": " The log anomalies in the log group. Each log anomaly displayed represents a cluster of similar anomalous log events. "
            }
          ]
        }
      },
      "description": " An Amazon CloudWatch log group that contains log anomalies and is used to generate an insight. "
    },
    "AnomalousLogGroups": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AnomalousLogGroup"
      }
    },
    "Explanation": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "InsightId": {
      "type": "string",
      "pattern": "^[\\w-]*$",
      "minLength": 1,
      "maxLength": 100
    },
    "LogAnomalyClass": {
      "type": "object",
      "properties": {
        "LogStreamName": {
          "allOf": [
            {
              "$ref": "#/$defs/LogStreamName"
            },
            {
              "description": " The name of the Amazon CloudWatch log stream that the anomalous log event belongs to. A log stream is a sequence of log events that share the same source. "
            }
          ]
        },
        "LogAnomalyType": {
          "allOf": [
            {
              "$ref": "#/$defs/LogAnomalyType"
            },
            {
              "description": " The type of log anomaly that has been detected. "
            }
          ]
        },
        "LogAnomalyToken": {
          "allOf": [
            {
              "$ref": "#/$defs/LogAnomalyToken"
            },
            {
              "description": " The token where the anomaly was detected. This may refer to an exception or another location, or it may be blank for log anomalies such as format anomalies. "
            }
          ]
        },
        "LogEventId": {
          "allOf": [
            {
              "$ref": "#/$defs/LogEventId"
            },
            {
              "description": " The ID of the log event. "
            }
          ]
        },
        "Explanation": {
          "allOf": [
            {
              "$ref": "#/$defs/Explanation"
            },
            {
              "description": " The explanation for why the log event is considered an anomaly. "
            }
          ]
        },
        "NumberOfLogLinesOccurrences": {
          "allOf": [
            {
              "$ref": "#/$defs/NumberOfLogLinesOccurrences"
            },
            {
              "description": " The number of log lines where this anomalous log event occurs. "
            }
          ]
        },
        "LogEventTimestamp": {
          "allOf": [
            {
              "$ref": "#/$defs/Timestamp"
            },
            {
              "description": " The time of the first occurrence of the anomalous log event. "
            }
          ]
        }
      },
      "description": " Information about an anomalous log event found within a log group. "
    },
    "LogAnomalyClasses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LogAnomalyClass"
      },
      "minItems": 0,
      "maxItems": 10
    },
    "LogAnomalyShowcase": {
      "type": "object",
      "properties": {
        "LogAnomalyClasses": {
          "allOf": [
            {
              "$ref": "#/$defs/LogAnomalyClasses"
            },
            {
              "description": " A list of anomalous log events that may be related. "
            }
          ]
        }
      },
      "description": " A cluster of similar anomalous log events found within a log group. "
    },
    "LogAnomalyShowcases": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LogAnomalyShowcase"
      },
      "minItems": 0,
      "maxItems": 20
    },
    "LogAnomalyToken": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2048
    },
    "LogAnomalyType": {
      "type": "string",
      "enum": [
        "KEYWORD",
        "KEYWORD_TOKEN",
        "FORMAT",
        "HTTP_CODE",
        "BLOCK_FORMAT",
        "NUMERICAL_POINT",
        "NUMERICAL_NAN",
        "NEW_FIELD_NAME"
      ]
    },
    "LogEventId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512
    },
    "LogGroupName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512
    },
    "LogStreamName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 512
    },
    "NumberOfLogLinesOccurrences": {
      "type": "integer"
    },
    "NumberOfLogLinesScanned": {
      "type": "integer"
    },
    "Timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "UuidNextToken": {
      "type": "string",
      "pattern": "^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$",
      "minLength": 36,
      "maxLength": 36
    }
  }
}