Interface: UseMonitorFieldsResult
Defined in: src/hooks/useMonitorFields.ts:60
Result interface for the useMonitorFields hook
Propertiesโ
error?โ
optionalerror:string
Defined in: src/hooks/useMonitorFields.ts:62
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global\_Objects/Error message if loading failed
getFields()โ
getFields: (
monitorType:"cdn-edge-consistency"|"dns"|"http"|"http-header"|"http-json"|"http-keyword"|"http-latency"|"http-status"|"ping"|"port"|"replication"|"server-heartbeat"|"ssl"|"websocket-keepalive") =>MonitorFieldDefinition[]
Defined in: src/hooks/useMonitorFields.ts:64
Get field definitions for a specific monitor type
Parametersโ
monitorTypeโ
"cdn-edge-consistency" | "dns" | "http" | "http-header" | "http-json" | "http-keyword" | "http-latency" | "http-status" | "ping" | "port" | "replication" | "server-heartbeat" | "ssl" | "websocket-keepalive"
Returnsโ
getRequiredFields()โ
getRequiredFields: (
monitorType:"cdn-edge-consistency"|"dns"|"http"|"http-header"|"http-json"|"http-keyword"|"http-latency"|"http-status"|"ping"|"port"|"replication"|"server-heartbeat"|"ssl"|"websocket-keepalive") =>string[]
Defined in: src/hooks/useMonitorFields.ts:66
Get required fields for a specific monitor type
Parametersโ
monitorTypeโ
"cdn-edge-consistency" | "dns" | "http" | "http-header" | "http-json" | "http-keyword" | "http-latency" | "http-status" | "ping" | "port" | "replication" | "server-heartbeat" | "ssl" | "websocket-keepalive"
Returnsโ
string[]
isFieldRequired()โ
isFieldRequired: (
monitorType:"cdn-edge-consistency"|"dns"|"http"|"http-header"|"http-json"|"http-keyword"|"http-latency"|"http-status"|"ping"|"port"|"replication"|"server-heartbeat"|"ssl"|"websocket-keepalive",fieldName:string) =>boolean
Defined in: src/hooks/useMonitorFields.ts:68
Check if a field is required for a monitor type
Parametersโ
monitorTypeโ
"cdn-edge-consistency" | "dns" | "http" | "http-header" | "http-json" | "http-keyword" | "http-latency" | "http-status" | "ping" | "port" | "replication" | "server-heartbeat" | "ssl" | "websocket-keepalive"
fieldNameโ
string
Returnsโ
boolean
isLoadedโ
isLoaded:
boolean
Defined in: src/hooks/useMonitorFields.ts:70
Whether field definitions are loaded