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

Method BackUpRuleGroups

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

BackUpRuleGroups is used to store backups of rule groups owned by a different ruler instance.

(ctx context.Context, ruleGroups map[string]rulespb.RuleGroupList)

Source from the content-addressed store, hash-verified

287 SyncRuleGroups(ctx context.Context, ruleGroups map[string]rulespb.RuleGroupList)
288 // BackUpRuleGroups is used to store backups of rule groups owned by a different ruler instance.
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

Callers 1

syncRulesMethod · 0.65

Implementers 1

DefaultMultiTenantManagerpkg/ruler/manager.go

Calls

no outgoing calls

Tested by

no test coverage detected