host

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: Apache-2.0 Imports: 12 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 PutHostGroup added in v0.2.1

func PutHostGroup(c *gin.Context)

func Routes

func Routes(r *gin.Engine)

func SetMaintain added in v0.2.1

func SetMaintain(c *gin.Context)

func UnBindAHostToHostGroup

func UnBindAHostToHostGroup(c *gin.Context)

func UnBindTemplateToGroup

func UnBindTemplateToGroup(c *gin.Context)

func UnsetMaintain added in v0.2.1

func UnsetMaintain(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 APIHostGroupInputs added in v0.2.1

type APIHostGroupInputs struct {
	ID   int64  `json:"id" binding:"required"`
	Name string `json:"grp_name" binding:"required"`
}

type APISetMaintainInput added in v0.2.1

type APISetMaintainInput struct {
	Hosts []string `json:"hosts"`
	Ids   []int64  `json:"ids"`
	Begin int64    `json:"maintain_begin" binding:"required"`
	End   int64    `json:"maintain_end" binding:"required"`
}

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 APIUnsetMaintainInput added in v0.2.1

type APIUnsetMaintainInput struct {
	Hosts []string `json:"hosts"`
	Ids   []int64  `json:"ids"`
}

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