Skip to main content

Function: validateMonitorFieldClientSide()

validateMonitorFieldClientSide(type: "http" | "http-keyword" | "http-status" | "http-header" | "http-json" | "http-latency" | "port" | "ping" | "dns" | "ssl" | "websocket-keepalive" | "server-heartbeat" | "replication" | "cdn-edge-consistency", fieldName: string, value: unknown): Promise<ValidationResult>

Defined in: src/utils/monitorValidation.ts:271

Validate a specific monitor field for real-time feedback using shared schemas. Provides immediate validation without IPC round-trip.

Parametersโ€‹

typeโ€‹

Monitor type.

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

fieldNameโ€‹

string

Field name to validate.

valueโ€‹

unknown

Field value to validate.

Returnsโ€‹

Promise<ValidationResult>

Promise resolving to validation result.