grafana/pkg/services/ngalert/state
Yuriy Tseretyan a6b1090879
Alerting: refactor scheduler and separate notification logic (#48144)
* Introduce AlertsRouter in the sender package, and move all fields and methods related to notifications out of the scheduler to this router.
* Introduce a new interface AlertsSender in the schedule package and replace calls of anonymous function `notify` inside the ruleRoutine to calling methods of that interface.
* Rename interface Scheduler in api package to ExternalAlertmanagerProvider, and replace scheduler with AlertRouter as struct that implements the interface.
2022-07-12 15:13:04 -04:00
..
cache.go Alerting: Keep private annotations across evaluations (#49080) 2022-05-18 11:21:18 +02:00
manager_private_test.go Alerting: State manager to use clock (#51219) 2022-06-22 12:18:42 -04:00
manager_test.go Alerting: State manager to use clock (#51219) 2022-06-22 12:18:42 -04:00
manager.go Alerting: refactor scheduler and separate notification logic (#48144) 2022-07-12 15:13:04 -04:00
state_test.go Alerting: Add a general screenshot service and alerting-specific image service. (#49293) 2022-05-22 22:33:49 +08:00
state.go Alerting: Add stored screenshot utilities to the channels package. (#49470) 2022-05-26 13:29:56 +08:00
template_test.go Chore: Remove context.TODO (#43458) 2021-12-28 10:26:18 +01:00
template.go Chore: Remove context.TODO (#43458) 2021-12-28 10:26:18 +01:00