autoscale

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity

type Entity struct {
	Id                     string
	Name                   string
	ResourceType           string
	ThresholdPeriodMinutes int64
	ScaleUpIncrement       int64
	Range                  Range
	ScaleUpThreshold       int64
	ScaleDownThreshold     int64
	ScaleDownWindow        ScaleDownWindow
	Links                  []models.LinkEntity
}

type GetReq

type GetReq struct {
	Policy `argument:"composed" URIParam:"PolicyId" json:"-"`
}

type ListReq

type ListReq struct {
}

type Policy

type Policy struct {
	PolicyId   string
	PolicyName string
}

func (*Policy) GetNames

func (p *Policy) GetNames(cn base.Connection, property string) ([]string, error)

func (*Policy) InferID

func (p *Policy) InferID(cn base.Connection) error

func (*Policy) Validate

func (p *Policy) Validate() error

type Range

type Range struct {
	Min int
	Max int
}

type RemoveOnServerReq

type RemoveOnServerReq struct {
	server.Server `argument:"composed" URIParam:"ServerId" json:"-"`
}

type ScaleDownWindow

type ScaleDownWindow struct {
	Start string
	End   string
}

type SetOnServerReq

type SetOnServerReq struct {
	server.Server `argument:"composed" URIParam:"ServerId"`
	PolicyId      string `json:"Id"`
	PolicyName    string
}

func (*SetOnServerReq) GetNames

func (p *SetOnServerReq) GetNames(cn base.Connection, property string) ([]string, error)

func (*SetOnServerReq) InferID

func (p *SetOnServerReq) InferID(cn base.Connection) error

func (*SetOnServerReq) Validate

func (p *SetOnServerReq) Validate() error

type SetOnServerRes

type SetOnServerRes struct {
	Id    string
	Links []models.LinkEntity
}

type ViewOnServerReq

type ViewOnServerReq struct {
	server.Server `argument:"composed" URIParam:"ServerId"`
}

type ViewOnServerRes

type ViewOnServerRes struct {
	Id    string
	Links []models.LinkEntity
}

Jump to

Keyboard shortcuts

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