diff --git a/go.mod b/go.mod index 415f5523ac6..94dc11a2da5 100644 --- a/go.mod +++ b/go.mod @@ -59,7 +59,7 @@ require ( github.com/google/uuid v1.3.0 // @grafana/backend-platform github.com/google/wire v0.5.0 // @grafana/backend-platform github.com/gorilla/websocket v1.5.0 // @grafana/grafana-app-platform-squad - github.com/grafana/alerting v0.0.0-20230831092459-f7dba8ede9b0 // @grafana/alerting-squad-backend + github.com/grafana/alerting v0.0.0-20230911211918-c939956dbb10 // @grafana/alerting-squad-backend github.com/grafana/cuetsy v0.1.10 // @grafana/grafana-as-code github.com/grafana/grafana-aws-sdk v0.19.1 // @grafana/aws-datasources github.com/grafana/grafana-azure-sdk-go v1.8.1 // @grafana/backend-platform diff --git a/go.sum b/go.sum index 543e48a876c..a1ef0969a73 100644 --- a/go.sum +++ b/go.sum @@ -1790,6 +1790,8 @@ github.com/gotestyourself/gotestyourself v1.3.0/go.mod h1:zZKM6oeNM8k+FRljX1mnzV github.com/gotestyourself/gotestyourself v2.2.0+incompatible/go.mod h1:zZKM6oeNM8k+FRljX1mnzVYeS8wiGgQyvST1/GafPbY= github.com/grafana/alerting v0.0.0-20230831092459-f7dba8ede9b0 h1:iDCcF7YzzVWQDtgUp3pS5caAAfI3lk7RZ0BI5DMrero= github.com/grafana/alerting v0.0.0-20230831092459-f7dba8ede9b0/go.mod h1:gyUqgDT+v6gARVCpbfi8bb/WiGNELNJiq6hGKadnIxc= +github.com/grafana/alerting v0.0.0-20230911211918-c939956dbb10 h1:GfTtChG09pAfCIQBjvM2e52WfIGrByBhxZ9VW/x1hXo= +github.com/grafana/alerting v0.0.0-20230911211918-c939956dbb10/go.mod h1:gyUqgDT+v6gARVCpbfi8bb/WiGNELNJiq6hGKadnIxc= github.com/grafana/codejen v0.0.3 h1:tAWxoTUuhgmEqxJPOLtJoxlPBbMULFwKFOcRsPRPXDw= github.com/grafana/codejen v0.0.3/go.mod h1:zmwwM/DRyQB7pfuBjTWII3CWtxcXh8LTwAYGfDfpR6s= github.com/grafana/cuetsy v0.1.10 h1:+W9/7roI8LorL+D1RJhKGdhsTZ81adrK9dHS0r7qsXs= diff --git a/pkg/services/ngalert/notifier/channels_config/available_channels.go b/pkg/services/ngalert/notifier/channels_config/available_channels.go index 9544b8ef330..2af9a0cc00e 100644 --- a/pkg/services/ngalert/notifier/channels_config/available_channels.go +++ b/pkg/services/ngalert/notifier/channels_config/available_channels.go @@ -843,6 +843,18 @@ func GetAvailableNotifiers() []*NotifierPlugin { Description: `Mode for parsing entities in the message text. Default is 'HTML'`, PropertyName: "parse_mode", }, + { + Label: "Disable Web Page Preview", + Description: "Disables link previews for links in this message", + Element: ElementTypeCheckbox, + PropertyName: "disable_web_page_preview", + }, + { + Label: "Protect Content", + Description: "Protects the contents of the sent message from forwarding and saving", + Element: ElementTypeCheckbox, + PropertyName: "protect_content", + }, { Label: "Disable Notification", Description: "Sends the message silently. Users will receive a notification with no sound.", diff --git a/public/app/features/alerting/unified/mockGrafanaNotifiers.ts b/public/app/features/alerting/unified/mockGrafanaNotifiers.ts index 3ccad782403..6efaa9d89f8 100644 --- a/public/app/features/alerting/unified/mockGrafanaNotifiers.ts +++ b/public/app/features/alerting/unified/mockGrafanaNotifiers.ts @@ -1539,6 +1539,40 @@ export const grafanaAlertNotifiersMock: NotifierDTO[] = [ secure: false, dependsOn: '', }, + { + element: 'checkbox', + inputType: '', + label: 'Disable Web Page Preview', + description: 'Disables link previews for links in this message', + placeholder: '', + propertyName: 'disable_web_page_preview', + selectOptions: null, + showWhen: { + field: '', + is: '', + }, + required: false, + validationRule: '', + secure: false, + dependsOn: '', + }, + { + element: 'checkbox', + inputType: '', + label: 'Protect Content', + description: 'Protects the contents of the sent message from forwarding and saving', + placeholder: '', + propertyName: 'protect_content', + selectOptions: null, + showWhen: { + field: '', + is: '', + }, + required: false, + validationRule: '', + secure: false, + dependsOn: '', + }, { element: 'checkbox', inputType: '',