Alerting frontend : fix line notifier (#37744)

- Fixes #37425
- change `line` type string to uppercase
This commit is contained in:
SLAMA
2021-08-10 18:59:53 +01:00
committed by GitHub
parent 1da779103e
commit 5986d99f51
2 changed files with 3 additions and 3 deletions
@@ -475,7 +475,7 @@ func (am *Alertmanager) buildReceiverIntegrations(receiver *apimodels.PostableAp
n, err = channels.NewDiscordNotifier(cfg, tmpl)
case "googlechat":
n, err = channels.NewGoogleChatNotifier(cfg, tmpl)
case "line":
case "LINE":
n, err = channels.NewLineNotifier(cfg, tmpl)
case "threema":
n, err = channels.NewThreemaNotifier(cfg, tmpl)
@@ -723,7 +723,7 @@ const alertmanagerConfig = `
"grafana_managed_receiver_configs": [
{
"name": "line_test",
"type": "line",
"type": "LINE",
"settings": {},
"secureSettings": {
"token": "mysecrettoken"
@@ -1217,7 +1217,7 @@ var expAlertmanagerConfigFromAPI = `
{
"uid": "",
"name": "line_test",
"type": "line",
"type": "LINE",
"disableResolveMessage": false,
"settings": {},
"secureFields": {