{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://interchange.stellarview.net/schemas/alert_escalation.schema.json",
  "title": "An escalation: if nobody acknowledges in time, the next role is told",
  "type": "object",
  "required": ["id", "steps"],
  "additionalProperties": false,
  "properties": {
    "id": { "type": "string" },
    "about": { "type": "string" },
    "steps": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": ["after_s", "to_role"],
        "additionalProperties": false,
        "properties": {
          "after_s": { "type": "integer", "minimum": 1, "description": "Seconds after the alert was raised." },
          "to_role": { "type": "string" }
        }
      }
    }
  }
}
