Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultWindowLength = 3 DefaultWindowEscapeLength = 60 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertSubscribe ¶
type AlertSubscribe struct { AlertFunc AlertFunc // contains filtered or unexported fields }
func (*AlertSubscribe) Inhibition ¶
func (s *AlertSubscribe) Inhibition()
func (*AlertSubscribe) Recover ¶
func (s *AlertSubscribe) Recover()
func (*AlertSubscribe) Silence ¶
func (s *AlertSubscribe) Silence()
type DataSource ¶
type DataSource struct { Source chan interface{} KeyName string }
type Option ¶
type Option func(o *option)
func WithCheckAverage ¶
func WithCheckDescending ¶
func WithCheckDescending() Option
func WithCheckIncreasing ¶
func WithCheckIncreasing() Option
func WithOnlyUseEscape ¶
func WithOnlyUseEscape() Option
func WithOnlyUseLength ¶
func WithOnlyUseLength() Option
func WithThreshold ¶
func WithWindowLength ¶
func WithWindowTimeEscape ¶
type TrendPrediction ¶
type TrendPrediction struct {
// contains filtered or unexported fields
}
func NewTrendPrediction ¶
func NewTrendPrediction(source *DataSource, opts ...Option) *TrendPrediction
func (*TrendPrediction) RegisterSubscribe ¶
func (t *TrendPrediction) RegisterSubscribe(sub *AlertSubscribe)
func (*TrendPrediction) Watching ¶
func (t *TrendPrediction) Watching()
Click to show internal directories.
Click to hide internal directories.