{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "scheduleId": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,128}$",
      "description": "Identifier of the schedule returned by its create or list operation."
    },
    "expectedVersion": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "The expected version value; allowed values and bounds are specified in this schema."
    },
    "state": {
      "description": "Requested resource state or saved-observation filter, as enumerated here.",
      "type": "string",
      "enum": [
        "active",
        "paused"
      ]
    },
    "staleAfterSeconds": {
      "description": "The stale after seconds value; allowed values and bounds are specified in this schema.",
      "type": "integer",
      "minimum": 86400,
      "maximum": 5184000
    },
    "alerts": {
      "description": "The alerts value; allowed values and bounds are specified in this schema.",
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean"
        },
        "direction": {
          "type": "string",
          "enum": [
            "increase",
            "decrease",
            "either"
          ]
        },
        "minimumChange": {
          "type": "integer",
          "minimum": 1,
          "maximum": 1000
        }
      },
      "required": [
        "enabled",
        "direction",
        "minimumChange"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "scheduleId",
    "expectedVersion"
  ],
  "additionalProperties": false
}
