Skip to content

Commit c2771c7

Browse files
committed
Add ReadFullState call to alertmanager gRPC interface.
Signed-off-by: Steve Simpson <[email protected]>
1 parent 9bc4287 commit c2771c7

File tree

6 files changed

+665
-51
lines changed

6 files changed

+665
-51
lines changed

pkg/alertmanager/alertmanager.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@ func (am *Alertmanager) mergePartialExternalState(part *clusterpb.Part) error {
372372
return am.state.(*state).MergePartialState(part)
373373
}
374374

375+
func (am *Alertmanager) getFullState() (*clusterpb.FullState, error) {
376+
return am.state.(*state).GetFullState()
377+
}
378+
375379
// buildIntegrationsMap builds a map of name to the list of integration notifiers off of a
376380
// list of receiver config.
377381
func buildIntegrationsMap(nc []*config.Receiver, tmpl *template.Template, logger log.Logger) (map[string][]notify.Integration, error) {

0 commit comments

Comments
 (0)