feat(alerting): add api endpoint for alert state
This commit is contained in:
+2
-1
@@ -238,7 +238,8 @@ func Register(r *macaron.Macaron) {
|
||||
// metrics
|
||||
r.Get("/metrics/test", GetTestMetrics)
|
||||
|
||||
r.Group("/alert_rule", func() {
|
||||
r.Group("/alerts", func() {
|
||||
r.Put("/state/:alertId", bind(m.UpdateAlertStateCommand{}), wrap(PutAlertState))
|
||||
r.Get("/changes", wrap(GetAlertChanges))
|
||||
r.Get("/", wrap(GetAlerts))
|
||||
r.Get("/:id", ValidateOrgAlert, wrap(GetAlert))
|
||||
|
||||
Reference in New Issue
Block a user