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

Method AcceptHASamples

pkg/util/validation/limits.go:660–662  ·  view source on GitHub ↗

AcceptHASamples returns whether the distributor should track and accept samples from HA replicas for this user.

(userID string)

Source from the content-addressed store, hash-verified

658
659// AcceptHASamples returns whether the distributor should track and accept samples from HA replicas for this user.
660func (o *Overrides) AcceptHASamples(userID string) bool {
661 return o.GetOverridesForUser(userID).AcceptHASamples
662}
663
664// AcceptMixedHASamples returns whether the distributor should track and accept samples from mixed HA replicas for this user.
665func (o *Overrides) AcceptMixedHASamples(userID string) bool {

Callers

nothing calls this directly

Calls 1

GetOverridesForUserMethod · 0.95

Tested by

no test coverage detected