mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
863dbc7ba8
commit
d33c4e5e7c
@ -119,14 +119,14 @@ func (dd *DingDingNotifier) genBody(evalContext *alerting.EvalContext, messageUR
|
||||
}
|
||||
|
||||
for i, match := range evalContext.EvalMatches {
|
||||
message += fmt.Sprintf("\\n%2d. %s: %s", i+1, match.Metric, match.Value)
|
||||
message += fmt.Sprintf("\n%2d. %s: %s", i+1, match.Metric, match.Value)
|
||||
}
|
||||
|
||||
var bodyMsg map[string]interface{}
|
||||
if dd.MsgType == "actionCard" {
|
||||
// Embed the pic into the markdown directly because actionCard doesn't have a picUrl field
|
||||
if dd.NeedsImage() && picURL != "" {
|
||||
message = "\\n\\n" + message
|
||||
message = "\n\n" + message
|
||||
}
|
||||
|
||||
bodyMsg = map[string]interface{}{
|
||||
|
Loading…
Reference in New Issue
Block a user