feat(alerting): add monitor alert groups with default routing

This commit is contained in:
Sebastian Unterschütz committed 2026-11-22 18:25:36 +01:00
1 parent 52819e64bb
commit 8544e5a585
26 files changed
+2938 -1473

No files matched your search

+4
View File
@@ -190,6 +190,10 @@ func (s *Server) Mount(r gin.IRouter) {
org.GET("/incidents", can(authz.IncidentsRead), s.listIncidents)
org.GET("/audit", can(authz.AuditRead), s.listOrgAudit)
org.GET("/alert-groups", can(authz.NotificationsRead), s.listAlertGroups)
org.POST("/alert-groups", can(authz.NotificationsWrite), s.saveAlertGroup)
org.PUT("/alert-groups/:id", can(authz.NotificationsWrite), s.saveAlertGroup)
org.DELETE("/alert-groups/:id", can(authz.NotificationsWrite), s.deleteAlertGroup)
org.GET("/channels", can(authz.NotificationsRead), s.listChannels)
org.POST("/channels", can(authz.NotificationsWrite), s.createChannel)
org.PUT("/channels/:id", can(authz.NotificationsWrite), s.updateChannel)