Alerting: use alerting GrafanaReceiver and BuildReceiverConfiguration in Grafana (#65224)

* replace receiver errors with one from alerting
* add the converter to alerting models
* update buildReceiverIntegration to accept GrafanaReceiver
---------

Co-authored-by: George Robinson <george.robinson@grafana.com>
This commit is contained in:
Yuri Tseretyan
2023-04-13 12:25:32 -04:00
committed by GitHub
co-authored by George Robinson
parent e5e0a1cbbf
commit afd52d0866
10 changed files with 209 additions and 90 deletions
+1 -1
View File
@@ -406,7 +406,7 @@ func statusForTestReceivers(v []notifier.TestReceiverResult) int {
for _, next := range receiver.Configs {
if next.Error != nil {
var (
invalidReceiverErr notifier.InvalidReceiverError
invalidReceiverErr alertingNotify.InvalidReceiverError
receiverTimeoutErr alertingNotify.ReceiverTimeoutError
)
if errors.As(next.Error, &invalidReceiverErr) {