feat(alerting): adds api endpoints for alerts per dashboard and panel

This commit is contained in:
bergquist
2016-04-28 15:13:42 +02:00
parent 1f414c1372
commit f442adca47
9 changed files with 95 additions and 34 deletions

View File

@ -246,6 +246,9 @@ func Register(r *macaron.Macaron) {
r.Get("/:id", ValidateOrgAlert, wrap(GetAlert))
})
r.Get("/alerts-dashboard/:dashboardId", wrap(GetAlertsForDashboard))
r.Get("/alerts-dashboard/:dashboardId/:panelId", wrap(GetAlertsForPanel))
}, reqSignedIn)
// admin api