Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertErrorOptions ¶ added in v0.1.11
type AlertLatencyOptions ¶ added in v0.1.11
type AlertLatencyOptions struct {
ServiceName string
Targets []LatencyTarget
// important for simple algorithm
AlertWindow string
AlertWait string
}
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 MultiRateLatencyOpts ¶
type MultiRateLatencyOpts struct {
Metric string
Label labels.Label
Buckets []LatencyTarget
Kind string // page or ticket
}
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 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.