Documentation ¶
Index ¶
- type Indicator
- type LatencyIndicator
- type Metric
- type MultiBurnRateAlert
- type Objective
- func (o Objective) Alerts() ([]MultiBurnRateAlert, error)
- func (o Objective) Burnrate(timerange time.Duration) string
- func (o Objective) Burnrates() (monitoringv1.RuleGroup, error)
- func (o Objective) ErrorsRange(timerange time.Duration) string
- func (o Objective) IncreaseRules() ([]monitoringv1.Rule, error)
- func (o Objective) Name() string
- func (o Objective) QueryErrorBudget() string
- func (o Objective) QueryErrors(window model.Duration) string
- func (o Objective) QueryTotal(window model.Duration) string
- func (o Objective) RequestRange(timerange time.Duration) string
- type RatioIndicator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Indicator ¶
type Indicator struct { Ratio *RatioIndicator Latency *LatencyIndicator }
type LatencyIndicator ¶
type MultiBurnRateAlert ¶
type Objective ¶
type Objective struct { Labels labels.Labels Description string Target float64 Window model.Duration Config string Indicator Indicator }
func (Objective) Alerts ¶
func (o Objective) Alerts() ([]MultiBurnRateAlert, error)
func (Objective) IncreaseRules ¶ added in v0.3.0
func (o Objective) IncreaseRules() ([]monitoringv1.Rule, error)
func (Objective) QueryErrorBudget ¶
func (Objective) QueryErrors ¶
QueryErrors returns a PromQL query to get the amount of request errors during the window.
func (Objective) QueryTotal ¶
QueryTotal returns a PromQL query to get the total amount of requests served during the window.
type RatioIndicator ¶
Click to show internal directories.
Click to hide internal directories.