feat: implement V2 alert center and scoped alert governance

This commit is contained in:
Yvan
2026-11-05 20:08:29 +08:00
parent f8e26c5baf
commit 999c9a6315
57 changed files with 2711 additions and 216 deletions
@@ -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)
}