feat(alerting): add quiet hours to alert groups
This commit is contained in:
1 parent
bf529a7711
commit
ee3769f578
21 files changed
+1310
-130
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user