Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteEventOlder ¶
Types ¶
type EventCases ¶
type EventCases struct { // uniuq Id string `json:"id" orm:"pk"` HostId string `json:"host_id"` Endpoint string `json:"endpoint"` GrpId string `json:"grp_id"` Grp_name string `json:"grp_name"` Metric string `json:"metric"` Func string `json:"func"` //leftValue + operator + rightValue Cond string `json:"cond"` Note string `json:"note"` MaxStep int `json:"max_step"` CurrentStep int `json:"current_step"` Priority int `json:"priority"` Status string `json:"status"` Timestamp time.Time `json:"start_at"` UpdateAt time.Time `json:"update_at"` ProcessNote int `json:"process_note"` ProcessStatus string `json:"process_status"` TplCreator string `json:"tpl_creator"` ExpressionId int `json:"expression_id"` StrategyId int `json:"strategy_id"` TemplateId int `json:"template_id"` Events []*Events `json:"evevnts" orm:"reverse(many)"` }
type EventDetail ¶
type EventDetail struct { GrpName string IP string Event *coommonModel.Event }
func InsertEvent ¶
func InsertEvent(eve *coommonModel.Event, changeIgnore, sendMoreMax bool) (*EventDetail, bool)
Click to show internal directories.
Click to hide internal directories.