Documentation ¶
Index ¶
- Constants
- Variables
- type AggregationCheck
- type AlertsCheck
- type AlertsForChecksFor
- type AnnotationCheck
- type ComparisonCheck
- type CostCheck
- type LabelCheck
- type Problem
- type RateCheck
- type Reject
- type RuleChecker
- type SeriesCheck
- type Severity
- type SyntaxCheck
- type TemplateCheck
- type VectorMatchingCheck
Constants ¶
View Source
const (
AggregationCheckName = "promql/aggregate"
)
View Source
const (
AlertForCheckName = "alerts/for"
)
View Source
const (
AlertsCheckName = "alerts/count"
)
View Source
const (
AnnotationCheckName = "alerts/annotation"
)
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 (
VectorMatchingCheckName = "promql/vector_matching"
)
Variables ¶
View Source
var ( CheckNames = []string{ AnnotationCheckName, AlertsCheckName, AlertForCheckName, TemplateCheckName, AggregationCheckName, ComparisonCheckName, RateCheckName, SyntaxCheckName, VectorMatchingCheckName, CostCheckName, SeriesCheckName, LabelCheckName, RejectCheckName, } OnlineChecks = []string{ AlertsCheckName, RateCheckName, VectorMatchingCheckName, CostCheckName, SeriesCheckName, } )
Functions ¶
This section is empty.
Types ¶
type AggregationCheck ¶ added in v0.6.0
type AggregationCheck struct {
// contains filtered or unexported fields
}
func NewAggregationCheck ¶ added in v0.6.0
func (AggregationCheck) Check ¶ added in v0.6.0
func (c AggregationCheck) Check(rule parser.Rule) (problems []Problem)
func (AggregationCheck) String ¶ added in v0.6.0
func (c AggregationCheck) String() string
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 AlertsForChecksFor ¶ added in v0.5.0
type AlertsForChecksFor struct { }
func NewAlertsForCheck ¶ added in v0.5.0
func NewAlertsForCheck() AlertsForChecksFor
func (AlertsForChecksFor) Check ¶ added in v0.5.0
func (c AlertsForChecksFor) Check(rule parser.Rule) (problems []Problem)
func (AlertsForChecksFor) String ¶ added in v0.5.0
func (c AlertsForChecksFor) 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 { }
func NewComparisonCheck ¶
func NewComparisonCheck() 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) 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 { }
func NewTemplateCheck ¶
func NewTemplateCheck() TemplateCheck
func (TemplateCheck) String ¶
func (c TemplateCheck) String() string
type VectorMatchingCheck ¶ added in v0.1.3
type VectorMatchingCheck struct {
// contains filtered or unexported fields
}
func NewVectorMatchingCheck ¶ added in v0.1.3
func NewVectorMatchingCheck(name, uri string, timeout time.Duration) VectorMatchingCheck
func (VectorMatchingCheck) Check ¶ added in v0.1.3
func (c VectorMatchingCheck) Check(rule parser.Rule) (problems []Problem)
func (VectorMatchingCheck) String ¶ added in v0.1.3
func (c VectorMatchingCheck) String() string
Click to show internal directories.
Click to hide internal directories.