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

+3 -2
View File
@@ -61,7 +61,8 @@ func (s *Server) evaluateResults(ctx context.Context, region string, results []a
}
// transition opens or resolves the monitor's incident and queues a
// notification for every enabled channel of the org, in one transaction.
// notification for every enabled channel assigned to the monitor, in one
// transaction.
func (s *Server) transition(ctx context.Context, m store.MonitorsForResultsRow, t evaluate.Transition, at time.Time) error {
return s.db.Tx(ctx, tenant.Org(m.OrgID, uuid.Nil), func(q *store.Queries) error {
var (
@@ -96,7 +97,7 @@ func (s *Server) transition(ctx context.Context, m store.MonitorsForResultsRow,
if err != nil {
return err
}
channels, err := q.ListEnabledChannelIDs(ctx, m.OrgID)
channels, err := q.MonitorChannelIDs(ctx, m.ID)
if err != nil {
return err
}