Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotificationPageSeverity = NotificationSeverity("page") NotificationTicketSeverity = NotificationSeverity("ticket") // Severities list of available severities: page and ticket Severities = []NotificationSeverity{ NotificationPageSeverity, NotificationTicketSeverity, } )
Functions ¶
This section is empty.
Types ¶
type AlertErrorOptions ¶ added in v0.1.11
type AlertLatencyOptions ¶ added in v0.1.11
type AlertMethod ¶
type AlertMethod interface {
AlertForError(*AlertErrorOptions) ([]rulefmt.Rule, error)
AlertForLatency(*AlertLatencyOptions) ([]rulefmt.Rule, error)
}
func Get ¶
func Get(name string) AlertMethod
type LatencyTarget ¶
type MultiRateErrorOpts ¶
type MultiRateErrorOpts struct {
Rates []MultiRateWindow
Metric string
Labels labels.Labels
Value float64
}
type MultiRateLatencyOpts ¶
type MultiRateLatencyOpts struct {
Rates []MultiRateWindow
Metric string
Label labels.Label
Buckets []LatencyTarget
}
type MultiRateWindow ¶
type MultiWindowAlgorithm ¶
type MultiWindowAlgorithm struct{}
func (*MultiWindowAlgorithm) AlertForError ¶
func (*MultiWindowAlgorithm) AlertForError(opts *AlertErrorOptions) ([]rulefmt.Rule, error)
func (*MultiWindowAlgorithm) AlertForLatency ¶
func (*MultiWindowAlgorithm) AlertForLatency(opts *AlertLatencyOptions) ([]rulefmt.Rule, error)
type NotificationSeverity ¶ added in v0.2.0
type NotificationSeverity string
type SimpleAlgorithm ¶ added in v0.1.11
type SimpleAlgorithm struct{}
func (*SimpleAlgorithm) AlertForError ¶ added in v0.1.11
func (*SimpleAlgorithm) AlertForError(opts *AlertErrorOptions) ([]rulefmt.Rule, error)
func (*SimpleAlgorithm) AlertForLatency ¶ added in v0.1.11
func (*SimpleAlgorithm) AlertForLatency(opts *AlertLatencyOptions) ([]rulefmt.Rule, error)
Click to show internal directories.
Click to hide internal directories.