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

Method GetRules

pkg/ruler/ruler.go:291–291  ·  view source on GitHub ↗

GetRules fetches rules for a particular tenant (userID).

(userID string)

Source from the content-addressed store, hash-verified

289 BackUpRuleGroups(ctx context.Context, ruleGroups map[string]rulespb.RuleGroupList)
290 // GetRules fetches rules for a particular tenant (userID).
291 GetRules(userID string) []*promRules.Group
292 // GetBackupRules fetches rules for a particular tenant (userID) that the ruler stores for backup purposes
293 GetBackupRules(userID string) rulespb.RuleGroupList
294 // Stop stops all Manager components.

Callers 12

getLocalRulesMethod · 0.65
PrometheusRulesMethod · 0.65
PrometheusAlertsMethod · 0.65
newTestRulerFunction · 0.65
TestGetRulesFunction · 0.65
TestGetRulesFromBackupFunction · 0.65
getRulesHATestFunction · 0.65
Test_LoadPartialGroupsFunction · 0.65
FromProtoFunction · 0.65
ListAllRuleGroupsMethod · 0.65

Implementers 1

DefaultMultiTenantManagerpkg/ruler/manager.go

Calls

no outgoing calls

Tested by 6

newTestRulerFunction · 0.52
TestGetRulesFunction · 0.52
TestGetRulesFromBackupFunction · 0.52
getRulesHATestFunction · 0.52
Test_LoadPartialGroupsFunction · 0.52