{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloudwatch/json-schema/amazon-cloudwatch-describe-insight-rules-output-schema.json",
  "title": "DescribeInsightRulesOutput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloudwatch-insight-rule-api-openapi.yml#/components/schemas/DescribeInsightRulesOutput",
  "type": "object",
  "properties": {
    "NextToken": {
      "type": "string",
      "description": "If this parameter is present, it is a token that marks the start of the next batch of returned results."
    },
    "InsightRules": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InsightRule"
      },
      "description": "The rules returned by the operation."
    }
  },
  "$defs": {
    "InsightRule": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the rule."
        },
        "State": {
          "type": "string",
          "description": "Indicates whether the rule is enabled or disabled."
        },
        "Schema": {
          "type": "string",
          "description": "For rules that you create, this is always {\"Name\": \"CloudWatchLogRule\", \"Version\": 1}. For managed rules, this is {\"Name\": \"ServiceLogRule\", \"Version\": 1}"
        },
        "Definition": {
          "type": "string",
          "description": "The definition of the rule, as a JSON object. The definition contains the keywords used to define contributors, the value to aggregate on if this rule returns a sum instead of a count, and the filters. For details on the valid syntax, see Contributor Insights Rule Syntax."
        },
        "ManagedRule": {
          "type": "boolean",
          "description": "An optional built-in rule that Amazon Web Services manages."
        },
        "ApplyOnTransformedLogs": {
          "type": "boolean",
          "description": "Displays whether the rule is evaluated on the transformed versions of logs, for log groups that have Log transformation enabled. If this is false, log events are evaluated before they are transformed."
        }
      },
      "required": [
        "Name",
        "State",
        "Schema",
        "Definition"
      ]
    }
  }
}