Documentation ¶
Index ¶
- type Alert
- type Alerter
- type BurnRateAlert
- type BurnRateAlertMultiWindows
- type BurnRateAlertSingleWindow
- type BurnRateAlertWindow
- type CalendarWindow
- type Duration
- type ErrorBudgetAlert
- type Indicator
- type Objective
- type PrometheusAlerter
- type PrometheusIndicator
- type PrometheusWindow
- type RollingWindow
- type SLO
- type Spec
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BurnRateAlert ¶
type BurnRateAlert struct {
// contains filtered or unexported fields
}
func (*BurnRateAlert) Alerter ¶
func (a *BurnRateAlert) Alerter() Alerter
func (*BurnRateAlert) ConsumedBudgetRatio ¶
func (a *BurnRateAlert) ConsumedBudgetRatio() float64
func (*BurnRateAlert) Name ¶
func (a *BurnRateAlert) Name() string
func (*BurnRateAlert) Window ¶
func (a *BurnRateAlert) Window() BurnRateAlertWindow
type BurnRateAlertMultiWindows ¶
type BurnRateAlertMultiWindows struct {
// contains filtered or unexported fields
}
func (*BurnRateAlertMultiWindows) LongWindow ¶
func (w *BurnRateAlertMultiWindows) LongWindow() Window
func (*BurnRateAlertMultiWindows) ShortWindow ¶
func (w *BurnRateAlertMultiWindows) ShortWindow() Window
func (*BurnRateAlertMultiWindows) Window ¶
func (w *BurnRateAlertMultiWindows) Window() Window
type BurnRateAlertSingleWindow ¶
type BurnRateAlertSingleWindow struct {
// contains filtered or unexported fields
}
func (*BurnRateAlertSingleWindow) Window ¶
func (w *BurnRateAlertSingleWindow) Window() Window
type BurnRateAlertWindow ¶
type BurnRateAlertWindow interface {
Window() Window
}
type CalendarWindow ¶
type CalendarWindow struct {
// contains filtered or unexported fields
}
func (*CalendarWindow) Duration ¶
func (w *CalendarWindow) Duration() Duration
func (*CalendarWindow) Name ¶
func (w *CalendarWindow) Name() string
func (*CalendarWindow) Prometheus ¶
func (w *CalendarWindow) Prometheus() *PrometheusWindow
func (*CalendarWindow) Start ¶
func (w *CalendarWindow) Start() time.Time
type ErrorBudgetAlert ¶
type ErrorBudgetAlert struct {
// contains filtered or unexported fields
}
func (*ErrorBudgetAlert) Alerter ¶
func (a *ErrorBudgetAlert) Alerter() Alerter
func (*ErrorBudgetAlert) ConsumedBudgetRatio ¶
func (a *ErrorBudgetAlert) ConsumedBudgetRatio() float64
func (*ErrorBudgetAlert) Name ¶
func (a *ErrorBudgetAlert) Name() string
type PrometheusAlerter ¶
type PrometheusAlerter struct {
// contains filtered or unexported fields
}
func (*PrometheusAlerter) Annotations ¶
func (a *PrometheusAlerter) Annotations() map[string]string
func (*PrometheusAlerter) Labels ¶
func (a *PrometheusAlerter) Labels() map[string]string
func (*PrometheusAlerter) Name ¶
func (a *PrometheusAlerter) Name() string
type PrometheusIndicator ¶
type PrometheusIndicator struct {
// contains filtered or unexported fields
}
func (*PrometheusIndicator) ErrorRatio ¶
func (pi *PrometheusIndicator) ErrorRatio() string
func (*PrometheusIndicator) Level ¶
func (pi *PrometheusIndicator) Level() []string
type PrometheusWindow ¶
type PrometheusWindow struct {
// contains filtered or unexported fields
}
func (*PrometheusWindow) EvaluationInterval ¶
func (pw *PrometheusWindow) EvaluationInterval() Duration
type RollingWindow ¶
type RollingWindow struct {
// contains filtered or unexported fields
}
func (*RollingWindow) Duration ¶
func (w *RollingWindow) Duration() Duration
func (*RollingWindow) Name ¶
func (w *RollingWindow) Name() string
func (*RollingWindow) Prometheus ¶
func (w *RollingWindow) Prometheus() *PrometheusWindow
type Spec ¶
type Spec struct {
// contains filtered or unexported fields
}
func ToSpec ¶
func ToSpec(c *configspec.SpecConfig) (*Spec, error)
func (*Spec) Annotations ¶
type Window ¶
type Window interface { Name() string Duration() Duration Prometheus() *PrometheusWindow }
Click to show internal directories.
Click to hide internal directories.