Skip to main content

Function: getAnalyticsLabel()

getAnalyticsLabel(monitorType: "http" | "http-keyword" | "http-status" | "http-header" | "http-json" | "http-latency" | "port" | "ping" | "dns" | "ssl" | "websocket-keepalive" | "server-heartbeat" | "replication" | "cdn-edge-consistency"): Promise<string>

Defined in: src/utils/monitorUiHelpers.ts:320

Get analytics label for monitor type.

Parametersโ€‹

monitorTypeโ€‹

Type of monitor.

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

Returnsโ€‹

Promise<string>

Analytics label from configuration or a fallback string.