mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Alerting: Use `alerting.GrafanaAlertmanager` instead of initialising Alertmanager components directly
22 lines
561 B
Go
22 lines
561 B
Go
package notifier
|
|
|
|
import (
|
|
"github.com/grafana/alerting/alerting"
|
|
)
|
|
|
|
func (am *Alertmanager) ListSilences(filter []string) (alerting.GettableSilences, error) {
|
|
return am.Base.ListSilences(filter)
|
|
}
|
|
|
|
func (am *Alertmanager) GetSilence(silenceID string) (alerting.GettableSilence, error) {
|
|
return am.Base.GetSilence(silenceID)
|
|
}
|
|
|
|
func (am *Alertmanager) CreateSilence(ps *alerting.PostableSilence) (string, error) {
|
|
return am.Base.CreateSilence(ps)
|
|
}
|
|
|
|
func (am *Alertmanager) DeleteSilence(silenceID string) error {
|
|
return am.Base.DeleteSilence(silenceID)
|
|
}
|