Documentation ¶
Index ¶
- type AggregateSettings
- type AlertsSettings
- type AnnotationSettings
- type BitBucket
- type CI
- type Checks
- type ComparisonSettings
- type Config
- type CostSettings
- type GitHub
- type Match
- type MatchLabel
- type PrometheusConfig
- type RateSettings
- type RejectSettings
- type Repository
- type Rule
- type SeriesSettings
- type TemplateSettings
- type VectorMatchingSettings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateSettings ¶
type AlertsSettings ¶
type AnnotationSettings ¶
type ComparisonSettings ¶
type ComparisonSettings struct {
Severity string `hcl:"severity,optional"`
}
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"` Kind string `hcl:"kind,optional"` Label *MatchLabel `hcl:"label,block"` Annotation *MatchLabel `hcl:"annotation,block"` }
type MatchLabel ¶
type PrometheusConfig ¶
type RateSettings ¶
type RateSettings struct { }
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"` Aggregate []AggregateSettings `hcl:"aggregate,block"` Rate *RateSettings `hcl:"rate,block"` Annotation []AnnotationSettings `hcl:"annotation,block"` Label []AnnotationSettings `hcl:"label,block"` Series *SeriesSettings `hcl:"series,block"` Cost *CostSettings `hcl:"cost,block"` Alerts *AlertsSettings `hcl:"alerts,block"` Reject []RejectSettings `hcl:"reject,block"` Comparison *ComparisonSettings `hcl:"comparison,block"` Template *TemplateSettings `hcl:"template,block"` VectorMatching *VectorMatchingSettings `hcl:"vector_matching,block"` }
type SeriesSettings ¶
type SeriesSettings struct {
Severity string `hcl:"severity,optional"`
}
type TemplateSettings ¶
type TemplateSettings struct {
Severity string `hcl:"severity,optional"`
}
type VectorMatchingSettings ¶ added in v0.1.3
type VectorMatchingSettings struct {
Severity string `hcl:"severity,optional"`
}
Click to show internal directories.
Click to hide internal directories.