Change grafana receiver type

This commit is contained in:
Sofia Papagiannaki committed 2021-02-18 11:20:30 +02:00
1 parent eee8f08f6f
commit 17a0bdb205
2 files changed
+7 -131

No files matched your search

+3 -2
View File
@@ -1,7 +1,7 @@
package api
import (
"github.com/grafana/grafana/pkg/services/alerting"
"github.com/grafana/grafana/pkg/models"
"github.com/prometheus/alertmanager/config"
)
@@ -48,7 +48,8 @@ type AlertingConfig struct {
Receivers []*Receiver `yaml:"receivers,omitempty" json:"receivers,omitempty"`
}
type GrafanaReceiver alerting.NotifierPlugin
//type GrafanaReceiver models.CreateAlertNotificationCommand
type GrafanaReceiver models.CreateAlertNotificationCommand
type Receiver struct {
config.Receiver