Alerting: Introduce state manager config structure (#61249)

This commit is contained in:
Yuri Tseretyan
2023-01-10 16:26:15 -05:00
committed by GitHub
parent bc3ce5760b
commit 86b5fbbf60
5 changed files with 108 additions and 18 deletions

View File

@@ -45,7 +45,15 @@ func NewEngine(appUrl *url.URL, evalFactory eval.EvaluatorFactory) *Engine {
return &Engine{
evalFactory: evalFactory,
createStateManager: func() stateManager {
return state.NewManager(nil, appUrl, nil, &NoopImageService{}, clock.New(), nil)
cfg := state.ManagerCfg{
Metrics: nil,
ExternalURL: appUrl,
InstanceStore: nil,
Images: &NoopImageService{},
Clock: clock.New(),
Historian: nil,
}
return state.NewManager(cfg)
},
}
}