Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Operators = []string{">", ">=", "==", "<", "<=", "!="}
Functions ¶
This section is empty.
Types ¶
type ThresFuncExpr ¶
type ThresFuncExpr string // 運算式
func (ThresFuncExpr) Equal ¶
func (tfExpr ThresFuncExpr) Equal(thresFuncArgs map[string]interface{}) (bool, error)
Equal() 會將運算表達式與門檻值進行比較
func (ThresFuncExpr) Thresholds ¶
func (tfExpr ThresFuncExpr) Thresholds() (Thresholds, error)
Thresholds() 會將運算表達式轉換成 Thresholds
type Thresholds ¶
type Thresholds []Threshold
func (Thresholds) ThresFuncExpr ¶
func (thres Thresholds) ThresFuncExpr() (ThresFuncExpr, error)
ThresFunc() 會將 Thresholds 轉換成運算表達式
Click to show internal directories.
Click to hide internal directories.