Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateStrategy ¶
func DeleteStrategy ¶
func GetStrategy ¶
func GetStrategys ¶
func MetricQuery ¶
func UpdateStrategy ¶
Types ¶
type APICreateStrategyInput ¶
type APICreateStrategyInput struct { Metric string `json:"metric" binding:"required"` Tags string `json:"tags"` MaxStep int `json:"max_step" binding:"required"` Priority int `json:"priority" binding:"exists"` Func string `json:"func" binding:"required"` Op string `json:"op" binding:"required"` RightValue string `json:"right_value" binding:"required"` Note string `json:"note"` RunBegin string `json:"run_begin"` RunEnd string `json:"run_end"` TplId int64 `json:"tpl_id" binding:"required"` }
func (APICreateStrategyInput) CheckFormat ¶
func (this APICreateStrategyInput) CheckFormat() (err error)
type APIUpdateStrategyInput ¶
type APIUpdateStrategyInput struct { ID int64 `json:"id" binding:"required"` Metric string `json:"metric" binding:"required"` Tags string `json:"tags"` MaxStep int `json:"max_step" binding:"required"` Priority int `json:"priority" binding:"exists"` Func string `json:"func" binding:"required"` Op string `json:"op" binding:"required"` RightValue string `json:"right_value" binding:"required"` Note string `json:"note"` RunBegin string `json:"run_begin"` RunEnd string `json:"run_end"` }
func (APIUpdateStrategyInput) CheckFormat ¶
func (this APIUpdateStrategyInput) CheckFormat() (err error)
Click to show internal directories.
Click to hide internal directories.