feat(alerting): adds endpoint for getting alert states log

This commit is contained in:
bergquist
2016-04-28 10:59:46 +02:00
parent 3ecc13506c
commit 0f0fa0c257
7 changed files with 85 additions and 12 deletions
+1
View File
@@ -239,6 +239,7 @@ func Register(r *macaron.Macaron) {
r.Get("/metrics/test", GetTestMetrics)
r.Group("/alerts", func() {
r.Get("/state/:alertId", wrap(GetAlertState))
r.Put("/state/:alertId", bind(m.UpdateAlertStateCommand{}), wrap(PutAlertState))
r.Get("/changes", wrap(GetAlertChanges))
r.Get("/", wrap(GetAlerts))