trigger

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AndTrigger

type AndTrigger struct {
	Triggers []Base
}

func (*AndTrigger) Trigger

func (at *AndTrigger) Trigger(stats map[string]interface{}) bool

type Base

type Base interface {
	Trigger(stats map[string]interface{}) bool
}

func NewTrigger

func NewTrigger(trigger map[string]interface{}) (Base, error)

type BinaryTrigger

type BinaryTrigger struct {
	Operator  string
	Metric    string
	Threshold float64
}

func (*BinaryTrigger) Trigger

func (bt *BinaryTrigger) Trigger(stats map[string]interface{}) bool

type TimerRangeTrigger

type TimerRangeTrigger struct {
	Start string
	End   string
	Type  string
}

func (*TimerRangeTrigger) Trigger

func (tt *TimerRangeTrigger) Trigger(stats map[string]interface{}) bool

Jump to

Keyboard shortcuts

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