feat(alerting): progress on testing alerts

This commit is contained in:
Torkel Ödegaard
2016-07-21 10:29:11 +02:00
parent fb636344a6
commit 9e91aacd34
10 changed files with 78 additions and 24 deletions

View File

@ -246,7 +246,7 @@ func Register(r *macaron.Macaron) {
r.Get("/metrics", wrap(GetInternalMetrics))
r.Group("/alerts", func() {
r.Post("/test", bind(dtos.TestAlertRuleCommand{}), wrap(TestAlertRule))
r.Post("/test", bind(dtos.AlertTestCommand{}), wrap(AlertTest))
r.Get("/:alertId/states", wrap(GetAlertStates))
//r.Put("/:alertId/state", bind(m.UpdateAlertStateCommand{}), wrap(PutAlertState))
r.Get("/:alertId", ValidateOrgAlert, wrap(GetAlert))