MCPcopy Index your code
hub / github.com/cortexproject/cortex / GetOverridesForUser

Method GetOverridesForUser

pkg/util/validation/limits.go:1166–1174  ·  view source on GitHub ↗

GetOverridesForUser returns the per-tenant limits with overrides.

(userID string)

Source from the content-addressed store, hash-verified

1164
1165// GetOverridesForUser returns the per-tenant limits with overrides.
1166func (o *Overrides) GetOverridesForUser(userID string) *Limits {
1167 if o.tenantLimits != nil {
1168 l := o.tenantLimits.ByUserID(userID)
1169 if l != nil {
1170 return l
1171 }
1172 }
1173 return o.defaultLimits
1174}
1175
1176// SmallestPositiveIntPerTenant is returning the minimal positive value of the
1177// supplied limit function for all given tenants.

Callers 15

IngestionRateMethod · 0.95
IngestionBurstSizeMethod · 0.95
AcceptHASamplesMethod · 0.95
AcceptMixedHASamplesMethod · 0.95
HAClusterLabelMethod · 0.95
HAReplicaLabelMethod · 0.95
DropLabelsMethod · 0.95
MaxLabelNameLengthMethod · 0.95
MaxLabelValueLengthMethod · 0.95

Calls 1

ByUserIDMethod · 0.65

Tested by

no test coverage detected