Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Centralize alert webhook mention metadata
rcourtman7c9eac5539cc
diff --git a/docs/release-control/v6/internal/subsystems/alerts.md b/docs/release-control/v6/internal/subsystems/alerts.mdindex 51ffa5b694..aca91bb3e8 100644--- a/docs/release-control/v6/internal/subsystems/alerts.md+++ b/docs/release-control/v6/internal/subsystems/alerts.md@@ -71,7 +71,7 @@ normalization fork.The alert webhook service chooser also now derives its service set from thebackend webhook template registry, rather than keeping a second frontend-only-list of services, labels, and descriptions.+list of services, labels, descriptions, and mention-copy metadata.Frontend alert surfaces and backend alert-support files now require explicitregistry path-policy coverage, so new alert-owned runtime files must be mappeddiff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.mdindex f3dfcad07d..801610b406 100644--- a/docs/release-control/v6/internal/subsystems/api-contracts.md+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md@@ -358,8 +358,9 @@ stay in `internal/notifications/` rather than becoming a second API-layer ownerfor the same transport contract.The notifications API boundary also carries the canonical webhook templateshape used by the frontend service chooser: `frontend-modern/src/api/notifications.ts`-must expose the registry's service label and description metadata, and it may-not invent a second frontend-only service taxonomy for the chooser.+must expose the registry's service label, description, and mention-copy+metadata, and it may not invent a second frontend-only service taxonomy for+the chooser.That same notifications boundary must also canonicalize legacy service-specificinput aliases at ingress instead of leaving them as a live runtime contract:Pushover `app_token` / `user_token` may be accepted only at config/API/UI inputdiff --git a/docs/release-control/v6/internal/subsystems/notifications.md b/docs/release-control/v6/internal/subsystems/notifications.mdindex 61b5000404..dd1d5e4526 100644--- a/docs/release-control/v6/internal/subsystems/notifications.md+++ b/docs/release-control/v6/internal/subsystems/notifications.md@@ -80,7 +80,10 @@ The webhook template registry is also the canonical source of truth for thealert webhook service set and the metadata the frontend uses to build itsservice chooser. Frontend presentation may format the options, but it mustderive the available services, labels, and descriptions from the backend-template registry instead of keeping a second hardcoded service list.+template registry instead of keeping a second hardcoded service list. Mention+field visibility plus mention-placeholder/help copy for supported services+must also come from the same backend registry so the editor does not carry a+second service-specific presentation map.Email single-alert, grouped, resolved, and HTML send paths must follow thatsame ownership rule: they may expose different calling surfaces, but they mustall route through one canonical enhanced email executor instead of rebuildingdiff --git a/frontend-modern/src/api/__tests__/notifications.test.ts b/frontend-modern/src/api/__tests__/notifications.test.tsindex 0c4694589d..b01315805d 100644--- a/frontend-modern/src/api/__tests__/notifications.test.ts+++ b/frontend-modern/src/api/__tests__/notifications.test.ts@@ -93,6 +93,8 @@ describe('NotificationsAPI', () => {{service: 'discord',label: 'Discord',+ mentionPlaceholder: '@everyone or <@USER_ID> or <@&ROLE_ID>',+ mentionHelp: 'Discord: Use @everyone, @here, <@USER_ID>, or <@&ROLE_ID>',name: 'Discord Webhook',description: 'Discord server webhook',urlPattern: 'https://discord.com/api/webhooks/.../...',diff --git a/frontend-modern/src/api/notifications.ts b/frontend-modern/src/api/notifications.tsindex 031a467ce0..f1786d6105 100644--- a/frontend-modern/src/api/notifications.ts+++ b/frontend-modern/src/api/notifications.ts@@ -25,6 +25,8 @@ export interface WebhookTemplate {id?: string;service: string;label?: string;+ mentionPlaceholder?: string;+ mentionHelp?: string;name: string;urlPattern: string;method: string;diff --git a/frontend-modern/src/components/Alerts/WebhookConfig.test.tsx b/frontend-modern/src/components/Alerts/WebhookConfig.test.tsxindex 2f4d47cc9f..5358ca4277 100644--- a/frontend-modern/src/components/Alerts/WebhookConfig.test.tsx+++ b/frontend-modern/src/components/Alerts/WebhookConfig.test.tsx@@ -40,6 +40,8 @@ function makeWebhook(overrides: Partial<Webhook> = {}): Webhook {const discordTemplate = {service: 'discord',label: 'Discord',+ mentionPlaceholder: '@everyone or <@USER_ID> or <@&ROLE_ID>',+ mentionHelp: 'Discord: Use @everyone, @here, <@USER_ID>, or <@&ROLE_ID>',name: 'Discord Webhook',description: 'Discord server webhook',urlPattern: 'https://discord.com/api/webhooks/...',@@ -52,6 +54,8 @@ const discordTemplate = {const slackTemplate = {service: 'slack',label: 'Slack',+ mentionPlaceholder: '@channel, @here, or <@USER_ID>',+ mentionHelp: 'Slack: Use @channel, @here, <@USER_ID>, or <!subteam^ID>',name: 'Slack Webhook',description: 'Slack incoming webhook',urlPattern: 'https://hooks.slack.com/services/...',diff --git a/frontend-modern/src/components/Alerts/WebhookConfig.tsx b/frontend-modern/src/components/Alerts/WebhookConfig.tsxindex ad57eec736..578f39f343 100644--- a/frontend-modern/src/components/Alerts/WebhookConfig.tsx+++ b/frontend-modern/src/components/Alerts/WebhookConfig.tsx@@ -27,8 +27,9 @@ import {ALERT_WEBHOOK_URL_HELP_PATH,ALERT_WEBHOOK_URL_HELP_QUERY,ALERT_WEBHOOK_URL_HELP_TEMPLATE_VARIABLE,- getAlertWebhookMentionHelp,- getAlertWebhookMentionPlaceholder,+ getAlertWebhookMentionHelpFromTemplates,+ getAlertWebhookMentionPlaceholderFromTemplates,+ hasAlertWebhookMentionSupportFromTemplates,getAlertWebhookCustomFieldPresets,getAlertWebhookNamePlaceholder,getAlertWebhookServiceLabelFromTemplates,@@ -527,9 +528,7 @@ export function WebhookConfig(props: WebhookConfigProps) {{/* Mention Field - show for supported services */}<Show- when={['discord', 'slack', 'teams', 'teams-adaptive', 'mattermost'].includes(- formData().service,- )}+ when={hasAlertWebhookMentionSupportFromTemplates(formData().service, templates())}><div class={formField}><label class={labelClass('flex items-center gap-2')}>@@ -540,12 +539,17 @@ export function WebhookConfig(props: WebhookConfigProps) {type="text"value={formData().mention || ''}onInput={(e) => setFormData({ ...formData(), mention: e.currentTarget.value })}- placeholder={getAlertWebhookMentionPlaceholder(formData().service)}+ placeholder={getAlertWebhookMentionPlaceholderFromTemplates(+ formData().service,+ templates(),+ )}class={controlClass('px-2 py-1.5')}/>- <Show when={getAlertWebhookMentionHelp(formData().service)}>+ <Show+ when={getAlertWebhookMentionHelpFromTemplates(formData().service, templates())}+ ><p class={formHelpText + ' mt-1'}>- {getAlertWebhookMentionHelp(formData().service)}+ {getAlertWebhookMentionHelpFromTemplates(formData().service, templates())}</p></Show></div>diff --git a/frontend-modern/src/utils/__tests__/alertWebhookPresentation.test.ts b/frontend-modern/src/utils/__tests__/alertWebhookPresentation.test.tsindex aabd73c5e1..5af51fdb43 100644--- a/frontend-modern/src/utils/__tests__/alertWebhookPresentation.test.ts+++ b/frontend-modern/src/utils/__tests__/alertWebhookPresentation.test.ts@@ -4,6 +4,9 @@ import {ALERT_WEBHOOK_TEST_SUCCESS,getAlertWebhookServices,getAlertWebhookCustomFieldPresets,+ getAlertWebhookMentionHelpFromTemplates,+ getAlertWebhookMentionPlaceholderFromTemplates,+ hasAlertWebhookMentionSupportFromTemplates,getAlertWebhookServiceLabelFromTemplates,getAlertWebhookTestFailure,getAlertWebhookTestSuccess,@@ -116,4 +119,33 @@ describe('alertWebhookPresentation', () => {expect(getAlertWebhookServiceLabelFromTemplates('custom-service', [])).toBe('custom-service');});++ it('prefers backend template mention copy for service presentation', () => {+ const templates = [+ {+ service: 'discord',+ label: 'Discord',+ mentionPlaceholder: '@everyone or <@USER_ID> or <@&ROLE_ID>',+ mentionHelp: 'Discord: Use @everyone, @here, <@USER_ID>, or <@&ROLE_ID>',+ name: 'Discord Webhook',+ description: 'Discord server webhook',+ urlPattern: 'https://discord.com/api/webhooks/.../...',+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ payloadTemplate: '',+ instructions: '',+ },+ ];++ expect(getAlertWebhookMentionPlaceholderFromTemplates('discord', templates as any)).toBe(+ '@everyone or <@USER_ID> or <@&ROLE_ID>',+ );+ expect(getAlertWebhookMentionHelpFromTemplates('discord', templates as any)).toBe(+ 'Discord: Use @everyone, @here, <@USER_ID>, or <@&ROLE_ID>',+ );+ expect(getAlertWebhookMentionPlaceholderFromTemplates('custom-service', [])).toBe('@everyone');+ expect(getAlertWebhookMentionHelpFromTemplates('custom-service', [])).toBe('');+ expect(hasAlertWebhookMentionSupportFromTemplates('discord', templates as any)).toBe(true);+ expect(hasAlertWebhookMentionSupportFromTemplates('custom-service', [])).toBe(false);+ });});diff --git a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.tsindex 788b24b17a..3fa029f089 100644--- a/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts+++ b/frontend-modern/src/utils/__tests__/frontendResourceTypeBoundaries.test.ts@@ -2984,8 +2984,9 @@ describe('frontend resource type boundaries', () => {expect(webhookConfigSource).toContain('getAlertWebhookToggleLabel');expect(webhookConfigSource).toContain('getAlertWebhookNamePlaceholder');expect(webhookConfigSource).toContain('getAlertWebhookUrlPlaceholder');- expect(webhookConfigSource).toContain('getAlertWebhookMentionPlaceholder');- expect(webhookConfigSource).toContain('getAlertWebhookMentionHelp');+ expect(webhookConfigSource).toContain('getAlertWebhookMentionPlaceholderFromTemplates');+ expect(webhookConfigSource).toContain('getAlertWebhookMentionHelpFromTemplates');+ expect(webhookConfigSource).toContain('hasAlertWebhookMentionSupportFromTemplates');expect(webhookConfigSource).toContain('getAlertWebhookTestLabel');expect(webhookConfigSource).toContain('getAlertWebhookSubmitLabel');expect(webhookConfigSource).not.toContain('Custom webhook endpoint');@@ -2993,6 +2994,8 @@ describe('frontend resource type boundaries', () => {expect(webhookConfigSource).not.toContain('My Webhook');expect(webhookConfigSource).not.toContain('https://example.com/webhook');expect(webhookConfigSource).not.toContain('Optional — tag users or groups');+ expect(webhookConfigSource).not.toContain('getAlertWebhookMentionPlaceholder(');+ expect(webhookConfigSource).not.toContain('getAlertWebhookMentionHelp(');expect(webhookConfigSource).not.toContain('Your Pushover application token');expect(webhookConfigSource).not.toContain('Primary user key or group key');expect(webhookConfigSource).not.toContain('app_token');@@ -3007,6 +3010,15 @@ describe('frontend resource type boundaries', () => {'export function getAlertWebhookServices',);expect(alertWebhookPresentationSource).not.toContain('ALERT_WEBHOOK_SERVICES');+ expect(alertWebhookPresentationSource).toContain(+ 'export function getAlertWebhookMentionPlaceholderFromTemplates',+ );+ expect(alertWebhookPresentationSource).toContain(+ 'export function getAlertWebhookMentionHelpFromTemplates',+ );+ expect(alertWebhookPresentationSource).toContain(+ 'export function hasAlertWebhookMentionSupportFromTemplates',+ );expect(alertWebhookPresentationSource).toContain('export function getAlertWebhookCustomFieldPresets',);diff --git a/frontend-modern/src/utils/alertWebhookPresentation.ts b/frontend-modern/src/utils/alertWebhookPresentation.tsindex cf6b6c4914..dc7f5d88e7 100644--- a/frontend-modern/src/utils/alertWebhookPresentation.ts+++ b/frontend-modern/src/utils/alertWebhookPresentation.ts@@ -173,6 +173,30 @@ export function getAlertWebhookServiceLabelFromTemplates(return getAlertWebhookServiceLabel(service);}+export function getAlertWebhookMentionPlaceholderFromTemplates(+ service: string,+ templates: AlertWebhookTemplate[] = [],+) {+ const template = templates.find((item) => item.service === service);+ return template?.mentionPlaceholder?.trim() || ALERT_WEBHOOK_MENTION_FALLBACK_PLACEHOLDER;+}++export function getAlertWebhookMentionHelpFromTemplates(+ service: string,+ templates: AlertWebhookTemplate[] = [],+) {+ const template = templates.find((item) => item.service === service);+ return template?.mentionHelp?.trim() || '';+}++export function hasAlertWebhookMentionSupportFromTemplates(+ service: string,+ templates: AlertWebhookTemplate[] = [],+) {+ const template = templates.find((item) => item.service === service);+ return Boolean(template?.mentionPlaceholder?.trim() || template?.mentionHelp?.trim());+}+export function getAlertWebhookCustomFieldPresets(service: string) {return ALERT_WEBHOOK_CUSTOM_FIELD_PRESETS[service.trim().toLowerCase()];}diff --git a/internal/api/notifications_test.go b/internal/api/notifications_test.goindex 9244563171..caaf8eb075 100644--- a/internal/api/notifications_test.go+++ b/internal/api/notifications_test.go@@ -485,9 +485,24 @@ func TestNotificationHandlers(t *testing.T) {w := httptest.NewRecorder()h.GetWebhookTemplates(w, req)assert.Equal(t, 200, w.Code)- body := w.Body.String()- assert.Contains(t, body, `"label":"Discord"`)- assert.Contains(t, body, `"label":"Generic"`)+ var templates []notifications.WebhookTemplate+ assert.NoError(t, json.Unmarshal(w.Body.Bytes(), &templates))++ findTemplate := func(service string) notifications.WebhookTemplate {+ for _, tmpl := range templates {+ if tmpl.Service == service {+ return tmpl+ }+ }+ return notifications.WebhookTemplate{}+ }++ discord := findTemplate("discord")+ generic := findTemplate("generic")+ assert.Equal(t, "Discord", discord.Label)+ assert.Equal(t, "Generic", generic.Label)+ assert.Equal(t, "@everyone or <@USER_ID> or <@&ROLE_ID>", discord.MentionPlaceholder)+ assert.Equal(t, "Discord: Use @everyone, @here, <@USER_ID>, or <@&ROLE_ID>", discord.MentionHelp)})t.Run("GetWebhookHistory", func(t *testing.T) {diff --git a/internal/notifications/templates_test.go b/internal/notifications/templates_test.goindex afc615b28e..c7e7dff175 100644--- a/internal/notifications/templates_test.go+++ b/internal/notifications/templates_test.go@@ -160,6 +160,13 @@ func TestGetWebhookTemplates(t *testing.T) {// Track seen services to ensure uniquenessseenServices := make(map[string]bool)+ mentionServices := map[string]bool{+ "discord": true,+ "slack": true,+ "teams": true,+ "teams-adaptive": true,+ "mattermost": true,+ }for i, tmpl := range templates {t.Run(tmpl.Name, func(t *testing.T) {@@ -184,6 +191,15 @@ func TestGetWebhookTemplates(t *testing.T) {t.Errorf("Template %q has empty Label", tmpl.Service)}+ if mentionServices[tmpl.Service] {+ if tmpl.MentionPlaceholder == "" {+ t.Errorf("Template %q has empty MentionPlaceholder", tmpl.Service)+ }+ if tmpl.MentionHelp == "" {+ t.Errorf("Template %q has empty MentionHelp", tmpl.Service)+ }+ }+// Description must be non-empty so the frontend can derive the service chooserif tmpl.Description == "" {t.Errorf("Template %q has empty Description", tmpl.Service)@@ -268,6 +284,9 @@ func TestGetWebhookTemplates_DiscordSettings(t *testing.T) {if !strings.Contains(discord.URLPattern, "discord.com") {t.Errorf("Discord URLPattern should contain discord.com, got %q", discord.URLPattern)}+ if discord.MentionPlaceholder == "" || discord.MentionHelp == "" {+ t.Fatal("Discord mention metadata should be present")+ }if discord.Method != "POST" {t.Errorf("Discord Method = %q, want POST", discord.Method)}@@ -301,6 +320,9 @@ func TestGetWebhookTemplates_SlackSettings(t *testing.T) {if !strings.Contains(slack.URLPattern, "hooks.slack.com") {t.Errorf("Slack URLPattern should contain hooks.slack.com, got %q", slack.URLPattern)}+ if slack.MentionPlaceholder == "" || slack.MentionHelp == "" {+ t.Fatal("Slack mention metadata should be present")+ }if slack.Method != "POST" {t.Errorf("Slack Method = %q, want POST", slack.Method)}@@ -404,6 +426,9 @@ func TestGetWebhookTemplates_GenericSettings(t *testing.T) {if generic.Label != "Generic" {t.Errorf("Generic Label = %q, want Generic", generic.Label)}+ if generic.MentionPlaceholder != "" || generic.MentionHelp != "" {+ t.Fatal("Generic template should not carry mention metadata")+ }// Generic should have empty URL pattern (user fills it in)if generic.URLPattern != "" {t.Errorf("Generic URLPattern = %q, want empty", generic.URLPattern)diff --git a/internal/notifications/webhook_templates.go b/internal/notifications/webhook_templates.goindex 21f9247dac..5096c305fd 100644--- a/internal/notifications/webhook_templates.go+++ b/internal/notifications/webhook_templates.go@@ -4,6 +4,8 @@ package notificationstype WebhookTemplate struct {Service string `json:"service"`Label string `json:"label"`+ MentionPlaceholder string `json:"mentionPlaceholder"`+ MentionHelp string `json:"mentionHelp"`Name string `json:"name"`Description string `json:"description"`URLPattern string `json:"urlPattern"`@@ -18,13 +20,15 @@ type WebhookTemplate struct {func GetWebhookTemplates() []WebhookTemplate {return []WebhookTemplate{{- Service: "discord",- Label: "Discord",- Name: "Discord Webhook",- Description: "Discord server webhook",- URLPattern: "https://discord.com/api/webhooks/{webhook_id}/{webhook_token}",- Method: "POST",- Headers: map[string]string{"Content-Type": "application/json"},+ Service: "discord",+ Label: "Discord",+ MentionPlaceholder: "@everyone or <@USER_ID> or <@&ROLE_ID>",+ MentionHelp: "Discord: Use @everyone, @here, <@USER_ID>, or <@&ROLE_ID>",+ Name: "Discord Webhook",+ Description: "Discord server webhook",+ URLPattern: "https://discord.com/api/webhooks/{webhook_id}/{webhook_token}",+ Method: "POST",+ Headers: map[string]string{"Content-Type": "application/json"},PayloadTemplate: `{"username": "Pulse Monitoring",{{if .Mention}}"content": "{{.Mention}}",{{end}}@@ -90,13 +94,15 @@ func GetWebhookTemplates() []WebhookTemplate {Instructions: "1. Create a bot with @BotFather on Telegram\n2. Get your bot token\n3. Get your chat ID by messaging the bot and visiting: https://api.telegram.org/bot<YOUR_BOT_TOKEN>/getUpdates\n4. URL format: https://api.telegram.org/bot<BOT_TOKEN>/sendMessage?chat_id=<CHAT_ID>\n5. IMPORTANT: You MUST include ?chat_id=YOUR_CHAT_ID in the URL",},{- Service: "slack",- Label: "Slack",- Name: "Slack Incoming Webhook",- Description: "Slack incoming webhook",- URLPattern: "https://hooks.slack.com/services/{webhook_path}",- Method: "POST",- Headers: map[string]string{"Content-Type": "application/json"},+ Service: "slack",+ Label: "Slack",+ MentionPlaceholder: "@channel, @here, or <@USER_ID>",+ MentionHelp: "Slack: Use @channel, @here, <@USER_ID>, or <!subteam^ID>",+ Name: "Slack Incoming Webhook",+ Description: "Slack incoming webhook",+ URLPattern: "https://hooks.slack.com/services/{webhook_path}",+ Method: "POST",+ Headers: map[string]string{"Content-Type": "application/json"},PayloadTemplate: `{"text": "{{if .Mention}}{{.Mention}} {{end}}Pulse Alert: {{.Level | title}} - {{.ResourceName}}","blocks": [@@ -186,13 +192,15 @@ func GetWebhookTemplates() []WebhookTemplate {Instructions: "1. In Slack, go to Apps > Incoming Webhooks\n2. Add to Slack and choose a channel\n3. Copy the webhook URL and paste it here (format: https://hooks.slack.com/services/...)\n4. Optional: Add a mention in the Mention field (e.g., @channel, @here, <@USER_ID>, <!subteam^ID>)",},{- Service: "teams",- Label: "Microsoft Teams",- Name: "Microsoft Teams",- Description: "Microsoft Teams webhook",- URLPattern: "https://{tenant}.webhook.office.com/webhookb2/{webhook_path}",- Method: "POST",- Headers: map[string]string{"Content-Type": "application/json"},+ Service: "teams",+ Label: "Microsoft Teams",+ MentionPlaceholder: "@General or user email",+ MentionHelp: "Teams: Use channel names like @General",+ Name: "Microsoft Teams",+ Description: "Microsoft Teams webhook",+ URLPattern: "https://{tenant}.webhook.office.com/webhookb2/{webhook_path}",+ Method: "POST",+ Headers: map[string]string{"Content-Type": "application/json"},PayloadTemplate: `{"@type": "MessageCard","@context": "http://schema.org/extensions",@@ -289,13 +297,15 @@ func GetWebhookTemplates() []WebhookTemplate {Instructions: "1. In PagerDuty, go to Configuration > Services\n2. Add an integration > Events API V2\n3. Copy the Integration Key\n4. Add the key as a custom field named 'routing_key'\n\nNote: PagerDuty recommends using Events API v2 for new integrations.",},{- Service: "teams-adaptive",- Label: "Teams (Adaptive)",- Name: "Microsoft Teams (Adaptive Card)",- Description: "Teams with Adaptive Cards",- URLPattern: "https://{tenant}.webhook.office.com/webhookb2/{webhook_path}",- Method: "POST",- Headers: map[string]string{"Content-Type": "application/json"},+ Service: "teams-adaptive",+ Label: "Teams (Adaptive)",+ MentionPlaceholder: "@General or user email",+ MentionHelp: "Teams: Use channel names like @General",+ Name: "Microsoft Teams (Adaptive Card)",+ Description: "Teams with Adaptive Cards",+ URLPattern: "https://{tenant}.webhook.office.com/webhookb2/{webhook_path}",+ Method: "POST",+ Headers: map[string]string{"Content-Type": "application/json"},PayloadTemplate: `{"type": "message","attachments": [{@@ -485,13 +495,15 @@ View in Pulse: {{.Instance}}`,Instructions: "1. Choose a topic name (e.g., 'my-pulse-alerts')\n2. URL format: https://ntfy.sh/YOUR_TOPIC\n Or for self-hosted: https://your-ntfy-server/YOUR_TOPIC\n3. For authentication, add a custom header:\n • Header Name: Authorization\n • Header Value: Bearer YOUR_TOKEN (or Basic base64_encoded_credentials)\n4. Subscribe to the topic in your ntfy app using the same topic name",},{- Service: "mattermost",- Label: "Mattermost",- Name: "Mattermost Incoming Webhook",- Description: "Mattermost incoming webhook",- URLPattern: "https://{your-mattermost-server}/hooks/{webhook_id}",- Method: "POST",- Headers: map[string]string{"Content-Type": "application/json"},+ Service: "mattermost",+ Label: "Mattermost",+ MentionPlaceholder: "@channel, @all, or @username",+ MentionHelp: "Mattermost: Use @channel, @all, or @username",+ Name: "Mattermost Incoming Webhook",+ Description: "Mattermost incoming webhook",+ URLPattern: "https://{your-mattermost-server}/hooks/{webhook_id}",+ Method: "POST",+ Headers: map[string]string{"Content-Type": "application/json"},PayloadTemplate: `{"username": "Pulse Monitoring","icon_url": "https://raw.githubusercontent.com/rcourtman/Pulse/main/frontend-modern/public/android-chrome-192x192.png",