mockcfg

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNoData

func CreateNoData(c *gin.Context)

func DeleteNoData

func DeleteNoData(c *gin.Context)

func GetNoData

func GetNoData(c *gin.Context)

func GetNoDataList

func GetNoDataList(c *gin.Context)

func Routes

func Routes(r *gin.Engine)

func UpdateNoData

func UpdateNoData(c *gin.Context)

Types

type APICreateNoDataInputs

type APICreateNoDataInputs struct {
	Name string `json:"name" binding:"required"`
	Obj  string `json:"obj" binding:"required"`
	//group, host, other
	ObjType string  `json:"obj_type" binding:"required"`
	Metric  string  `json:"metric" binding:"required"`
	Tags    string  `json:"tags" binding:"exists"`
	DsType  string  `json:"dstype" binding:"required"`
	Step    int     `json:"step" binding:"required"`
	Mock    float64 `json:"mock" binding:"exists"`
}

func (APICreateNoDataInputs) CheckFormat

func (this APICreateNoDataInputs) CheckFormat() (err error)

type APIUpdateNoDataInputs

type APIUpdateNoDataInputs struct {
	ID  int64  `json:"id" binding:"required"`
	Obj string `json:"obj" binding:"required"`
	//group, host, other
	ObjType string  `json:"obj_type" binding:"required"`
	Metric  string  `json:"metric" binding:"required"`
	Tags    string  `json:"tags" binding:"exists"`
	DsType  string  `json:"dstype" binding:"required"`
	Step    int     `json:"step" binding:"required"`
	Mock    float64 `json:"mock" binding:"exists"`
}

func (APIUpdateNoDataInputs) CheckFormat

func (this APIUpdateNoDataInputs) CheckFormat() (err error)

Jump to

Keyboard shortcuts

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