feat(api): adds endpoint for mass pausing alerts

ref #6589
This commit is contained in:
bergquist
2016-12-16 15:00:58 +01:00
parent 830bf5a91c
commit fb6aa0e026
9 changed files with 117 additions and 39 deletions
+1
View File
@@ -256,6 +256,7 @@ func Register(r *macaron.Macaron) {
r.Group("/alerts", func() {
r.Post("/test", bind(dtos.AlertTestCommand{}), wrap(AlertTest))
r.Post("/:alertId/pause", bind(dtos.PauseAlertCommand{}), wrap(PauseAlert), reqEditorRole)
r.Post("/pause", bind(dtos.PauseAlertsCommand{}), wrap(PauseAlerts), reqGrafanaAdmin)
r.Get("/:alertId", ValidateOrgAlert, wrap(GetAlert))
r.Get("/", wrap(GetAlerts))
r.Get("/states-for-dashboard", wrap(GetAlertStatesForDashboard))