{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/condux-ai/json-schema/condux-ai-alert-rule-response-schema.json",
  "title": "AlertRuleResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/condux-ai-alerts-api-openapi.yml#/components/schemas/AlertRuleResponse",
  "required": [
    "id",
    "name",
    "events",
    "levels",
    "enabled",
    "channels"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "events": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int32"
      }
    },
    "levels": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int32"
      }
    },
    "enabled": {
      "type": "boolean"
    },
    "channels": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AlertChannelResponse"
      }
    }
  },
  "$defs": {
    "AlertChannelResponse": {
      "required": [
        "id",
        "channel",
        "target",
        "template"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "channel": {
          "type": "integer",
          "format": "int32"
        },
        "target": {
          "type": "string"
        },
        "template": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}