grafana/pkg/services/ngalert/sender
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
..
router.go Alerting: refactor scheduler and separate notification logic (#48144) 2022-07-12 15:13:04 -04:00
sender.go Alerting: refactor scheduler and separate notification logic (#48144) 2022-07-12 15:13:04 -04:00