AlertingNG: remove warn/crit from eval prototype (#28334)

and misc cleanup
This commit is contained in:
Kyle Brandt
2020-10-16 12:33:57 -04:00
committed by GitHub
parent 4c8e4f35d1
commit 44a795cb17
4 changed files with 54 additions and 46 deletions

View File

@ -355,7 +355,7 @@ func (hs *HTTPServer) registerRoutes() {
if hs.Cfg.IsNgAlertEnabled() {
apiRoute.Group("/alert-definitions", func(alertDefinitions routing.RouteRegister) {
alertDefinitions.Get("/eval/:dashboardID/:panelID/:refID", reqEditorRole, Wrap(hs.AlertDefinitionEval))
alertDefinitions.Post("/eval", reqEditorRole, bind(dtos.EvalAlertConditionsCommand{}), Wrap(hs.ConditionsEval))
alertDefinitions.Post("/eval", reqEditorRole, bind(dtos.EvalAlertConditionCommand{}), Wrap(hs.ConditionEval))
})
}