feat(alerting): began work on testing alert rule from UI without having to save it

This commit is contained in:
Torkel Ödegaard
2016-07-20 16:13:36 +02:00
parent 0ce55600bb
commit fb636344a6
4 changed files with 90 additions and 1 deletions

View File

@ -246,6 +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.Get("/:alertId/states", wrap(GetAlertStates))
//r.Put("/:alertId/state", bind(m.UpdateAlertStateCommand{}), wrap(PutAlertState))
r.Get("/:alertId", ValidateOrgAlert, wrap(GetAlert))