{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pingzen-dev/json-schema/pingzen-dev-monitor-response-schema.json",
  "title": "MonitorResponse",
  "description": "Response schema for 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/MonitorResponse",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id",
      "description": "Monitor ID"
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "Monitor name"
    },
    "url": {
      "type": "string",
      "title": "Url",
      "description": "URL or host"
    },
    "protocol": {
      "type": "string",
      "title": "Protocol",
      "description": "Protocol"
    },
    "interval_seconds": {
      "type": "integer",
      "title": "Interval Seconds",
      "description": "Check interval in seconds"
    },
    "timeout_seconds": {
      "type": "integer",
      "title": "Timeout Seconds",
      "description": "Timeout in seconds"
    },
    "user_id": {
      "type": "integer",
      "title": "User Id",
      "description": "Owner user ID"
    },
    "workspace_id": {
      "type": "integer",
      "title": "Workspace Id",
      "description": "Workspace ID"
    },
    "probe_id": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Probe Id",
      "description": "Single probe ID alias = probe_ids[0]. DEPRECATED — read `probe_ids` instead. Will be removed 2026-07-27.",
      "deprecated": true
    },
    "probe_ids": {
      "items": {
        "type": "integer"
      },
      "type": "array",
      "title": "Probe Ids",
      "description": "Probe IDs assigned for multi-region checks. Empty list = central server."
    },
    "aggregation_rule": {
      "type": "string",
      "title": "Aggregation Rule",
      "description": "How per-probe states combine into Monitor.status: any_fails, majority_fail, or all_fail.",
      "default": "any_fails"
    },
    "status": {
      "type": "string",
      "title": "Status",
      "description": "Current status: UP, DOWN, UNKNOWN"
    },
    "is_active": {
      "type": "boolean",
      "title": "Is Active",
      "description": "Whether monitor is active"
    },
    "http_method": {
      "type": "string",
      "title": "Http Method",
      "description": "HTTP method"
    },
    "headers": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Headers",
      "description": "HTTP headers"
    },
    "expected_status": {
      "type": "integer",
      "title": "Expected Status",
      "description": "Expected HTTP status"
    },
    "keyword": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Keyword",
      "description": "Keyword to search"
    },
    "keyword_present": {
      "type": "boolean",
      "title": "Keyword Present",
      "description": "Keyword present or absent"
    },
    "keyword_type": {
      "type": "string",
      "title": "Keyword Type",
      "description": "Keyword match type",
      "default": "contains"
    },
    "json_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Json Path"
    },
    "json_expected_value": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Json Expected Value"
    },
    "follow_redirects": {
      "type": "boolean",
      "title": "Follow Redirects"
    },
    "verify_ssl": {
      "type": "boolean",
      "title": "Verify Ssl"
    },
    "trust_extra_anchor_any_tld": {
      "type": "boolean",
      "title": "Trust Extra Anchor Any Tld",
      "default": false
    },
    "detect_stub_pages": {
      "type": "boolean",
      "title": "Detect Stub Pages",
      "default": true
    },
    "auth_type": {
      "type": "string",
      "title": "Auth Type",
      "default": "none"
    },
    "auth_username": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auth Username"
    },
    "auth_header_name": {
      "type": "string",
      "title": "Auth Header Name",
      "default": "X-API-Key"
    },
    "auth_password_set": {
      "type": "boolean",
      "title": "Auth Password Set",
      "default": false
    },
    "auth_token_set": {
      "type": "boolean",
      "title": "Auth Token Set",
      "default": false
    },
    "retry_count": {
      "type": "integer",
      "title": "Retry Count",
      "description": "Number of retries before marking as DOWN"
    },
    "retry_delay_seconds": {
      "type": "number",
      "title": "Retry Delay Seconds",
      "description": "Base delay between retries in seconds"
    },
    "grpc_service_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Grpc Service Name"
    },
    "grpc_use_tls": {
      "type": "boolean",
      "title": "Grpc Use Tls"
    },
    "tcp_expect_banner": {
      "type": "boolean",
      "title": "Tcp Expect Banner"
    },
    "tcp_expected_banner": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Tcp Expected Banner"
    },
    "ping_count": {
      "type": "integer",
      "title": "Ping Count"
    },
    "ping_packet_size": {
      "type": "integer",
      "title": "Ping Packet Size",
      "description": "ICMP packet size in bytes",
      "default": 64
    },
    "confirmation_threshold": {
      "type": "integer",
      "title": "Confirmation Threshold",
      "description": "Consecutive failures before DOWN",
      "default": 3
    },
    "recovery_threshold": {
      "type": "integer",
      "title": "Recovery Threshold",
      "description": "Consecutive successes before UP",
      "default": 2
    },
    "current_failure_streak": {
      "type": "integer",
      "title": "Current Failure Streak",
      "description": "Current consecutive failures",
      "default": 0
    },
    "current_success_streak": {
      "type": "integer",
      "title": "Current Success Streak",
      "description": "Current consecutive successes",
      "default": 0
    },
    "grace_period_seconds": {
      "type": "integer",
      "title": "Grace Period Seconds",
      "description": "Extra time before alerting",
      "default": 0
    },
    "login_paused_until": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Login Paused Until",
      "description": "Set when a camera rejected the login: no check logs in to that device with these credentials before this time, so the camera does not lock the account. A new password lifts it."
    },
    "pause_reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Pause Reason",
      "description": "Why the server paused the monitor, e.g. probe_lacks_protocol: its checker is too old for cameras and the pause lifts once it is updated. None when paused by hand."
    },
    "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."
    },
    "host_settings": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Host Settings",
      "description": "SSH host check settings. private_key and password are never returned; private_key_set and password_set say whether they are stored."
    },
    "flapping_since": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Flapping Since",
      "description": "Set while the checks keep switching between passing and failing (Nagios-style flap detection): DOWN / RECOVERED notifications are held and one 'flapping' notification is sent instead"
    },
    "flap_failures": {
      "type": "integer",
      "title": "Flap Failures",
      "description": "Failed checks in the flap-detection window",
      "default": 0
    },
    "flap_checks": {
      "type": "integer",
      "title": "Flap Checks",
      "description": "Checks in the flap-detection window (max 21)",
      "default": 0
    },
    "response_time_warn_ms": {
      "type": "integer",
      "title": "Response Time Warn Ms",
      "description": "Warning if RTT > X ms",
      "default": 0
    },
    "response_time_critical_ms": {
      "type": "integer",
      "title": "Response Time Critical Ms",
      "description": "Critical if RTT > X ms",
      "default": 0
    },
    "packet_loss_warn_percent": {
      "type": "number",
      "title": "Packet Loss Warn Percent",
      "description": "Warning if loss > X%",
      "default": 0.0
    },
    "packet_loss_critical_percent": {
      "type": "number",
      "title": "Packet Loss Critical Percent",
      "description": "Critical if loss > X%",
      "default": 0.0
    },
    "dns_record_type": {
      "type": "string",
      "title": "Dns Record Type",
      "description": "DNS record type (A, AAAA, MX, etc.)",
      "default": "A"
    },
    "dns_expected_values": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dns Expected Values",
      "description": "Expected DNS resolution values"
    },
    "dns_server": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dns Server",
      "description": "DNS only: the monitor's own DNS server; None asks the default ones"
    },
    "dns_resolvers": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/DnsResolverResponse"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Dns Resolvers",
      "description": "DNS only: the servers a check asks, in order; None for other protocols"
    },
    "ws_send_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ws Send Message",
      "description": "Message to send after WebSocket connect"
    },
    "ws_expected_response": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ws Expected Response",
      "description": "Expected WebSocket response"
    },
    "ssl_warn_days": {
      "type": "integer",
      "title": "Ssl Warn Days"
    },
    "ssl_critical_days": {
      "type": "integer",
      "title": "Ssl Critical Days"
    },
    "whois_warn_days": {
      "type": "integer",
      "title": "Whois Warn Days"
    },
    "whois_critical_days": {
      "type": "integer",
      "title": "Whois Critical Days"
    },
    "smtp_use_starttls": {
      "type": "boolean",
      "title": "Smtp Use Starttls"
    },
    "smtp_verify_tls": {
      "type": "boolean",
      "title": "Smtp Verify Tls"
    },
    "imap_use_ssl": {
      "type": "boolean",
      "title": "Imap Use Ssl"
    },
    "pop3_use_ssl": {
      "type": "boolean",
      "title": "Pop3 Use Ssl"
    },
    "ftp_use_tls": {
      "type": "boolean",
      "title": "Ftp Use Tls"
    },
    "ftp_username": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ftp Username"
    },
    "ftp_password_set": {
      "type": "boolean",
      "title": "Ftp Password Set",
      "description": "Whether FTP password is configured",
      "default": false
    },
    "socks5_auth_required": {
      "type": "boolean",
      "title": "Socks5 Auth Required",
      "default": false
    },
    "socks5_username": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Socks5 Username"
    },
    "socks5_password_set": {
      "type": "boolean",
      "title": "Socks5 Password Set",
      "description": "Whether SOCKS5 password is configured",
      "default": false
    },
    "socks5_test_target": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Socks5 Test Target"
    },
    "mtproxy_secret_set": {
      "type": "boolean",
      "title": "Mtproxy Secret Set",
      "description": "Whether MTProxy secret is configured",
      "default": false
    },
    "dnsbl_servers": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Dnsbl Servers",
      "description": "Custom DNSBL providers (empty → pydnsbl defaults)"
    },
    "pagespeed_strategy": {
      "type": "string",
      "title": "Pagespeed Strategy",
      "description": "PageSpeed strategy",
      "default": "mobile"
    },
    "pagespeed_threshold": {
      "type": "integer",
      "title": "Pagespeed Threshold",
      "description": "Performance threshold (0-100)",
      "default": 50
    },
    "udp_payload": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Udp Payload",
      "description": "Custom UDP payload"
    },
    "udp_expect_response": {
      "type": "boolean",
      "title": "Udp Expect Response",
      "description": "Wait for UDP response",
      "default": true
    },
    "udp_expected_response": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Udp Expected Response",
      "description": "Expected UDP response content"
    },
    "api_check_config": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Api Check Config",
      "description": "API check configuration"
    },
    "transaction_steps": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Transaction Steps",
      "description": "Transaction step configurations"
    },
    "transaction_viewport_width": {
      "type": "integer",
      "title": "Transaction Viewport Width",
      "description": "Browser viewport width",
      "default": 1920
    },
    "transaction_viewport_height": {
      "type": "integer",
      "title": "Transaction Viewport Height",
      "description": "Browser viewport height",
      "default": 1080
    },
    "transaction_user_agent": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Transaction User Agent",
      "description": "Custom user agent string"
    },
    "transaction_screenshot_on_error": {
      "type": "boolean",
      "title": "Transaction Screenshot On Error",
      "description": "Capture screenshot on failure",
      "default": true
    },
    "created_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Created At"
    },
    "updated_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Updated At"
    },
    "last_check_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Check At"
    },
    "incident_started_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Incident Started At",
      "description": "Start time of current ongoing incident"
    },
    "uptime_24h": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Uptime 24H",
      "description": "Uptime % in last 24 hours"
    },
    "avg_response_time_24h": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Avg Response Time 24H",
      "description": "Avg response time in last 24 hours (ms)"
    },
    "last_response_time_ms": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Response Time Ms",
      "description": "Most recent check's response time (ms, integer)"
    },
    "last_ping_avg_rtt": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Ping Avg Rtt",
      "description": "Most recent PING check's kernel-measured avg RTT (float, 3 decimals). Present only for PING/ICMP monitors. Preserves sub-millisecond precision (e.g. 0.260 ms for in-datacenter targets) that `last_response_time_ms` cannot express due to its integer type. UI should prefer this field for PING monitors when the value is below a few ms."
    },
    "last_failure_category": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Failure Category",
      "description": "failure_category of the most recent check. One of: anti_bot, rate_limited, auth_required, geo_blocked, timeout, dns_failure, dns_mismatch, dns_nxdomain, dns_no_record, dns_dnssec, dns_servfail, dns_no_answer, dns_server_no_answer, tls_failure, connection_refused, server_error, status_mismatch, content_mismatch, ssl_expired, ssl_expiring, ssl_chain_incomplete, dnsbl_listed, stub_page, config_error. The set is open: new values may be added, including more specific ones that take over part of an existing value's cases, and existing values are never renamed or removed; treat an unknown value as a generic failure. null means the check passed or was not classified. A block is read before the category: `last_cdn_provider` 'ISP Filter' is the probe's own network, then geo_blocked is a country ban, then anti_bot with `last_bot_protection` set is a bot wall."
    },
    "last_bot_protection": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Bot Protection",
      "description": "Bot-protection vendor that refused the most recent check (Cloudflare, PerimeterX, DataDome, Akamai, Imperva, WBaaS) when the checker stored evidence for it. anti_bot + last_bot_protection = checks blocked with evidence."
    },
    "last_cdn_provider": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Cdn Provider",
      "description": "CDN detected on the most recent check (Cloudflare, Fastly, ...), or a pseudo-provider: 'ISP Filter' when the check found a filter on the way (a block page or its address, or the site's name dropped while the same server answered without it), 'Stub Page' for a parking page. Null when none was detected."
    },
    "last_http_status": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Http Status",
      "description": "HTTP status code of the most recent check; null when it got no HTTP reply."
    },
    "isp_filter_seen_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Isp Filter Seen At",
      "description": "When the checker of the most recent check (the same check the last_* fields describe) last found the ISP filter in its current failure: a check of that checker labelled 'ISP Filter'. Null when it has not, or when that failure ended (a passing check, an HTTP status or a certificate error), or after a pause, a resume, a new URL or protocol, a stats reset or (for the central checker) a new set of checkers."
    },
    "last_isp_held": {
      "type": "boolean",
      "title": "Last Isp Held",
      "description": "The most recent check reads as the block its checker found at isp_filter_seen_at: it failed without a label of its own at the step the filter was found at (the TLS handshake, or the request over plain HTTP), at most an hour (or four of the longest gaps between checks, if those are longer) after it. last_cdn_provider and the other last_* fields stay as the check recorded them.",
      "default": false
    },
    "isp_filters": {
      "items": {
        "$ref": "#/$defs/ProbeIspFilterResponse"
      },
      "type": "array",
      "title": "Isp Filters",
      "description": "Monitor page only (empty in the list): one entry per public or private checker of the monitor in an ISP filter episode within the hold time, with whether its own latest check reads as that block. The central checker's value is not listed (see last_isp_held)."
    },
    "last_error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Error Message",
      "description": "Error message of the most recent check, first 300 characters; null when the check passed. The full text is in the check results."
    },
    "ssl_days_until_expiry": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssl Days Until Expiry",
      "description": "Days until SSL certificate expires (SSL monitors only)"
    },
    "ssl_expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssl Expires At",
      "description": "SSL certificate expiration date (SSL monitors only)"
    },
    "ssl_issuer": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssl Issuer",
      "description": "SSL certificate issuer (SSL monitors only)"
    },
    "ssl_subject": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssl Subject",
      "description": "SSL certificate subject/CN (SSL monitors only)"
    },
    "ssl_san": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Ssl San",
      "description": "Subject Alternative Names (DNS entries)"
    },
    "ssl_tls_version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssl Tls Version",
      "description": "TLS protocol version (e.g., TLSv1.3)"
    },
    "ssl_cipher_suite": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssl Cipher Suite",
      "description": "Cipher suite name"
    },
    "ssl_cipher_bits": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssl Cipher Bits",
      "description": "Cipher strength in bits"
    },
    "ssl_issued_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssl Issued At",
      "description": "SSL certificate notBefore (SSL monitors only)"
    },
    "ssl_effective_warn_days": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssl Effective Warn Days",
      "description": "ssl_warn_days after the certificate-lifetime cap (min(warn, lifetime/3)). NULL until a check has recorded the certificate's notBefore."
    },
    "ssl_effective_critical_days": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ssl Effective Critical Days",
      "description": "ssl_critical_days after the certificate-lifetime cap (min(critical, lifetime/6))"
    },
    "whois_days_until_expiry": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Whois Days Until Expiry",
      "description": "Days until domain expires (WHOIS monitors only)"
    },
    "whois_expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Whois Expires At",
      "description": "Domain expiration date (WHOIS monitors only)"
    },
    "whois_registrar": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Whois Registrar",
      "description": "Domain registrar name (WHOIS monitors only)"
    },
    "last_rtsp_metrics": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Rtsp Metrics",
      "description": "RTSP: what the latest check learned (codec, size, declared fps)"
    },
    "last_video_metrics": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Video Metrics",
      "description": "RTSP: the latest video sample (fps, bitrate, keyframe interval, loss)"
    },
    "last_video_checked_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Last Video Checked At",
      "description": "RTSP: when that video sample was taken"
    },
    "device_updated_ids": {
      "items": {
        "type": "integer"
      },
      "type": "array",
      "title": "Device Updated Ids",
      "description": "RTSP edit with apply_login_to_device: the other cameras of this host:port that got the camera's login. Empty otherwise."
    },
    "imap_capabilities": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Imap Capabilities",
      "description": "IMAP server CAPABILITY tokens from RFC 3501 §7.1.1 / RFC 9051 §7.1.1 (e.g., IMAP4rev1, IDLE, STARTTLS, AUTH=OAUTHBEARER, LOGINDISABLED). Empty for non-IMAP monitors or before the first successful check."
    }
  },
  "type": "object",
  "required": [
    "id",
    "name",
    "url",
    "protocol",
    "interval_seconds",
    "timeout_seconds",
    "user_id",
    "workspace_id",
    "status",
    "is_active",
    "http_method",
    "headers",
    "expected_status",
    "keyword_present",
    "follow_redirects",
    "verify_ssl",
    "retry_count",
    "retry_delay_seconds",
    "grpc_use_tls",
    "tcp_expect_banner",
    "ping_count",
    "ssl_warn_days",
    "ssl_critical_days",
    "whois_warn_days",
    "whois_critical_days",
    "smtp_use_starttls",
    "smtp_verify_tls",
    "imap_use_ssl",
    "pop3_use_ssl",
    "ftp_use_tls"
  ],
  "$defs": {
    "DnsResolverResponse": {
      "properties": {
        "address": {
          "type": "string",
          "title": "Address",
          "description": "IP address of the DNS server, port 53"
        },
        "operator": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "google",
                "cloudflare",
                "quad9",
                "yandex"
              ]
            },
            {
              "type": "null"
            }
          ],
          "title": "Operator",
          "description": "Who runs it, when it is a well-known public resolver"
        },
        "role": {
          "type": "string",
          "enum": [
            "custom",
            "primary",
            "fallback"
          ],
          "title": "Role",
          "description": "custom: the monitor's own server, asked alone; primary: asked first; fallback: asked when the primary gives no answer"
        }
      },
      "type": "object",
      "required": [
        "address",
        "role"
      ],
      "title": "DnsResolverResponse",
      "description": "A DNS server the checks of a DNS monitor ask."
    },
    "ProbeIspFilterResponse": {
      "properties": {
        "probe_id": {
          "type": "integer",
          "title": "Probe Id",
          "description": "The checker (probe) id"
        },
        "seen_at": {
          "type": "string",
          "format": "date-time",
          "title": "Seen At",
          "description": "When a check of this checker last found the ISP filter in its current failure (a check labelled 'ISP Filter')"
        },
        "check_id": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Check Id",
          "description": "This checker's latest check, the one `held` is about; null when unread"
        },
        "held": {
          "type": "boolean",
          "title": "Held",
          "description": "This checker's latest check failed, unlabelled, at the step where the filter was found (the TLS handshake, or the request over plain HTTP), at most an hour (or four of the checker's longest gaps between checks) after seen_at: it reads as the same block. The check's own fields stay as recorded",
          "default": false
        }
      },
      "type": "object",
      "required": [
        "probe_id",
        "seen_at"
      ],
      "title": "ProbeIspFilterResponse",
      "description": "One checker in an ISP filter episode, on the monitor page."
    }
  }
}