MCPcopy Create free account
hub / github.com/cortexproject/cortex / AddState

Method AddState

pkg/alertmanager/alertmanager.go:153–153  ·  view source on GitHub ↗
(string, cluster.State, prometheus.Registerer)

Source from the content-addressed store, hash-verified

151// State helps with replication and synchronization of notifications and silences across several alertmanager replicas.
152type State interface {
153 AddState(string, cluster.State, prometheus.Registerer) cluster.ClusterChannel
154 Position() int
155 WaitReady(context.Context) error
156}

Callers 4

TestStateReplicationFunction · 0.65
NewFunction · 0.65

Implementers 2

statepkg/alertmanager/state_replication.go
NilPeerpkg/alertmanager/alertmanager.go

Calls

no outgoing calls

Tested by 3

TestStateReplicationFunction · 0.52