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
This commit is contained in:
Pepe Cano
2025-02-25 12:06:38 +01:00
committed by GitHub
parent 305f05d852
commit 2585fec99e
2 changed files with 5 additions and 4 deletions
@@ -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,