alarm

package
v0.0.0-...-a9119a5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNotesToAlarm

func AddNotesToAlarm(c *gin.Context)

func AlarmLists

func AlarmLists(c *gin.Context)

func EventsGet

func EventsGet(c *gin.Context)

func GetNotesOfAlarm

func GetNotesOfAlarm(c *gin.Context)

func RandomStr

func RandomStr(length int) string

func Routes

func Routes(r *gin.Engine)
func StoreLink(c *gin.Context)

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"`
	//endpoints strategy template
	Endpoints  []string `json:"endpoints" form:"endpoints"`
	StrategyId int      `json:"strategy_id" form:"strategy_id"`
	TemplateId int      `json:"template_id" form:"template_id"`
}

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 APIGetNotesOfAlarmOuput struct {
	EventCaseId string     `json:"event_caseId"`
	Note        string     `json:"note"`
	CaseId      string     `json:"case_id"`
	Status      string     `json:"status"`
	Timestamp   *time.Time `json:"timestamp"`
	UserName    string     `json:"user"`
}

type LinkContent

type LinkContent struct {
	Conntent string `json:"conntent"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL