Skip to main content

Function: validateMonitorType()

validateMonitorType(type: unknown): type is "cdn-edge-consistency" | "dns" | "http" | "http-header" | "http-json" | "http-keyword" | "http-latency" | "http-status" | "ping" | "port" | "replication" | "server-heartbeat" | "ssl" | "websocket-keepalive"

Defined in: shared/utils/validation.ts:19

Determines whether a value matches a supported monitor type.

Parametersโ€‹

typeโ€‹

unknown

Returnsโ€‹

type is "cdn-edge-consistency" | "dns" | "http" | "http-header" | "http-json" | "http-keyword" | "http-latency" | "http-status" | "ping" | "port" | "replication" | "server-heartbeat" | "ssl" | "websocket-keepalive"