Alerting: button to test contact point (#37475)

This commit is contained in:
Domas
2021-08-18 10:16:35 +03:00
committed by GitHub
parent a160930e24
commit cb9912ec0a
12 changed files with 176 additions and 10 deletions

View File

@@ -63,12 +63,11 @@ func (am *Alertmanager) TestReceivers(ctx context.Context, c apimodels.TestRecei
testAlert := &types.Alert{
Alert: model.Alert{
Labels: model.LabelSet{
model.LabelName("alertname"): "TestAlertAlwaysFiring",
model.LabelName("alertname"): "TestAlert",
model.LabelName("instance"): "Grafana",
},
Annotations: model.LabelSet{
model.LabelName("summary"): "TestAlertAlwaysFiring",
model.LabelName("description"): "This is a test alert from Grafana",
model.LabelName("summary"): "Notification test",
},
StartsAt: now,
},