{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/uptimerobot/json-schema/uptimerobot-update-storm-protection-dto-schema.json",
  "title": "UpdateStormProtectionDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/uptimerobot-storm-protection-api-openapi.yml#/components/schemas/UpdateStormProtectionDto",
  "type": "object",
  "properties": {
    "isEnabled": {
      "type": "boolean",
      "description": "Enable or disable storm protection (alert grouping)."
    },
    "thresholdType": {
      "enum": [
        "count",
        "percentage"
      ],
      "type": "string",
      "description": "How the threshold is measured."
    },
    "thresholdValue": {
      "type": "number",
      "minimum": 1,
      "maximum": 1000000,
      "description": "Threshold that triggers grouping. Accepts 1-1000000; the stricter rule (>= 2 for \"count\", <= 100 for \"percentage\") is enforced server-side by domain validation."
    },
    "windowMinutes": {
      "type": "number",
      "minimum": 1,
      "maximum": 15,
      "description": "Rolling time window in minutes (1-15)."
    },
    "config": {
      "$ref": "#/$defs/UpdateStormProtectionConfigDto"
    }
  },
  "$defs": {
    "UpdateStormProtectionConfigDto": {
      "type": "object",
      "properties": {
        "groupPooling": {
          "type": "boolean",
          "description": "When enabled, suppressed alerts are pooled into a single grouped notification."
        }
      }
    }
  }
}