Function: formatMonitorTitleSuffix()
formatMonitorTitleSuffix(
monitorType
:"http"
|"port"
|"ping"
|"dns"
,monitor
:Monitor
):Promise
<string
>
Defined in: src/utils/monitorUiHelpers.ts:294
Format title suffix dynamically based on monitor type configuration.
Parametersโ
monitorTypeโ
Type of monitor
"http"
| "port"
| "ping"
| "dns"
monitorโ
Monitor data
Returnsโ
Promise
<string
>
Formatted title suffix string
Exampleโ
const suffix = await formatMonitorTitleSuffix("http", {
url: "https://example.com",
}); // " (https://example.com)"
const suffix = await formatMonitorTitleSuffix("port", {
host: "localhost",
port: 80,
}); // " (localhost:80)"