Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExprBlock ¶
func (*ExprBlock) ComputeExpr ¶
type Objectives ¶
type Objectives struct {
Availability float64 `yaml:"availability"`
Latency []methods.LatencyTarget `yaml:"latency"`
}
type SLO ¶
type SLO struct {
Name string `yaml:"name"`
Objectives Objectives
HonorLabels bool `yaml:"honorLabels"`
TrafficRateRecord ExprBlock `yaml:"trafficRateRecord"`
ErrorRateRecord ExprBlock `yaml:"errorRateRecord"`
LatencyRecord ExprBlock `yaml:"latencyRecord"`
LatencyQuantileRecord ExprBlock `yaml:"latencyQuantileRecord"`
Labels map[string]string `yaml:"labels"`
Annotations map[string]string `yaml:"annotations"`
}
func (SLO) GenerateAlertRules ¶
func (SLO) GenerateGroupRules ¶
Click to show internal directories.
Click to hide internal directories.