{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pingzen-dev/json-schema/pingzen-dev-update-monitor-request-schema.json",
  "title": "UpdateMonitorRequest",
  "description": "Request schema for updating a monitor.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pingzen-dev-openapi.json#/components/schemas/UpdateMonitorRequest",
  "properties": {
    "name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Name",
      "description": "Monitor name"
    },
    "url": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Url",
      "description": "URL or host to monitor"
    },
    "protocol": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Protocol",
      "description": "Protocol: HTTP, HTTPS, TCP, ICMP, DNS, GRPC"
    },
    "workspace_id": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 2147483647.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Workspace Id",
      "description": "Workspace ID to move monitor to"
    },
    "probe_id": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 2147483647.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Probe Id",
      "description": "Single probe ID (legacy). DEPRECATED — pass `probe_ids` instead. Will be removed 2026-07-27. If both fields are supplied, `probe_ids` wins.",
      "deprecated": true
    },
    "probe_ids": {
      "anyOf": [
        {
          "items": {
            "type": "integer",
            "maximum": 2147483647.0,
            "minimum": 1.0
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Probe Ids",
      "description": "Probe IDs to assign. None = unchanged. Empty list = detach all probes (central server). Plan caps: FREE=1, PRO=3, BUSINESS=10, ENTERPRISE=50."
    },
    "aggregation_rule": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Aggregation Rule",
      "description": "Update aggregation rule. None = unchanged. Valid: any_fails, majority_fail, all_fail. Silent transition: changing the rule does NOT fire a spurious alert on the next check."
    },
    "interval_seconds": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 86400.0,
          "minimum": 10.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Interval Seconds",
      "description": "Check interval in seconds (up to 86400 for WHOIS)"
    },
    "timeout_seconds": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 120.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Timeout Seconds",
      "description": "Timeout in seconds"
    },
    "is_active": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Active",
      "description": "Whether monitor is active"
    },
    "http_method": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Http Method",
      "description": "HTTP method"
    },
    "headers": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Headers",
      "description": "HTTP headers"
    },
    "expected_status": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 599.0,
          "minimum": 100.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Expected Status",
      "description": "Expected HTTP status code"
    },
    "keyword": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Keyword"
    },
    "keyword_present": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Keyword Present"
    },
    "keyword_type": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(contains|not_contains|regex)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Keyword Type",
      "description": "Keyword match type: contains, not_contains, or regex"
    },
    "json_path": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Json Path"
    },
    "json_expected_value": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Json Expected Value"
    },
    "follow_redirects": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Follow Redirects"
    },
    "verify_ssl": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Verify Ssl"
    },
    "trust_extra_anchor_any_tld": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Trust Extra Anchor Any Tld"
    },
    "detect_stub_pages": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Detect Stub Pages"
    },
    "auth_type": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(none|basic|bearer|digest|api_key)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auth Type"
    },
    "auth_username": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Auth Username"
    },
    "auth_password": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Auth Password"
    },
    "auth_token": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048
        },
        {
          "type": "null"
        }
      ],
      "title": "Auth Token"
    },
    "auth_header_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 100
        },
        {
          "type": "null"
        }
      ],
      "title": "Auth Header Name"
    },
    "retry_count": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 5.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Retry Count"
    },
    "retry_delay_seconds": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 10.0,
          "minimum": 0.5
        },
        {
          "type": "null"
        }
      ],
      "title": "Retry Delay Seconds"
    },
    "grpc_service_name": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Grpc Service Name"
    },
    "grpc_use_tls": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Grpc Use Tls"
    },
    "tcp_expect_banner": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tcp Expect Banner"
    },
    "tcp_expected_banner": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Tcp Expected Banner"
    },
    "ping_count": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 10.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Ping Count"
    },
    "ping_packet_size": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 1500.0,
          "minimum": 32.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Ping Packet Size"
    },
    "confirmation_threshold": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 10.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Confirmation Threshold"
    },
    "recovery_threshold": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 5.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Recovery Threshold"
    },
    "grace_period_seconds": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 3600.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Grace Period Seconds"
    },
    "response_time_warn_ms": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 60000.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Response Time Warn Ms"
    },
    "response_time_critical_ms": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 60000.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Response Time Critical Ms"
    },
    "packet_loss_warn_percent": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 100.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Packet Loss Warn Percent"
    },
    "packet_loss_critical_percent": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 100.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Packet Loss Critical Percent"
    },
    "dns_record_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dns Record Type",
      "description": "DNS record type"
    },
    "dns_expected_values": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dns Expected Values"
    },
    "dns_server": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 45
        },
        {
          "type": "null"
        }
      ],
      "title": "Dns Server",
      "description": "DNS only: IP address of the DNS server to ask instead of public DNS, port 53. A local-network address needs your private checker in that network. An empty string clears it."
    },
    "ws_send_message": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048
        },
        {
          "type": "null"
        }
      ],
      "title": "Ws Send Message"
    },
    "ws_expected_response": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048
        },
        {
          "type": "null"
        }
      ],
      "title": "Ws Expected Response"
    },
    "ssl_warn_days": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 365.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssl Warn Days"
    },
    "ssl_critical_days": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 30.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssl Critical Days"
    },
    "whois_warn_days": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 365.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Whois Warn Days"
    },
    "whois_critical_days": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 30.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Whois Critical Days"
    },
    "smtp_use_starttls": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Smtp Use Starttls"
    },
    "smtp_verify_tls": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Smtp Verify Tls"
    },
    "imap_use_ssl": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Imap Use Ssl"
    },
    "pop3_use_ssl": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pop3 Use Ssl"
    },
    "ftp_use_tls": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ftp Use Tls"
    },
    "ftp_username": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Ftp Username"
    },
    "ftp_password": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Ftp Password"
    },
    "socks5_auth_required": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Socks5 Auth Required"
    },
    "socks5_username": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Socks5 Username"
    },
    "socks5_password": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 255
        },
        {
          "type": "null"
        }
      ],
      "title": "Socks5 Password"
    },
    "socks5_test_target": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Socks5 Test Target"
    },
    "mtproxy_secret": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Mtproxy Secret"
    },
    "dnsbl_servers": {
      "anyOf": [
        {
          "items": {
            "type": "string",
            "maxLength": 200,
            "minLength": 3,
            "pattern": "^[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?(\\.[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?)+$"
          },
          "type": "array",
          "maxItems": 50
        },
        {
          "type": "null"
        }
      ],
      "title": "Dnsbl Servers"
    },
    "pagespeed_strategy": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^(mobile|desktop)$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pagespeed Strategy"
    },
    "pagespeed_threshold": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 100.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Pagespeed Threshold"
    },
    "rtsp_settings": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rtsp Settings",
      "description": "RTSP camera settings, every key optional: video_check_interval_seconds (300-86400, turns the video check on), min_fps (0 turns the frame-rate check off), max_keyframe_interval_s, min_bitrate_kbps, expected_codec (H264, H265, JPEG), expected_width with expected_height. Replaces the stored object; {} clears it."
    },
    "host_settings": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Host Settings",
      "description": "SSH host check. Keys you send replace the stored ones; null clears a key. Omit private_key to keep the saved key."
    },
    "apply_login_to_device": {
      "type": "boolean",
      "title": "Apply Login To Device",
      "description": "RTSP only: the camera's login as this edit leaves it (auth_type, auth_username, auth_password) also goes to every other camera of the workspace at the same host:port, and lifts their login pause. Refused when the same edit changes the host:port or the workspace.",
      "default": false
    },
    "udp_payload": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "title": "Udp Payload"
    },
    "udp_expect_response": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Udp Expect Response"
    },
    "udp_expected_response": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "title": "Udp Expected Response"
    },
    "api_check_config": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Api Check Config"
    },
    "transaction_steps": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Transaction Steps"
    },
    "transaction_viewport_width": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 3840.0,
          "minimum": 320.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Transaction Viewport Width"
    },
    "transaction_viewport_height": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 2160.0,
          "minimum": 240.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Transaction Viewport Height"
    },
    "transaction_user_agent": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Transaction User Agent"
    },
    "transaction_screenshot_on_error": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Transaction Screenshot On Error"
    }
  },
  "type": "object"
}