feat(alerting): add alert history api endpoint

ref #5850
This commit is contained in:
bergquist
2016-08-30 09:32:56 +02:00
parent 1f1d232ea6
commit 650a87dc05
5 changed files with 92 additions and 2 deletions

View File

@ -250,11 +250,12 @@ func Register(r *macaron.Macaron) {
r.Group("/alerts", func() {
r.Post("/test", bind(dtos.AlertTestCommand{}), wrap(AlertTest))
//r.Get("/:alertId/states", wrap(GetAlertStates))
r.Get("/:alertId", ValidateOrgAlert, wrap(GetAlert))
r.Get("/", wrap(GetAlerts))
})
r.Get("/alert-history/:alertId", ValidateOrgAlert, wrap(GetAlertHistory))
r.Get("/alert-notifications", wrap(GetAlertNotifications))
r.Group("/alert-notifications", func() {