Alerting: Introduce state manager config structure (#61249)
This commit is contained in:
@@ -209,7 +209,15 @@ func (ng *AlertNG) init() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
stateManager := state.NewManager(ng.Metrics.GetStateMetrics(), appUrl, store, ng.imageService, clk, history)
|
||||
cfg := state.ManagerCfg{
|
||||
Metrics: ng.Metrics.GetStateMetrics(),
|
||||
ExternalURL: appUrl,
|
||||
InstanceStore: store,
|
||||
Images: ng.imageService,
|
||||
Clock: clk,
|
||||
Historian: history,
|
||||
}
|
||||
stateManager := state.NewManager(cfg)
|
||||
scheduler := schedule.NewScheduler(schedCfg, stateManager)
|
||||
|
||||
// if it is required to include folder title to the alerts, we need to subscribe to changes of alert title
|
||||
|
||||
Reference in New Issue
Block a user