mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 22:02:22 +08:00
feat(alerting): add api endpoints for listing alerts
This commit is contained in:
@ -236,6 +236,11 @@ func Register(r *macaron.Macaron) {
|
||||
// metrics
|
||||
r.Get("/metrics/test", GetTestMetrics)
|
||||
|
||||
r.Group("/alert_rule", func() {
|
||||
r.Get("/", wrap(GetAlerts))
|
||||
r.Get("/:id", ValidateOrgAlert, wrap(GetAlert))
|
||||
})
|
||||
|
||||
}, reqSignedIn)
|
||||
|
||||
// admin api
|
||||
|
Reference in New Issue
Block a user