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

Method GetVersionedRulesConfig

pkg/configs/userconfig/config.go:196–205  ·  view source on GitHub ↗

GetVersionedRulesConfig specializes the view to just the rules config.

()

Source from the content-addressed store, hash-verified

194
195// GetVersionedRulesConfig specializes the view to just the rules config.
196func (v View) GetVersionedRulesConfig() *VersionedRulesConfig {
197 if v.Config.RulesConfig.Files == nil {
198 return nil
199 }
200 return &VersionedRulesConfig{
201 ID: v.ID,
202 Config: v.Config.RulesConfig,
203 DeletedAt: v.DeletedAt,
204 }
205}
206
207// RulesConfig is the rules configuration for a particular organization.
208type RulesConfig struct {

Callers 5

GetRulesMethod · 0.80
GetRulesConfigMethod · 0.80
GetRulesConfigMethod · 0.80
GetAllRulesConfigsMethod · 0.80
GetRulesConfigsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected