host

package
v3.14.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindHostToHostGroup

func BindHostToHostGroup(c *gin.Context)

func BindTemplateToGroup

func BindTemplateToGroup(c *gin.Context)

func CrateHostGroup

func CrateHostGroup(c *gin.Context)

func CreateAggregator

func CreateAggregator(c *gin.Context)

func CreatePlugin

func CreatePlugin(c *gin.Context)

func DeleteAggregator

func DeleteAggregator(c *gin.Context)

func DeleteHostGroup

func DeleteHostGroup(c *gin.Context)

func DeletePlugin

func DeletePlugin(c *gin.Context)

func GetAggregator

func GetAggregator(c *gin.Context)

func GetAggregatorListOfGrp

func GetAggregatorListOfGrp(c *gin.Context)

func GetGrpsRelatedHost

func GetGrpsRelatedHost(c *gin.Context)

func GetHostBindToWhichHostGroup

func GetHostBindToWhichHostGroup(c *gin.Context)

func GetHostGroup

func GetHostGroup(c *gin.Context)

func GetHostGroupWithTemplate

func GetHostGroupWithTemplate(c *gin.Context)

func GetHostGroups

func GetHostGroups(c *gin.Context)

func GetPluginOfGrp

func GetPluginOfGrp(c *gin.Context)

func GetTemplateOfHostGroup

func GetTemplateOfHostGroup(c *gin.Context)

func GetTplsRelatedHost

func GetTplsRelatedHost(c *gin.Context)

func HostsSetToMaintain

func HostsSetToMaintain(c *gin.Context)

func Routes

func Routes(r *gin.Engine)

func UnBindAHostToHostGroup

func UnBindAHostToHostGroup(c *gin.Context)

func UnBindTemplateToGroup

func UnBindTemplateToGroup(c *gin.Context)

func UpdateAggregator

func UpdateAggregator(c *gin.Context)

Types

type APIBindHostToHostGroupInput

type APIBindHostToHostGroupInput struct {
	Hosts       []string `json:"hosts" binding:"required"`
	HostGroupID int64    `json:"hostgroup_id" binding:"required"`
}

type APIBindTemplateToGroupInputs

type APIBindTemplateToGroupInputs struct {
	TplID int64 `json:"tpl_id"`
	GrpID int64 `json:"grp_id"`
}

type APICrateHostGroup

type APICrateHostGroup struct {
	Name string `json:"name" binding:"required"`
}

type APICreateAggregatorInput

type APICreateAggregatorInput struct {
	GrpId       int64  `json:"hostgroup_id" binding:"required"`
	Numerator   string `json:"numerator" binding:"required"`
	Denominator string `json:"denominator" binding:"required"`
	Endpoint    string `json:"endpoint" binding:"required"`
	Metric      string `json:"metric" binding:"required"`
	Tags        string `json:"tags" binding:"exists"`
	Step        int    `json:"step" binding:"required"`
}

type APICreatePluginInput

type APICreatePluginInput struct {
	GrpId   int64  `json:"hostgroup_id" binding:"required"`
	DirPaht string `json:"dir_path" binding:"required"`
}

type APIHostsSetToMaintainInputs

type APIHostsSetToMaintainInputs struct {
	Hosts     []string `json:"hosts" form:"hosts" binding:"required"`
	StartTime int32    `json:"start_time" form:"start_time" binding:"gt=-1"`
	EndTime   int32    `json:"end_time" form:"end_time" binding:"gt=-1"`
}

func (APIHostsSetToMaintainInputs) Check

func (mine APIHostsSetToMaintainInputs) Check() (err error)

type APIUnBindAHostToHostGroup

type APIUnBindAHostToHostGroup struct {
	HostID      int64 `json:"host_id" binding:"required"`
	HostGroupID int64 `json:"hostgroup_id" binding:"required"`
}

type APIUnBindTemplateToGroupInputs

type APIUnBindTemplateToGroupInputs struct {
	TplID int64 `json:"tpl_id"`
	GrpID int64 `json:"grp_id"`
}

type APIUpdateAggregatorInput

type APIUpdateAggregatorInput struct {
	ID          int64  `json:"id" binding:"required"`
	Numerator   string `json:"numerator" binding:"required"`
	Denominator string `json:"denominator" binding:"required"`
	Endpoint    string `json:"endpoint" binding:"required"`
	Metric      string `json:"metric" binding:"required"`
	Tags        string `json:"tags" binding:"exists"`
	Step        int    `json:"step" binding:"required"`
}

Jump to

Keyboard shortcuts

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