dashboard_graph

package
v3.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

View Source
const TMP_GRAPH_FILED_DELIMITER = "|"

Variables

This section is empty.

Functions

func DashboardGraphClone

func DashboardGraphClone(c *gin.Context)

func DashboardGraphCreate

func DashboardGraphCreate(c *gin.Context)

func DashboardGraphDelete

func DashboardGraphDelete(c *gin.Context)

func DashboardGraphGet

func DashboardGraphGet(c *gin.Context)

func DashboardGraphGetsByScreenID

func DashboardGraphGetsByScreenID(c *gin.Context)

func DashboardGraphUpdate

func DashboardGraphUpdate(c *gin.Context)

func DashboardTmpGraphCreate

func DashboardTmpGraphCreate(c *gin.Context)

func DashboardTmpGraphQuery

func DashboardTmpGraphQuery(c *gin.Context)

func GraphCreateReqDataWithNewScreen

func GraphCreateReqDataWithNewScreen(c *gin.Context)

func Routes

func Routes(r *gin.Engine)

Types

type APIDashboardGraphCloneInputs

type APIDashboardGraphCloneInputs struct {
	ID   int64  `json:"id" form:"id" binding:"required"`
	Name string `json:"name" form:"name"`
}

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

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)

type APITmpGraphCreateReqData

type APITmpGraphCreateReqData struct {
	Endpoints []string `json:"endpoints" form:"endpoints" binding:"reqenvuired"`
	Counters  []string `json:"counters" form:"counters" binding:"required"`
}

type GraphObj

type GraphObj struct {
	Title        string
	Endpoints    []string
	Counters     []string
	TimeSpan     int64
	GraphType    string
	Method       string
	Position     int64
	FalconTags   string
	TimeRange    string
	YScale       string
	SortBy       string
	SampleMethod string
}

func (GraphObj) CustomCheck

func (mine GraphObj) CustomCheck() (err error)

Jump to

Keyboard shortcuts

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