{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/anomalyarmor-ai/json-schema/anomalyarmor-ai-update-custom-sql-monitor-request-schema.json",
  "title": "UpdateCustomSqlMonitorRequest",
  "description": "Request to update a custom SQL monitor. All fields optional.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/anomalyarmor-ai-custom-sql-api-openapi.yml#/components/schemas/UpdateCustomSqlMonitorRequest",
  "properties": {
    "name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Name"
    },
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "sql_query": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Sql Query"
    },
    "upper_bound": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Upper Bound"
    },
    "lower_bound": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lower Bound"
    },
    "check_interval": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(hourly|daily|weekly|monthly|\\d+[mhd]|@[a-z_]+|\\S+\\s+\\S+\\s+\\S+\\s+\\S+\\s+\\S+)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Check Interval"
    },
    "timeout_seconds": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 300.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Timeout Seconds"
    },
    "enabled": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Enabled"
    }
  },
  "type": "object"
}