Rewrote creation of images tag

pull/16116/head
Magnus Berglund 6 years ago
parent 0511095303
commit e6623de6b2
  1. 10
      pkg/services/alerting/notifiers/teams.go

@ -78,13 +78,11 @@ func (this *TeamsNotifier) Notify(evalContext *alerting.EvalContext) error {
message = evalContext.Rule.Message
}
images := ""
images := make([]map[string]interface{}, 0)
if evalContext.ImagePublicUrl != "" {
images = []map[string]interface{}{
{
"image": evalContext.ImagePublicUrl,
},
}
images = append(images, map[string]interface{}{
"image": evalContext.ImagePublicUrl,
})
}
body := map[string]interface{}{

Loading…
Cancel
Save