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

Method GetRulesConfigs

pkg/configs/db/timed.go:119–128  ·  view source on GitHub ↗
(ctx context.Context, since userconfig.ID)

Source from the content-addressed store, hash-verified

117}
118
119func (t timed) GetRulesConfigs(ctx context.Context, since userconfig.ID) (map[string]userconfig.VersionedRulesConfig, error) {
120 var cfgs map[string]userconfig.VersionedRulesConfig
121 err := instrument.CollectedRequest(ctx, "DB.GetRulesConfigs", databaseRequestDuration, instrument.ErrorCode, func(ctx context.Context) error {
122 var err error
123 cfgs, err = t.d.GetRulesConfigs(ctx, since)
124 return err
125 })
126
127 return cfgs, err
128}

Callers

nothing calls this directly

Calls 1

GetRulesConfigsMethod · 0.65

Tested by

no test coverage detected