Function: createMonitorObject()
createMonitorObject(
type:"http"|"http-keyword"|"http-status"|"http-header"|"http-json"|"http-latency"|"port"|"ping"|"dns"|"ssl"|"websocket-keepalive"|"server-heartbeat"|"replication"|"cdn-edge-consistency",fields:Partial<MonitorFormData>):MonitorCreationData
Defined in: src/utils/monitorValidation.ts:86
Create monitor object with proper field mapping and type safety.
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"
fieldsโ
Field values to merge with defaults.
Returnsโ
Monitor creation data with type-specific fields and guaranteed required fields.