Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { ID int64 `json:"id" gorm:"column:id"` UIC string `json:"uic" gorm:"column:uic"` URL string `json:"url" gorm:"column:url"` Callback int `json:"callback" orm:"column:callback"` BeforeCallbackSMS int `json:"before_callback_sms" orm:"column:before_callback_sms"` BeforeCallbackMail int `json:"before_callback_mail" orm:"column:before_callback_mail"` AfterCallbackSMS int `json:"after_callback_sms" orm:"column:after_callback_sms"` AfterCallbackMail int `json:"after_callback_mail" orm:"column:after_callback_mail"` }
////////////////////////////////////////////////////////////////////////////////// |id | int(10) unsigned | NO | PRI | NULL | auto_increment | | uic | varchar(255) | NO | | | | | url | varchar(255) | NO | | | | | callback | tinyint(4) | NO | | 0 | | | before_callback_sms | tinyint(4) | NO | | 0 | | | before_callback_mail | tinyint(4) | NO | | 0 | | | after_callback_sms | tinyint(4) | NO | | 0 | | | after_callback_mail | tinyint(4) | NO | | 0 | | //////////////////////////////////////////////////////////////////////////////////
type Cluster ¶
type Cluster struct { ID int64 `json:"id" gorm:"column:id"` GrpId int64 `json:"grp_id" gorm:"column:grp_id"` Numerator string `json:"numerator" gorm:"column:numerator"` Denominator string `json:"denominator" gorm:"denominator"` Endpoint string `json:"endpoint" gorm:"endpoint"` Metric string `json:"metric" gorm:"metric"` Tags string `json:"tags" gorm:"tags"` DsType string `json:"ds_type" gorm:"ds_type"` Step int `json:"step" gorm:"step"` Creator string `json:"creator" gorm:"creator"` }
func (Cluster) HostGroupName ¶
type Expression ¶
type Expression struct { ID int64 `json:"id" gorm:"column:id"` Expression string `json:"expression" gorm:"column:expression"` Func string `json:"func" gorm:"column:func"` Op string `json:"op" gorm:"column:op"` RightValue string `json:"right_value" gorm:"column:right_value"` MaxStep int `json:"max_step" gorm:"column:max_step"` Priority int `json:"priority" gorm:"column:priority"` Note string `json:"note" gorm:"column:note"` ActionId int64 `json:"action_id" gorm:"column:action_id"` CreateUser string `json:"create_user" gorm:"column:create_user"` Pause int `json:"pause" gorm:"column:pause"` }
type GrpHost ¶
type GrpTpl ¶
type Host ¶
type Host struct { ID int64 `json:"id" gorm:"column:id"` Hostname string `json:"hostname" gorm:"column:hostname"` Ip string `json:"ip" gorm:"column:ip"` AgentVersion string `json:"agent_version" gorm:"column:agent_version"` PluginVersion string `json:"plugin_version" gorm:"column:plugin_version"` MaintainBegin int64 `json:"maintain_begin" gorm:"column:maintain_begin"` MaintainEnd int64 `json:"maintain_end" gorm:"column:maintain_end"` }
func (Host) RelatedGrp ¶
func (Host) RelatedTpl ¶
type HostGroup ¶
type Mockcfg ¶
type Mockcfg struct { ID int64 `json:"id" gorm:"column:id"` Name string `json:"name" gorm:"column:name"` Obj string `json:"obj" gorm:"column:obj"` //group, host, other ObjType string `json:"obj_type" gorm:"column:obj_type"` Metric string `json:"metric" gorm:"column:metric"` Tags string `json:"tags" gorm:"column:tags"` DsType string `json:"dstype" gorm:"column:dstype"` Step int `json:"step" gorm:"column:step"` Mock float64 `json:"mock" gorm:"column:mock"` Creator string `json:"creator" gorm:"column:creator"` }
no_data
type Plugin ¶
type Strategy ¶
type Strategy struct { ID int64 `json:"id" gorm:"column:id"` Metric string `json:"metric" gorm:"column:metric"` Tags string `json:"tags" gorm:"column:tags"` MaxStep int `json:"max_step" gorm:"column:max_step"` Priority int `json:"priority" gorm:"column:priority"` Func string `json:"func" gorm:"column:func"` Op string `json:"op" gorm:"column:op"` RightValue string `json:"right_value" gorm:"column:right_value"` Note string `json:"note" gorm:"column:note"` RunBegin string `json:"run_begin" gorm:"column:run_begin"` RunEnd string `json:"run_end" gorm:"column:run_end"` TplId int64 `json:"tpl_id" gorm:"column:tpl_id"` }
type Template ¶
type Template struct { ID int64 `json:"id" gorm:"column:id"` Name string `json:"tpl_name" gorm:"column:tpl_name"` ParentID int64 `json:"parent_id" orm:"column:parent_id"` ActionID int64 `json:"action_id" orm:"column:action_id"` CreateUser string `json:"create_user" orm:"column:create_user"` }