Add placeholders to Service Uptime templates

- Adds support for new placeholders in the Service Uptime Monitoring alert templates. The following placeholders are now available:
-- ${ip_host}: The IP address or hostname of the service.
-- ${service_type}: The type of the service (e.g., HTTP, PING, TCP, DNS).
-- ${port}: The port the service is running on.
-- ${domain}: The domain name of the service.
-- ${region_agent}: The regional agent monitoring the service.
This commit is contained in:
Tola Leng
2025-08-12 14:49:13 +07:00
parent 36dfd8a52c
commit e70b23cbe5
3 changed files with 181 additions and 20 deletions
+2 -2
View File
@@ -1,4 +1,3 @@
import { pb } from "@/lib/pocketbase";
import {
serverNotificationTemplateService,
@@ -122,7 +121,8 @@ export const templateTypeConfigs = {
description: 'Templates for service uptime monitoring alerts',
placeholders: [
'${service_name}', '${status}', '${response_time}', '${url}',
'${uptime}', '${downtime}', '${time}'
'${host}', '${service_type}', '${port}', '${domain}',
'${region_name}', '${agent_id}', '${uptime}', '${time}'
]
},
ssl: {