Documentation ¶
Index ¶
Constants ¶
View Source
const (
AlertsCheckName = "alerts/count"
)
View Source
const (
AnnotationCheckName = "alerts/annotation"
)
View Source
const (
ByCheckName = "promql/by"
)
View Source
const (
ComparisonCheckName = "promql/comparison"
)
View Source
const (
CostCheckName = "query/cost"
)
View Source
const (
LabelCheckName = "rule/label"
)
View Source
const (
RateCheckName = "promql/rate"
)
View Source
const (
RejectCheckName = "rule/reject"
)
View Source
const (
SeriesCheckName = "query/series"
)
View Source
const (
SyntaxCheckName = "promql/syntax"
)
View Source
const (
TemplateCheckName = "alerts/template"
)
View Source
const (
WithoutCheckName = "promql/without"
)
Variables ¶
View Source
var ( CheckNames = []string{ AlertsCheckName, ComparisonCheckName, AnnotationCheckName, ByCheckName, CostCheckName, LabelCheckName, RateCheckName, SeriesCheckName, SyntaxCheckName, WithoutCheckName, RejectCheckName, TemplateCheckName, } )
Functions ¶
This section is empty.
Types ¶
type AlertsCheck ¶
type AlertsCheck struct {
// contains filtered or unexported fields
}
func NewAlertsCheck ¶
func NewAlertsCheck(name, uri string, timeout, lookBack, step, resolve time.Duration) AlertsCheck
func (AlertsCheck) String ¶
func (c AlertsCheck) String() string
type AnnotationCheck ¶
type AnnotationCheck struct {
// contains filtered or unexported fields
}
func NewAnnotationCheck ¶
func (AnnotationCheck) Check ¶
func (c AnnotationCheck) Check(rule parser.Rule) (problems []Problem)
func (AnnotationCheck) String ¶
func (c AnnotationCheck) String() string
type ComparisonCheck ¶
type ComparisonCheck struct {
// contains filtered or unexported fields
}
func NewComparisonCheck ¶
func NewComparisonCheck(severity Severity) ComparisonCheck
func (ComparisonCheck) Check ¶
func (c ComparisonCheck) Check(rule parser.Rule) (problems []Problem)
func (ComparisonCheck) String ¶
func (c ComparisonCheck) String() string
type CostCheck ¶
type CostCheck struct {
// contains filtered or unexported fields
}
func NewCostCheck ¶
type LabelCheck ¶
type LabelCheck struct {
// contains filtered or unexported fields
}
func NewLabelCheck ¶
func (LabelCheck) String ¶
func (c LabelCheck) String() string
type SeriesCheck ¶
type SeriesCheck struct {
// contains filtered or unexported fields
}
func NewSeriesCheck ¶
func NewSeriesCheck(name, uri string, timeout time.Duration, severity Severity) SeriesCheck
func (SeriesCheck) String ¶
func (c SeriesCheck) String() string
type SyntaxCheck ¶
type SyntaxCheck struct { }
func NewSyntaxCheck ¶
func NewSyntaxCheck() SyntaxCheck
func (SyntaxCheck) String ¶
func (c SyntaxCheck) String() string
type TemplateCheck ¶
type TemplateCheck struct {
// contains filtered or unexported fields
}
func NewTemplateCheck ¶
func NewTemplateCheck(severity Severity) TemplateCheck
func (TemplateCheck) String ¶
func (c TemplateCheck) String() string
type WithoutCheck ¶
type WithoutCheck struct {
// contains filtered or unexported fields
}
func NewWithoutCheck ¶
func (WithoutCheck) String ¶
func (c WithoutCheck) String() string
Click to show internal directories.
Click to hide internal directories.