{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dregs-com/json-schema/dregs-com-v1-update-escalation-rule-request-schema.json",
  "title": "V1UpdateEscalationRuleRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dregs-com-escalation-rules-api-openapi.yml#/components/schemas/V1UpdateEscalationRuleRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "conditions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RuleCondition"
      }
    },
    "severity": {
      "type": "string",
      "enum": [
        "INFO",
        "WARNING",
        "CRITICAL"
      ]
    },
    "channels": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "openAfterSeconds": {
      "type": "integer",
      "format": "int32"
    },
    "closeAfterSeconds": {
      "type": "integer",
      "format": "int32"
    },
    "effectiveAt": {
      "type": "string",
      "format": "date-time"
    },
    "enabled": {
      "type": "boolean"
    }
  },
  "$defs": {
    "RuleCondition": {
      "type": "object",
      "properties": {
        "condition": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "threshold": {
          "type": "integer",
          "format": "int32"
        },
        "badge": {
          "type": "string"
        },
        "seconds": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}