Documentation
¶
Index ¶
- func AddNotesToAlarm(c *gin.Context)
- func AlarmLists(c *gin.Context)
- func EventsGet(c *gin.Context)
- func GetEventCases(c *gin.Context)
- func GetEventCasesDetail(c *gin.Context)
- func GetEventCasesTotal(c *gin.Context)
- func GetEventCasesV2(c *gin.Context)
- func GetNotesOfAlarm(c *gin.Context)
- func GetTotalOfEventCases(c *gin.Context)
- func Routes(r *gin.Engine)
- type APIAddNotesToAlarmInputs
- type APIEventCasesGetInputs
- type APIEventsGetInputs
- type APIGetAlarmListsInputs
- type APIGetEventCasesInputs
- type APIGetNotesOfAlarmInputs
- type APIGetNotesOfAlarmOuput
- type APITotalOfEventCasesGetInputs
- type EventCasesWFid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNotesToAlarm ¶
func AlarmLists ¶
func GetEventCases ¶
func GetEventCasesDetail ¶
func GetEventCasesTotal ¶
func GetEventCasesV2 ¶
GetEventCases Version 2 which including fid returning, Add by campbell.tang @2018.9.8
func GetNotesOfAlarm ¶
func GetTotalOfEventCases ¶
Types ¶
type APIAddNotesToAlarmInputs ¶
type APIAddNotesToAlarmInputs struct {
EventId string `json:"event_id" form:"event_id" binding:"required"`
Note string `json:"note" form:"note" binding:"required"`
Status string `json:"status" form:"status" binding:"required"`
CaseId string `json:"case_id" form:"case_id"`
}
func (APIAddNotesToAlarmInputs) CheckingFormating ¶
func (s APIAddNotesToAlarmInputs) CheckingFormating() error
type APIEventCasesGetInputs ¶
type APIEventCasesGetInputs struct {
StartTime string `json:"startTime" form:"startTime"`
EndTime string `json:"endTime" form:"endTime"`
Priority string `json:"priority" form:"priority"`
Status string `json:"status" form:"status"`
ProcessStatus string `json:"process_status" form:"process_status"`
Metric string `json:"metric" form:"metric"`
BussName string `json:"buss_name" form:"buss_name"`
GrpName string `json:"grp_name" form:"grp_name"`
Endpoint string `json:"endpoint" form:"endpoint"`
IP string `json:"ip" form:"ip"`
}
type APIEventsGetInputs ¶
type APIEventsGetInputs struct {
StartTime int64 `json:"startTime" form:"startTime"`
EndTime int64 `json:"endTime" form:"endTime"`
Status int `json:"status" form:"status" binding:"gte=-1,lte=1"`
//event_caseId
EventId string `json:"event_id" form:"event_id" binding:"required"`
//number of reacord's limit on each page
Limit int `json:"limit" form:"limit"`
//pagging
Page int `json:"page" form:"page"`
}
type APIGetAlarmListsInputs ¶
type APIGetAlarmListsInputs struct {
StartTime int64 `json:"startTime" form:"startTime"`
EndTime int64 `json:"endTime" form:"endTime"`
Priority int `json:"priority" form:"priority"`
Status string `json:"status" form:"status"`
ProcessStatus string `json:"process_status" form:"process_status"`
Metrics string `json:"metrics" form:"metrics"`
//id
EventId string `json:"event_id" form:"event_id"`
//number of reacord's limit on each page
Limit int `json:"limit" form:"limit"`
//pagging
Page int `json:"page"`
}
type APIGetEventCasesInputs ¶
type APIGetEventCasesInputs struct {
StartTime string `json:"startTime" form:"startTime"`
EndTime string `json:"endTime" form:"endTime"`
Priority string `json:"priority" form:"priority"`
Metric string `json:"metric" form:"metric"`
GrpName string `json:"grp_name" form:"grp_name"`
//number of reacord's limit on each page
Sort string `json:"sort" form:"sort"`
Top string `json:"top" form:"top"`
}
added by vincent.zhang for alarms panel, ignored maintained host
type APIGetNotesOfAlarmInputs ¶
type APIGetNotesOfAlarmInputs struct {
StartTime int64 `json:"startTime" form:"startTime"`
EndTime int64 `json:"endTime" form:"endTime"`
//id
EventId string `json:"event_id" form:"event_id"`
Status string `json:"status" form:"status"`
//number of reacord's limit on each page
Limit int `json:"limit" form:"limit"`
//pagging
Page int `json:"page" form:"page"`
}
type APIGetNotesOfAlarmOuput ¶
type APITotalOfEventCasesGetInputs ¶
type APITotalOfEventCasesGetInputs struct {
StartTime string `json:"startTime" form:"startTime"`
EndTime string `json:"endTime" form:"endTime"`
Priority string `json:"priority" form:"priority"`
Metric string `json:"metric" form:"metric"`
Status string `json:"status" form:"status"`
ProcessStatus string `json:"process_status" form:"process_status"`
GrpName string `json:"grp_name" form:"grp_name"`
//number of reacord's limit on each page
Top string `json:"top" form:"top"`
Sort string `json:"sort" form:"sort"`
}
type EventCasesWFid ¶
type EventCasesWFid struct {
ID string `json:"id" gorm:"column:id"`
HostId int64 `json:"host_id" gorm:"column:host_id"`
Endpoint string `json:"endpoint" grom:"column:endpoint"`
GrpId int64 `json:"grp_id" gorm:"column:grp_id"`
Grp_name string `json:"grp_name" grom:"column:grp_name"`
Metric string `json:"metric" grom:"metric"`
Func string `json:"func" grom:"func"`
Cond string `json:"cond" grom:"cond"`
Note string `json:"note" grom:"note"`
MaxStep int `json:"step" grom:"step"`
CurrentStep int `json:"current_step" grom:"current_step"`
Priority int `json:"priority" grom:"priority"`
Status string `json:"status" grom:"status"`
Timestamp *time.Time `json:"timestamp" grom:"timestamp"`
UpdateAt *time.Time `json:"update_at" grom:"update_at"`
ClosedAt *time.Time `json:"closed_at" grom:"closed_at"`
ClosedNote string `json:"closed_note" grom:"closed_note"`
UserModified int64 `json:"user_modified" grom:"user_modified"`
TplCreator string `json:"tpl_creator" grom:"tpl_creator"`
ExpressionId int64 `json:"expression_id" grom:"expression_id"`
StrategyId int64 `json:"strategy_id" grom:"strategy_id"`
TemplateId int64 `json:"template_id" grom:"template_id"`
ProcessNote int64 `json:"process_note" grom:"process_note"`
ProcessStatus string `json:"process_status" grom:"process_status"`
FId int64 `json:"fid" gorm:"column:fid"`
}
Add FId
Click to show internal directories.
Click to hide internal directories.