Documentation ¶
Index ¶
- func CreateStrategy(c *gin.Context)
- func DeleteStrategy(c *gin.Context)
- func GetStrategy(c *gin.Context)
- func GetStrategys(c *gin.Context)
- func MetricQuery(c *gin.Context)
- func Routes(r *gin.Engine)
- func UpdateStrategy(c *gin.Context)
- type APICreateStrategyInput
- type APIGetStrategysInput
- type APIUpdateStrategyInput
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 APIGetStrategysInput ¶
type APIGetStrategysInput struct {
Tip int `json:"tid" form:"tid" binding:"required"`
}
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.