Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FloatValue ¶
type FloatValue struct { RuleName string `json:"rule"` ServiceName string `json:"service"` Scale types.Scaler `json:"-"` ScalerID string `json:"scaler"` Probe types.Probe `json:"-"` ProbeID string `json:"probe"` RefreshRate time.Duration `json:"resfreshRate"` UpDefinition string `json:"up"` Up func(v float64) bool `json:"-"` DownDefinition string `json:"down"` Down func(v float64) bool `json:"-"` }
FloatValue handler
func (*FloatValue) CheckInterval ¶
func (r *FloatValue) CheckInterval() time.Duration
CheckInterval return the time to wait between each check
func (*FloatValue) Parse ¶
func (r *FloatValue) Parse() (err error)
Parse UpDefinition and DownDefinition directives to create matching functions
Click to show internal directories.
Click to hide internal directories.