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

Method SetRulesConfig

pkg/configs/db/traced.go:62–65  ·  view source on GitHub ↗
(ctx context.Context, userID string, oldCfg, newCfg userconfig.RulesConfig)

Source from the content-addressed store, hash-verified

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) }()
64 return t.d.SetRulesConfig(ctx, userID, oldCfg, newCfg)
65}
66
67func (t traced) GetAllRulesConfigs(ctx context.Context) (cfgs map[string]userconfig.VersionedRulesConfig, err error) {
68 defer func() { t.trace("GetAllRulesConfigs", cfgs, err) }()

Callers

nothing calls this directly

Calls 2

traceMethod · 0.95
SetRulesConfigMethod · 0.65

Tested by

no test coverage detected