mirror of
https://github.com/grafana/grafana.git
synced 2025-01-21 22:13:38 -06:00
fix cannot receive dingding alert bug
This commit is contained in:
parent
f640df7a2c
commit
68c460a957
@ -57,6 +57,9 @@ func (this *DingDingNotifier) Notify(evalContext *alerting.EvalContext) error {
|
||||
message := evalContext.Rule.Message
|
||||
picUrl := evalContext.ImagePublicUrl
|
||||
title := evalContext.GetNotificationTitle()
|
||||
if message == "" {
|
||||
message = title
|
||||
}
|
||||
|
||||
bodyJSON, err := simplejson.NewJson([]byte(`{
|
||||
"msgtype": "link",
|
||||
|
Loading…
Reference in New Issue
Block a user