Documentation ¶
Index ¶
Constants ¶
View Source
const APIVersion = "sloth.slok.dev/v1"
View Source
const Kind = "AlertWindows"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertWindows ¶
type PageWindow ¶
type PageWindow struct {
QuickSlowWindow `yaml:",inline"`
}
PageWindow represents the configuration for page alerting.
type QuickSlowWindow ¶
type Spec ¶
type Spec struct { // SLOPeriod is the full slo period used for this windows. SLOPeriod prometheusmodel.Duration `yaml:"sloPeriod"` // Page represents the configuration for the page alerting windows. Page PageWindow `yaml:"page"` // Ticket represents the configuration for the ticket alerting windows. Ticket TicketWindow `yaml:"ticket"` }
Spec represents the root type of the Alerting window.
type TicketWindow ¶
type TicketWindow struct {
QuickSlowWindow `yaml:",inline"`
}
PageWindow represents the configuration for ticket alerting.
type Window ¶
type Window struct { // ErrorBudgetPercent is the max error budget consumption allowed in the window. ErrorBudgetPercent float64 `yaml:"errorBudgetPercent"` // Shortwindow is the window that will stop the alerts when a huge amount of // error budget has been consumed but the error has already gone. ShortWindow prometheusmodel.Duration `yaml:"shortWindow"` // Longwindow is the window used to get the error budget for all the window. LongWindow prometheusmodel.Duration `yaml:"longWindow"` }
Click to show internal directories.
Click to hide internal directories.