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

alerting(ui): update the description of the MQTT Message settings
This commit is contained in:
Pepe Cano
2025-06-13 10:12:11 +02:00
committed by GitHub
parent 3fd8ad8476
commit 98ea0193e4
2 changed files with 5 additions and 3 deletions
@@ -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,