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" json:"ci,omitempty"` Repository *Repository `hcl:"repository,block" json:"repository,omitempty"` Prometheus []PrometheusConfig `hcl:"prometheus,block" json:"prometheus,omitempty"` Checks *Checks `hcl:"checks,block" json:"checks,omitempty"` Rules []Rule `hcl:"rule,block" json:"rules,omitempty"` }
func (Config) GetChecksForRule ¶
func (*Config) SetDisabledChecks ¶
type CostSettings ¶
type Match ¶
type Match struct { Path string `hcl:"path,optional" json:"path,omitempty"` Name string `hcl:"name,optional" json:"name,omitempty"` Kind string `hcl:"kind,optional" json:"kind,omitempty"` Label *MatchLabel `hcl:"label,block" json:"label,omitempty"` Annotation *MatchLabel `hcl:"annotation,block" json:"annotation,omitempty"` }
type MatchLabel ¶
type PrometheusConfig ¶
type RejectSettings ¶
type RejectSettings struct { Regex string `hcl:",label" json:"key,omitempty"` LabelKeys bool `hcl:"label_keys,optional" json:"label_keys,omitempty"` LabelValues bool `hcl:"label_values,optional" json:"label_values,omitempty"` AnnotationKeys bool `hcl:"annotation_keys,optional" json:"annotation_keys,omitempty"` AnnotationValues bool `hcl:"annotation_values,optional" json:"annotation_values,omitempty"` Severity string `hcl:"severity,optional" json:"severity,omitempty"` }
type Repository ¶
type Rule ¶
type Rule struct { Match *Match `hcl:"match,block" json:"match,omitempty"` Ignore *Match `hcl:"ignore,block" json:"ignore,omitempty"` Aggregate []AggregateSettings `hcl:"aggregate,block" json:"aggregate,omitempty"` Annotation []AnnotationSettings `hcl:"annotation,block" json:"annotation,omitempty"` Label []AnnotationSettings `hcl:"label,block" json:"label,omitempty"` Cost *CostSettings `hcl:"cost,block" json:"cost,omitempty"` Alerts *AlertsSettings `hcl:"alerts,block" json:"alerts,omitempty"` Reject []RejectSettings `hcl:"reject,block" json:"reject,omitempty"` }
Click to show internal directories.
Click to hide internal directories.