diff --git a/pkg/services/ngalert/notifier/alertmanager.go b/pkg/services/ngalert/notifier/alertmanager.go index afd395c71cf..f68cb3a8b6a 100644 --- a/pkg/services/ngalert/notifier/alertmanager.go +++ b/pkg/services/ngalert/notifier/alertmanager.go @@ -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) diff --git a/pkg/tests/api/alerting/api_notification_channel_test.go b/pkg/tests/api/alerting/api_notification_channel_test.go index c7d9e59dc35..ee0c898af1f 100644 --- a/pkg/tests/api/alerting/api_notification_channel_test.go +++ b/pkg/tests/api/alerting/api_notification_channel_test.go @@ -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": {