Update alerting/provider/mattermost/mattermost.go : fix indent
Co-authored-by: Chris C. <twin@twinnation.org>
This commit is contained in:
parent
b20e2789e1
commit
37dc52f560
@ -43,31 +43,31 @@ func (provider *AlertProvider) ToCustomAlertProvider(service *core.Service, aler
|
|||||||
Method: "POST",
|
Method: "POST",
|
||||||
Insecure: provider.Insecure,
|
Insecure: provider.Insecure,
|
||||||
Body: fmt.Sprintf(`{
|
Body: fmt.Sprintf(`{
|
||||||
"text": "",
|
"text": "",
|
||||||
"username": "gatus",
|
"username": "gatus",
|
||||||
"icon_url": "https://raw.githubusercontent.com/TwinProduction/gatus/master/static/logo.png",
|
"icon_url": "https://raw.githubusercontent.com/TwinProduction/gatus/master/static/logo.png",
|
||||||
"attachments": [
|
"attachments": [
|
||||||
{
|
{
|
||||||
"title": ":rescue_worker_helmet: Gatus",
|
"title": ":rescue_worker_helmet: Gatus",
|
||||||
"fallback": "Gatus - %s",
|
"fallback": "Gatus - %s",
|
||||||
"text": "%s:\n> %s",
|
"text": "%s:\n> %s",
|
||||||
"short": false,
|
"short": false,
|
||||||
"color": "%s",
|
"color": "%s",
|
||||||
"fields": [
|
"fields": [
|
||||||
{
|
{
|
||||||
"title": "URL",
|
"title": "URL",
|
||||||
"value": "%s",
|
"value": "%s",
|
||||||
"short": false
|
"short": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title": "Condition results",
|
"title": "Condition results",
|
||||||
"value": "%s",
|
"value": "%s",
|
||||||
"short": false
|
"short": false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}`, message, message, alert.Description, color, service.URL, results),
|
}`, message, message, alert.Description, color, service.URL, results),
|
||||||
Headers: map[string]string{"Content-Type": "application/json"},
|
Headers: map[string]string{"Content-Type": "application/json"},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user