Alerting: Add SaveAndApply methods to the forked Alertmanager (remote secondary) (#78827)

* Alerting: Add configuration methods to the forked Alertmanager for remote secondary modes

* update comments
This commit is contained in:
Santiago
2023-11-30 15:18:56 +01:00
committed by GitHub
parent 3311467210
commit 316c8b50bc
2 changed files with 32 additions and 4 deletions

View File

@@ -24,12 +24,14 @@ func (fam *RemoteSecondaryForkedAlertmanager) ApplyConfig(ctx context.Context, c
return nil
}
// SaveAndApplyConfig is only called on the internal Alertmanager when running in remote secondary mode.
func (fam *RemoteSecondaryForkedAlertmanager) SaveAndApplyConfig(ctx context.Context, config *apimodels.PostableUserConfig) error {
return nil
return fam.internal.SaveAndApplyConfig(ctx, config)
}
// SaveAndApplyDefaultConfig is only called on the internal Alertmanager when running in remote secondary mode.
func (fam *RemoteSecondaryForkedAlertmanager) SaveAndApplyDefaultConfig(ctx context.Context) error {
return nil
return fam.internal.SaveAndApplyDefaultConfig(ctx)
}
func (fam *RemoteSecondaryForkedAlertmanager) GetStatus() apimodels.GettableStatus {