Alerting: Move the unified alerting settings to its own struct (#39350)

This commit is contained in:
gotjosh
2021-09-20 08:12:21 +01:00
committed by GitHub
parent f3002931f4
commit 2ad82b9354
7 changed files with 47 additions and 42 deletions

View File

@@ -419,14 +419,7 @@ type Cfg struct {
GeomapEnableCustomBaseLayers bool
// Unified Alerting
AdminConfigPollInterval time.Duration
AlertmanagerConfigPollInterval time.Duration
HAListenAddr string
HAAdvertiseAddr string
HAPeers []string
HAPeerTimeout time.Duration
HAGossipInterval time.Duration
HAPushPullInterval time.Duration
UnifiedAlerting UnifiedAlertingSettings
}
// IsLiveConfigEnabled returns true if live should be able to save configs to SQL tables