alerting(ui): update the descriptions of the MQTT Message settings (#106601)

alerting(ui): update the description of the MQTT Message settings
pull/106575/head^2
Pepe Cano 1 month ago committed by GitHub
parent 3fd8ad8476
commit 98ea0193e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      pkg/services/ngalert/notifier/channels_config/available_channels.go
  2. 5
      public/app/features/alerting/unified/mockGrafanaNotifiers.ts

@ -1529,7 +1529,7 @@ func GetAvailableNotifiers() []*NotifierPlugin {
},
InputType: InputTypeText,
Placeholder: "json",
Description: "The format of the message to be sent. If set to 'json', the message will be sent as a JSON object. If set to 'text', the message will be sent as a plain text string. By default json is used.",
Description: "If set to 'json', the notification message is the default JSON payload, and the Message field sets only the message field in the payload. If set to 'text', the Message field defines the entire payload. The default is 'json'.",
PropertyName: "messageFormat",
Required: false,
},
@ -1545,6 +1545,7 @@ func GetAvailableNotifiers() []*NotifierPlugin {
{
Label: "Message",
Element: ElementTypeTextArea,
Description: "In 'json' Message format, sets the message field of the default JSON payload. In 'text' Message format, defines the entire payload.",
Placeholder: alertingTemplates.DefaultMessageEmbed,
PropertyName: "message",
},

@ -2976,7 +2976,7 @@ export const grafanaAlertNotifiers: Record<GrafanaNotifierType, NotifierDTO> = {
inputType: 'text',
label: 'Message format',
description:
"The format of the message to be sent. If set to 'json', the message will be sent as a JSON object. If set to 'text', the message will be sent as a plain text string. By default json is used.",
"If set to 'json', the notification message is the default JSON payload, and the Message field sets only the message field in the payload. If set to 'text', the Message field defines the entire payload. The default is 'json'.",
placeholder: 'json',
propertyName: 'messageFormat',
selectOptions: [
@ -3019,7 +3019,8 @@ export const grafanaAlertNotifiers: Record<GrafanaNotifierType, NotifierDTO> = {
element: 'textarea',
inputType: '',
label: 'Message',
description: '',
description:
"In 'json' Message format, sets the message field of the default JSON payload. In 'text' Message format, defines the entire payload.",
placeholder: '{{ template "default.message" . }}',
propertyName: 'message',
selectOptions: null,

Loading…
Cancel
Save