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

Method GetRulesConfig

pkg/configs/db/timed.go:86–95  ·  view source on GitHub ↗
(ctx context.Context, userID string)

Source from the content-addressed store, hash-verified

84}
85
86func (t timed) GetRulesConfig(ctx context.Context, userID string) (userconfig.VersionedRulesConfig, error) {
87 var cfg userconfig.VersionedRulesConfig
88 err := instrument.CollectedRequest(ctx, "DB.GetRulesConfig", databaseRequestDuration, instrument.ErrorCode, func(ctx context.Context) error {
89 var err error
90 cfg, err = t.d.GetRulesConfig(ctx, userID)
91 return err
92 })
93
94 return cfg, err
95}
96
97func (t timed) SetRulesConfig(ctx context.Context, userID string, oldCfg, newCfg userconfig.RulesConfig) (bool, error) {
98 var updated bool

Callers

nothing calls this directly

Calls 1

GetRulesConfigMethod · 0.65

Tested by

no test coverage detected