feat(alerting): add quiet hours to alert groups
ci / image (pull_request) Successful in 6m35s
ci / test (pull_request) Successful in 7m56s
ci / build (pull_request) Successful in 8m24s
ci / lint (pull_request) Successful in 11m55s

This commit is contained in:
Sebastian Unterschütz committed 2026-11-22 19:18:23 +01:00
1 parent bf529a7711
commit ee3769f578
21 files changed
+1310 -130

No files matched your search

+4 -1
View File
@@ -399,7 +399,10 @@ func (s *Server) buildOrgExport(ctx context.Context, p *principal) (orgExport, e
}
x.AlertGroups = []alertGroupView{}
for _, g := range alertGroups {
x.AlertGroups = append(x.AlertGroups, alertGroupView{ID: g.ID, Name: g.Name, IsDefault: g.IsDefault, ChannelIDs: g.ChannelIds})
x.AlertGroups = append(x.AlertGroups, alertGroupView{
ID: g.ID, Name: g.Name, IsDefault: g.IsDefault,
ChannelIDs: g.ChannelIds, QuietHours: decodeQuietHours(g.QuietHours),
})
}
alertAssignments, err := q.AllMonitorAlertGroups(ctx)
if err != nil {