methods

package
v0.1.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2019 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertMethod

type AlertMethod interface {
	AlertForError(serviceName string, availabilityTarget float64) []rulefmt.Rule
	AlertForLatency(serviceName string, targets []LatencyTarget) []rulefmt.Rule
}

func Get

func Get(name string) AlertMethod

type LatencyTarget

type LatencyTarget struct {
	LE     string  `yaml:"le"`
	Target float64 `yaml:"target"`
}

type MultiRateErrorOpts

type MultiRateErrorOpts struct {
	Metric string
	Labels labels.Labels
	Value  float64
	Kind   string // page or ticket
}

type MultiRateLatencyOpts

type MultiRateLatencyOpts struct {
	Metric  string
	Label   labels.Label
	Buckets []LatencyTarget
	Kind    string // page or ticket
}

type MultiRateWindow

type MultiRateWindow [2]struct {
	Multiplier  float64
	LongWindow  string
	ShortWindow string
}

type MultiWindowAlgorithm

type MultiWindowAlgorithm struct{}

func (*MultiWindowAlgorithm) AlertForError

func (*MultiWindowAlgorithm) AlertForError(serviceName string, availabilityTarget float64) []rulefmt.Rule

func (*MultiWindowAlgorithm) AlertForLatency

func (*MultiWindowAlgorithm) AlertForLatency(serviceName string, targets []LatencyTarget) []rulefmt.Rule

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL