From 37dc52f560ebbf9914542b0c43bd821bdf5c469c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zied=20Za=C3=AFem?= Date: Sat, 14 Nov 2020 23:16:14 +0100 Subject: [PATCH] Update alerting/provider/mattermost/mattermost.go : fix indent Co-authored-by: Chris C. --- alerting/provider/mattermost/mattermost.go | 50 +++++++++++----------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/alerting/provider/mattermost/mattermost.go b/alerting/provider/mattermost/mattermost.go index a9e5e165..49db2f82 100644 --- a/alerting/provider/mattermost/mattermost.go +++ b/alerting/provider/mattermost/mattermost.go @@ -43,31 +43,31 @@ func (provider *AlertProvider) ToCustomAlertProvider(service *core.Service, aler Method: "POST", Insecure: provider.Insecure, Body: fmt.Sprintf(`{ - "text": "", - "username": "gatus", - "icon_url": "https://raw.githubusercontent.com/TwinProduction/gatus/master/static/logo.png", - "attachments": [ - { - "title": ":rescue_worker_helmet: Gatus", - "fallback": "Gatus - %s", - "text": "%s:\n> %s", - "short": false, - "color": "%s", - "fields": [ - { - "title": "URL", - "value": "%s", - "short": false - }, - { - "title": "Condition results", - "value": "%s", - "short": false - } - ] - } - ] - }`, message, message, alert.Description, color, service.URL, results), + "text": "", + "username": "gatus", + "icon_url": "https://raw.githubusercontent.com/TwinProduction/gatus/master/static/logo.png", + "attachments": [ + { + "title": ":rescue_worker_helmet: Gatus", + "fallback": "Gatus - %s", + "text": "%s:\n> %s", + "short": false, + "color": "%s", + "fields": [ + { + "title": "URL", + "value": "%s", + "short": false + }, + { + "title": "Condition results", + "value": "%s", + "short": false + } + ] + } + ] +}`, message, message, alert.Description, color, service.URL, results), Headers: map[string]string{"Content-Type": "application/json"}, } }