Skip to main content

Function: getAnalyticsLabel()

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

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

Get analytics label for monitor type.

Parametersโ€‹

monitorTypeโ€‹

Type of monitor.

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

Returnsโ€‹

Promise<string>

Analytics label from configuration or a fallback string.