Просмотр исходного кода

Slack notification should contain fallback text (#7961)

Jaroslav Hanslík 8 лет назад
Родитель
Сommit
e91a078105
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      pkg/services/alerting/notifiers/slack.go

+ 1 - 0
pkg/services/alerting/notifiers/slack.go

@@ -116,6 +116,7 @@ func (this *SlackNotifier) Notify(evalContext *alerting.EvalContext) error {
 	body := map[string]interface{}{
 		"attachments": []map[string]interface{}{
 			{
+				"fallback":    evalContext.GetNotificationTitle(),
 				"color":       evalContext.GetStateModel().Color,
 				"title":       evalContext.GetNotificationTitle(),
 				"title_link":  ruleUrl,