2021-03-24 09:20:44 -05:00
|
|
|
package notifier
|
2021-03-31 06:36:36 -05:00
|
|
|
|
|
|
|
import (
|
2023-10-02 05:36:11 -05:00
|
|
|
"context"
|
|
|
|
|
2023-02-03 10:36:49 -06:00
|
|
|
alertingNotify "github.com/grafana/alerting/notify"
|
2021-03-31 06:36:36 -05:00
|
|
|
)
|
|
|
|
|
2023-10-02 05:36:11 -05:00
|
|
|
func (am *alertmanager) ListSilences(_ context.Context, filter []string) (alertingNotify.GettableSilences, error) {
|
2023-01-13 10:54:38 -06:00
|
|
|
return am.Base.ListSilences(filter)
|
2021-03-31 06:36:36 -05:00
|
|
|
}
|
|
|
|
|
2023-10-02 05:36:11 -05:00
|
|
|
func (am *alertmanager) GetSilence(_ context.Context, silenceID string) (alertingNotify.GettableSilence, error) {
|
2023-01-13 10:54:38 -06:00
|
|
|
return am.Base.GetSilence(silenceID)
|
2021-03-31 06:36:36 -05:00
|
|
|
}
|
|
|
|
|
2023-10-02 05:36:11 -05:00
|
|
|
func (am *alertmanager) CreateSilence(_ context.Context, ps *alertingNotify.PostableSilence) (string, error) {
|
2023-01-13 10:54:38 -06:00
|
|
|
return am.Base.CreateSilence(ps)
|
2021-03-31 06:36:36 -05:00
|
|
|
}
|
|
|
|
|
2023-10-02 05:36:11 -05:00
|
|
|
func (am *alertmanager) DeleteSilence(_ context.Context, silenceID string) error {
|
2023-01-13 10:54:38 -06:00
|
|
|
return am.Base.DeleteSilence(silenceID)
|
2021-03-31 06:36:36 -05:00
|
|
|
}
|