Documentation ¶
Index ¶
- Constants
- func DashboardGraphClone(c *gin.Context)
- func DashboardGraphCreate(c *gin.Context)
- func DashboardGraphDelete(c *gin.Context)
- func DashboardGraphGet(c *gin.Context)
- func DashboardGraphGetsByScreenID(c *gin.Context)
- func DashboardGraphUpdate(c *gin.Context)
- func DashboardTmpGraphCreate(c *gin.Context)
- func DashboardTmpGraphQuery(c *gin.Context)
- func GraphCreateReqDataWithNewScreen(c *gin.Context)
- func Routes(r *gin.Engine)
- type APIDashboardGraphCloneInputs
- type APIDashboardGraphDeleteInputs
- type APIDashboardGraphGetOuput
- type APIGraphCreateReqData
- type APIGraphCreateReqDataWithNewScreenInputs
- type APIGraphUpdateReqData
- type APITmpGraphCreateReqData
- type GraphObj
Constants ¶
View Source
const TMP_GRAPH_FILED_DELIMITER = "|"
Variables ¶
This section is empty.
Functions ¶
func DashboardGraphClone ¶
func DashboardGraphCreate ¶
func DashboardGraphDelete ¶
func DashboardGraphGet ¶
func DashboardGraphUpdate ¶
func DashboardTmpGraphCreate ¶
func DashboardTmpGraphQuery ¶
Types ¶
type APIDashboardGraphDeleteInputs ¶
type APIDashboardGraphDeleteInputs struct {
ID int `json:"id" form:"id" binding:"required"`
}
type APIDashboardGraphGetOuput ¶
type APIDashboardGraphGetOuput struct { GraphID int64 `json:"graph_id" form:"graph_id"` Title string `json:"title" form:"title"` ScreenId int64 `json:"screen_id" form:"screen_id"` Endpoints []string `json:"endpoints" form:"endpoints"` Counters []string `json:"counters" form:"counters"` TimeSpan int64 `json:"timespan" form:"timespan"` GraphType string `json:"graph_type" form:"graph_type"` Method string `json:"method" form:"method"` Position int64 `json:"position" form:"position"` FalconTags string `json:"falcon_tags" form:"falcon_tags"` TimeRange string `json:"time_range" form:"time_range"` YScale string `json:"y_scale" form:"y_scale"` SortBy string `json:"sort_by" form:"sort_by"` SampleMethod string `json:"sample_method" form:"sample_method"` }
func BuildGraphGetOutput ¶
func BuildGraphGetOutput(graph m.DashboardGraph) APIDashboardGraphGetOuput
type APIGraphCreateReqData ¶
type APIGraphCreateReqData struct { ScreenId int64 `json:"screen_id" form:"screen_id" binding:"required"` Title string `json:"title" form:"title" binding:"required"` Endpoints []string `json:"endpoints" form:"endpoints" binding:"required"` Counters []string `json:"counters" form:"counters" binding:"required"` TimeSpan int64 `json:"timespan" form:"timespan"` GraphType string `json:"graph_type" form:"graph_type" binding:"required"` Method string `json:"method" form:"method"` Position int64 `json:"position" form:"position"` FalconTags string `json:"falcon_tags" form:"falcon_tags"` TimeRange string `json:"time_range" form:"time_range" binding:"required"` YScale string `json:"y_scale" form:"y_scale"` SortBy string `json:"sort_by" form:"sort_by"` SampleMethod string `json:"sample_method" form:"sample_method"` }
Inputs struct for DashboardGraphCreate
func (APIGraphCreateReqData) Check ¶
func (mine APIGraphCreateReqData) Check() (err error)
type APIGraphCreateReqDataWithNewScreenInputs ¶
type APIGraphCreateReqDataWithNewScreenInputs struct { ScreenName string `json:"screen_name" form:"screen_name" binding:"required"` Title string `json:"title" form:"title" binding:"required"` Endpoints []string `json:"endpoints" form:"endpoints" binding:"required"` Counters []string `json:"counters" form:"counters" binding:"required"` TimeSpan int64 `json:"timespan" form:"timespan"` GraphType string `json:"graph_type" form:"graph_type" binding:"required"` Method string `json:"method" form:"method"` Position int64 `json:"position" form:"position"` FalconTags string `json:"falcon_tags" form:"falcon_tags"` TimeRange string `json:"time_range" form:"time_range"` YScale string `json:"y_scale" form:"y_scale"` SortBy string `json:"sort_by" form:"sort_by"` SampleMethod string `json:"sample_method" form:"sample_method"` }
Inputs struct for GraphCreateReqDataWithNewScreen
func (APIGraphCreateReqDataWithNewScreenInputs) Check ¶
func (mine APIGraphCreateReqDataWithNewScreenInputs) Check() (err error)
type APIGraphUpdateReqData ¶
type APIGraphUpdateReqData struct { ID int64 `json:"id" form:"id" binding:"required"` ScreenId int64 `json:"screen_id" form:"screen_id"` Title string `json:"title" form:"title"` Endpoints []string `json:"endpoints" form:"endpoints"` Counters []string `json:"counters" form:"counters"` TimeSpan int64 `json:"timespan" form:"timespan"` GraphType string `json:"graph_type" form:"graph_type"` Method string `json:"method" form:"method"` Position int64 `json:"position" form:"position"` FalconTags string `json:"falcon_tags" form:"falcon_tags"` TimeRange string `json:"time_range" form:"time_range"` YScale string `json:"y_scale" form:"y_scale"` SortBy string `json:"sort_by" form:"sort_by"` SampleMethod string `json:"sample_method" form:"sample_method"` }
Inputs struct for DashboardGraphUpdate
func (APIGraphUpdateReqData) Check ¶
func (mine APIGraphUpdateReqData) Check() (err error)
Click to show internal directories.
Click to hide internal directories.