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
14 lines
506 B
Go
14 lines
506 B
Go
package notifier
|
|
|
|
import (
|
|
"github.com/grafana/alerting/alerting"
|
|
)
|
|
|
|
func (am *Alertmanager) GetAlerts(active, silenced, inhibited bool, filter []string, receivers string) (alerting.GettableAlerts, error) {
|
|
return am.Base.GetAlerts(active, silenced, inhibited, filter, receivers)
|
|
}
|
|
|
|
func (am *Alertmanager) GetAlertGroups(active, silenced, inhibited bool, filter []string, receivers string) (alerting.AlertGroups, error) {
|
|
return am.Base.GetAlertGroups(active, silenced, inhibited, filter, receivers)
|
|
}
|