Alerting: Add title and description to Webhook contact point (#58058)

* Add title and description to Webhook contact point

* Remove deprecation message
This commit is contained in:
Alex Moreno
2022-11-03 10:52:07 +01:00
committed by GitHub
parent 76532c1f27
commit 3558cadb7e
3 changed files with 35 additions and 13 deletions

View File

@@ -735,6 +735,21 @@ func GetAvailableNotifiers() []*NotifierPlugin {
InputType: InputTypeText,
PropertyName: "maxAlerts",
},
{ // New in 9.3.
Label: "Title",
Description: "Templated title of the message.",
Element: ElementTypeInput,
InputType: InputTypeText,
PropertyName: "title",
Placeholder: channels.DefaultMessageTitleEmbed,
},
{ // New in 9.3.
Label: "Message",
Description: "Custom message. You can use template variables.",
Element: ElementTypeTextArea,
PropertyName: "message",
Placeholder: channels.DefaultMessageEmbed,
},
},
},
{