Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateSettings ¶
type AlertsSettings ¶
type AnnotationSettings ¶
type Config ¶
type Config struct {
CI *CI `hcl:"ci,block"`
Repository *Repository `hcl:"repository,block"`
Prometheus []PrometheusConfig `hcl:"prometheus,block"`
Checks *Checks `hcl:"checks,block"`
Rules []Rule `hcl:"rule,block"`
}
func (Config) GetChecksForRule ¶
func (*Config) SetDisabledChecks ¶
type CostSettings ¶
type Match ¶
type Match struct {
Path string `hcl:"path,optional"`
Name string `hcl:"name,optional"`
Kind string `hcl:"kind,optional"`
Label *MatchLabel `hcl:"label,block"`
Annotation *MatchLabel `hcl:"annotation,block"`
}
type MatchLabel ¶
type PrometheusConfig ¶
type RejectSettings ¶
type RejectSettings struct {
Regex string `hcl:",label"`
LabelKeys bool `hcl:"label_keys,optional"`
LabelValues bool `hcl:"label_values,optional"`
AnnotationKeys bool `hcl:"annotation_keys,optional"`
AnnotationValues bool `hcl:"annotation_values,optional"`
Severity string `hcl:"severity,optional"`
}
type Repository ¶
type Rule ¶
type Rule struct {
Match *Match `hcl:"match,block"`
Ignore *Match `hcl:"ignore,block"`
Aggregate []AggregateSettings `hcl:"aggregate,block"`
Annotation []AnnotationSettings `hcl:"annotation,block"`
Label []AnnotationSettings `hcl:"label,block"`
Cost *CostSettings `hcl:"cost,block"`
Alerts *AlertsSettings `hcl:"alerts,block"`
Reject []RejectSettings `hcl:"reject,block"`
}
Click to show internal directories.
Click to hide internal directories.