Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AutoScale ¶
type AutoScale struct { Name string `json:"name"` ScaleUp ScaleAction `json:"scaleUp"` ScaleDown ScaleAction `json:"scaleDown"` MinUnits int `json:"minUnits"` Process string `json:"process"` }
AutoScale represents a auto scale configuration
func FindByName ¶
FindByName finds auto scale by name
func (*AutoScale) MarshalJSON ¶
MarshalJSON marshals AutoScale in json format
type ScaleAction ¶
type ScaleAction struct { Aggregator string `json:"aggregator"` Metric string `json:"metric"` Operator string `json:"operator"` Value string `json:"value"` Step string `json:"step"` Wait time.Duration `json:"wait"` }
ScaleAction represents a auto scale action like scale up or scale down.
Click to show internal directories.
Click to hide internal directories.