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

Method GetRulesConfig

pkg/configs/db/traced.go:57–60  ·  view source on GitHub ↗
(ctx context.Context, userID string)

Source from the content-addressed store, hash-verified

55}
56
57func (t traced) GetRulesConfig(ctx context.Context, userID string) (cfg userconfig.VersionedRulesConfig, err error) {
58 defer func() { t.trace("GetRulesConfig", userID, cfg, err) }()
59 return t.d.GetRulesConfig(ctx, userID)
60}
61
62func (t traced) SetRulesConfig(ctx context.Context, userID string, oldCfg, newCfg userconfig.RulesConfig) (updated bool, err error) {
63 defer func() { t.trace("SetRulesConfig", userID, oldCfg, newCfg, updated, err) }()

Callers

nothing calls this directly

Calls 2

traceMethod · 0.95
GetRulesConfigMethod · 0.65

Tested by

no test coverage detected