Alerting: Clarify that the AWS SNS subject field cannot be empty (#100780)

* Alerting: Clarify that the AWS SNS subject field cannot be empty

* minor copy change
pull/101289/head
Pepe Cano 5 months ago committed by GitHub
parent 305f05d852
commit 2585fec99e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      pkg/services/ngalert/notifier/channels_config/available_channels.go
  2. 5
      public/app/features/alerting/unified/mockGrafanaNotifiers.ts

@ -1689,13 +1689,13 @@ func GetAvailableNotifiers() []*NotifierPlugin {
Label: "Subject",
Element: ElementTypeTextArea,
InputType: InputTypeText,
Description: "Optional subject. You can use templates to customize this field",
Description: "Optional subject. By default, this field uses the default title template and can be customized with templates and custom messages. It cannot be an empty string",
PropertyName: "subject",
Placeholder: alertingTemplates.DefaultMessageTitleEmbed,
},
{
Label: "Message",
Description: "Optional message. You can use templates to customize this field. Using a custom message will replace the default message",
Description: "Optional message. By default, this field uses the default message template and can be customized with templates and custom messages",
Element: ElementTypeTextArea,
PropertyName: "message",
Placeholder: alertingTemplates.DefaultMessageEmbed,

@ -3146,7 +3146,8 @@ export const grafanaAlertNotifiers: Record<GrafanaNotifierType, NotifierDTO> = {
element: 'input',
inputType: 'text',
label: 'Subject',
description: 'Optional subject. You can use templates to customize this field',
description:
'Optional subject. By default, this field uses the default title template and can be customized using templates. It cannot be an empty string',
placeholder: '{{ template "default.title" . }}',
propertyName: 'subject',
selectOptions: null,
@ -3165,7 +3166,7 @@ export const grafanaAlertNotifiers: Record<GrafanaNotifierType, NotifierDTO> = {
inputType: '',
label: 'Message',
description:
'Optional message. You can use templates to customize this field. Using a custom message will replace the default message',
'Optional message. By default, this field uses the default message template and can be customized with templates and custom messages',
placeholder: '{{ template "default.message" . }}',
propertyName: 'message',
selectOptions: null,

Loading…
Cancel
Save