mirror of
https://github.com/grafana/grafana.git
synced 2025-02-12 00:25:46 -06:00
* add alerting prefix to some packages from alerting that have similar names in prometheus alertmanager
22 lines
592 B
Go
22 lines
592 B
Go
package notifier
|
|
|
|
import (
|
|
alertingNotify "github.com/grafana/alerting/notify"
|
|
)
|
|
|
|
func (am *Alertmanager) ListSilences(filter []string) (alertingNotify.GettableSilences, error) {
|
|
return am.Base.ListSilences(filter)
|
|
}
|
|
|
|
func (am *Alertmanager) GetSilence(silenceID string) (alertingNotify.GettableSilence, error) {
|
|
return am.Base.GetSilence(silenceID)
|
|
}
|
|
|
|
func (am *Alertmanager) CreateSilence(ps *alertingNotify.PostableSilence) (string, error) {
|
|
return am.Base.CreateSilence(ps)
|
|
}
|
|
|
|
func (am *Alertmanager) DeleteSilence(silenceID string) error {
|
|
return am.Base.DeleteSilence(silenceID)
|
|
}
|