feat: implement V2 alert center and scoped alert governance
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"kra/internal/server/handler"
|
||||
)
|
||||
|
||||
func RegisterAlertGovernance(private *gin.RouterGroup, h *handler.AlertGovernance) {
|
||||
private.GET("/sw/alertRule/gap", h.Gap)
|
||||
private.PUT("/sw/alertRule/gap", h.SaveGap)
|
||||
private.GET("/sw/alertExemption/list", h.List)
|
||||
private.GET("/sw/alertExemption/candidates", h.Candidates)
|
||||
private.POST("/sw/alertExemption/add", h.Add)
|
||||
private.PUT("/sw/alertExemption/remove/:id", h.Remove)
|
||||
}
|
||||
Reference in New Issue
Block a user