Documentation ¶
Index ¶
- func AddNotesToAlarm(c *gin.Context)
- func AlarmLists(c *gin.Context)
- func EventsGet(c *gin.Context)
- func GetNotesOfAlarm(c *gin.Context)
- func Routes(r *gin.Engine)
- type APIAddNotesToAlarmInputs
- type APIEventsGetInputs
- type APIGetAlarmListsInputs
- type APIGetNotesOfAlarmInputs
- type APIGetNotesOfAlarmOuput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNotesToAlarm ¶
func AlarmLists ¶
func GetNotesOfAlarm ¶
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 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" form:"page"` }
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"` }
Click to show internal directories.
Click to hide internal directories.