{
  "$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."
    },
    "projectId": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]{1,128}$",
      "description": "Identifier of the project returned by its create or list operation."
    },
    "target": {
      "type": "string",
      "minLength": 1,
      "maxLength": 253,
      "description": "Exact URL or domain to query, interpreted according to targetKind."
    },
    "includeSubdomains": {
      "description": "Include subdomains of the selected domain in this query.",
      "type": "boolean",
      "default": true
    },
    "anchorAt": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d\\.\\d{3}(?:Z))$",
      "description": "The anchor at value; allowed values and bounds are specified in this schema."
    },
    "cadenceSeconds": {
      "description": "Scheduled check interval in seconds, from 3600 to 2592000.",
      "type": "integer",
      "minimum": 86400,
      "maximum": 2592000,
      "default": 604800
    },
    "staleAfterSeconds": {
      "description": "The stale after seconds value; allowed values and bounds are specified in this schema.",
      "type": "integer",
      "minimum": 86400,
      "maximum": 5184000,
      "default": 1209600
    },
    "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,
      "default": {
        "enabled": false,
        "direction": "either",
        "minimumChange": 10
      }
    }
  },
  "required": [
    "scheduleId",
    "projectId",
    "target",
    "anchorAt"
  ],
  "additionalProperties": false
}
