mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
61cb26711e
* Alerting: post alerts to the remote Alertmanager and fetch them * fix broken tests * Alerting: Add Mimir Backend image to devenv (blocks) * add alerting as code owner for mimir_backend block * Alerting: Use Mimir image to run integration tests for the remote Alertmanager * skip integration test when running all tests * skipping integration test when no Alertmanager URL is provided * fix bad host for mimir_backend * remove basic auth testing until we have an nginx image in our CI * add integration tests for alerts * fix tests * change SendCtx -> Send, add context.Context to Send, fix CI * add reover() for functions from the Prometheus Alertmanager HTTP client that could panic * add TODO to implement PutAlerts in a way that mimicks what Prometheus does * fix log format
16 lines
581 B
Go
16 lines
581 B
Go
package notifier
|
|
|
|
import (
|
|
"context"
|
|
|
|
alertingNotify "github.com/grafana/alerting/notify"
|
|
)
|
|
|
|
func (am *alertmanager) GetAlerts(_ context.Context, active, silenced, inhibited bool, filter []string, receivers string) (alertingNotify.GettableAlerts, error) {
|
|
return am.Base.GetAlerts(active, silenced, inhibited, filter, receivers)
|
|
}
|
|
|
|
func (am *alertmanager) GetAlertGroups(_ context.Context, active, silenced, inhibited bool, filter []string, receivers string) (alertingNotify.AlertGroups, error) {
|
|
return am.Base.GetAlertGroups(active, silenced, inhibited, filter, receivers)
|
|
}
|