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