Magnus Berglund 6 лет назад
Родитель
Сommit
0511095303
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      pkg/services/alerting/notifiers/teams.go

+ 5 - 5
pkg/services/alerting/notifiers/teams.go

@@ -82,8 +82,8 @@ func (this *TeamsNotifier) Notify(evalContext *alerting.EvalContext) error {
 	if evalContext.ImagePublicUrl != "" {
 	if evalContext.ImagePublicUrl != "" {
 		images = []map[string]interface{}{
 		images = []map[string]interface{}{
 			{
 			{
-				"image": evalContext.ImagePublicUrl
-			}
+				"image": evalContext.ImagePublicUrl,
+			},
 		}
 		}
 	}
 	}
 
 
@@ -97,10 +97,10 @@ func (this *TeamsNotifier) Notify(evalContext *alerting.EvalContext) error {
 		"themeColor": evalContext.GetStateModel().Color,
 		"themeColor": evalContext.GetStateModel().Color,
 		"sections": []map[string]interface{}{
 		"sections": []map[string]interface{}{
 			{
 			{
-				"title": "Details",
-				"facts": fields,
+				"title":  "Details",
+				"facts":  fields,
 				"images": images,
 				"images": images,
-				"text": message,
+				"text":   message,
 			},
 			},
 		},
 		},
 		"potentialAction": []map[string]interface{}{
 		"potentialAction": []map[string]interface{}{