Alerting: Use all notifiers from alerting repository (#60655)

This commit is contained in:
Yuri Tseretyan
2022-12-22 09:27:18 -05:00
committed by GitHub
parent 542cccaecc
commit f990be58cb
28 changed files with 24 additions and 4842 deletions

View File

@@ -6,7 +6,6 @@ import (
"github.com/grafana/alerting/alerting/notifier/channels"
"github.com/grafana/grafana/pkg/components/simplejson"
ngchannels "github.com/grafana/grafana/pkg/services/ngalert/notifier/channels"
"github.com/grafana/grafana/pkg/services/ngalert/notifier/channels_config"
"github.com/grafana/grafana/pkg/setting"
)
@@ -107,7 +106,7 @@ func (e *EmbeddedContactPoint) Valid(decryptFunc channels.GetDecryptedValueFn) e
if e.Settings == nil {
return fmt.Errorf("settings should not be empty")
}
factory, exists := ngchannels.Factory(e.Type)
factory, exists := channels_config.Factory(e.Type)
if !exists {
return fmt.Errorf("unknown type '%s'", e.Type)
}