Function: validateMonitorFieldOrThrow()
function validateMonitorFieldOrThrow(args: {
fieldName:
| "checkInterval"
| "retryAttempts"
| "timeout";
monitorType:
| "cdn-edge-consistency"
| "dns"
| "http"
| "http-header"
| "http-json"
| "http-keyword"
| "http-latency"
| "http-status"
| "ping"
| "port"
| "replication"
| "server-heartbeat"
| "ssl"
| "websocket-keepalive";
siteIdentifier: string;
value: number;
}): Promise<void>;
Defined in: src/hooks/site/useSiteDetails.utils.ts:136
Validates a monitor field and throws a logged error when invalid.
Parametersโ
argsโ
fieldNameโ
"checkInterval" | "retryAttempts" | "timeout"
monitorTypeโ
| "cdn-edge-consistency"
| "dns"
| "http"
| "http-header"
| "http-json"
| "http-keyword"
| "http-latency"
| "http-status"
| "ping"
| "port"
| "replication"
| "server-heartbeat"
| "ssl"
| "websocket-keepalive"
siteIdentifierโ
string
valueโ
number
Returnsโ
Promise<void>