Documentation ¶
Index ¶
- type Client
- func (c *Client) ChangeAllMaxSize(newMaxSize int)
- func (c *Client) ChangeAllMinSize(newMinSize int)
- func (c *Client) ChangeMaxSize(scalingGroupID string, newMaxSize int) error
- func (c *Client) ChangeMinSize(scalingGroupID string, newMinSize int) error
- func (c *Client) DisableEventTriggerTask(alarmTaskID string) error
- func (c *Client) EnableEventTriggerTask(alarmTaskID string) error
- func (c *Client) ModifyDownScalingRule(scalingGroupName string, adjValue int) error
- func (c *Client) ModifyUpScalingRule(scalingGroupName string, adjValue int) error
- func (c *Client) QueryETInfo(scalingGroupID string) ([]ETInfo, error)
- func (c *Client) QuerySCInfo(id string) ([]SCInfo, error)
- func (c *Client) QuerySGInfo(name string) ([]SGInfo, error)
- func (c *Client) RemoveUpscaledInstances(scalingGroupName string, retryCount int, retryInterval int) (bool, error)
- func (c *Client) UpscaleInstances(scalingGroupName string, numToAdd int) (bool, error)
- type ETInfo
- type SCInfo
- type SGInfo
- type SRInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client struct
func (*Client) ChangeAllMaxSize ¶
ChangeAllMaxSize will change the max size of all scaling groups
func (*Client) ChangeAllMinSize ¶
ChangeAllMinSize will change the min size of all scaling groups
func (*Client) ChangeMaxSize ¶
ChangeMaxSize will change the max size of the specified scaling group
func (*Client) ChangeMinSize ¶
ChangeMinSize will change the min size of the specified scaling group
func (*Client) DisableEventTriggerTask ¶
DisableEventTriggerTask will disable the event trigger task
func (*Client) EnableEventTriggerTask ¶
EnableEventTriggerTask will enable the event trigger task
func (*Client) ModifyDownScalingRule ¶
ModifyDownScalingRule will modify downscale scaling rule (scaling rule with "-downscale" suffix)
func (*Client) ModifyUpScalingRule ¶
ModifyUpScalingRule will modify upscale scaling rule (scaling rule with "-upscale" suffix)
func (*Client) QueryETInfo ¶
QueryETInfo queries useful info about an event-trigger task
func (*Client) QuerySCInfo ¶
QuerySCInfo query relatively useful info about a scaling configuration
func (*Client) QuerySGInfo ¶
QuerySGInfo will query relatively useful info about a scaling group
func (*Client) RemoveUpscaledInstances ¶
func (c *Client) RemoveUpscaledInstances(scalingGroupName string, retryCount int, retryInterval int) (bool, error)
RemoveUpscaledInstances will remove currently upscaled instances down to minimum instances number. Removal will happen by executing downscale rule, so instances number will not go below minimum instances number. But we'll remove 80% instead of 100% of total capacity, in case the minimum instance is zero
type ETInfo ¶
type ETInfo struct { AlarmTaskID string Name string MetricName string EvaluationCount int Threshold float64 ComparisonOperator string Enable bool }
ETInfo contains relevant info about an Event-Trigger Task