mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 18:52:04 +08:00
feat(alerting): adds api endpoints for alerts per dashboard and panel
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user