Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KnownValidators ¶
func KnownValidators(scope config.ValidationScope, validatorNames []string) error
Types ¶
type MetricWithVectorSelector ¶
type MetricWithVectorSelector struct { VectorSelector *parser.VectorSelector Name string }
MetricWithVectorSelector is a struct that contains a metric name and a vector selector where it is used, to give a context, in the error messages.
type SourceTenantMetrics ¶
type Validator ¶
type Validator interface { fmt.Stringer Validate(group unmarshaler.RuleGroup, rule rulefmt.Rule, prometheusClient *prometheus.Client) []error }
func NewFromConfig ¶
func NewFromConfig(scope config.ValidationScope, validatorConfig config.ValidatorConfig) (Validator, error)
Click to show internal directories.
Click to hide internal directories.