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

This commit is contained in:
Pepe Cano 2025-02-15 15:27:03 +01:00
parent ea788975e0
commit 99075ae737
No known key found for this signature in database
GPG Key ID: 0745DDD5CE37A437
2 changed files with 5 additions and 4 deletions

View File

@ -1688,13 +1688,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, it 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, it uses the default message template and can be customized with templates and custom messages",
Element: ElementTypeTextArea,
PropertyName: "message",
Placeholder: alertingTemplates.DefaultMessageEmbed,

View File

@ -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, it 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, it uses the default message template and can be customized with templates and custom messages',
placeholder: '{{ template "default.message" . }}',
propertyName: 'message',
selectOptions: null,