Documentation
¶
Index ¶
Constants ¶
View Source
const AutoScaleDiskActionGroup = "autoScaleDisk"
View Source
const AutoScaleNodesHorizontalActionGroup = "autoScaleNodesHorizontal"
View Source
const AutoScaleNodesVerticalActionGroup = "autoScaleNodesVertical"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionResponse ¶
type ActionResponse struct { Group string `json:"group"` Enabled bool `json:"enabled"` Params json.RawMessage `json:"params"` ID string `json:"id,omitempty"` TenantID string `json:"tenant_id"` ServiceID string `json:"service_id"` ServiceName string `json:"service_name"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type AutoScaleAction ¶
type AutoScaleAction struct { Group string `json:"group"` Enabled bool `json:"enabled"` Params json.RawMessage `json:"params"` }
func NewAutoScaleDiskAction ¶
func NewAutoScaleDiskAction(maxStorageSizeGBs int64) AutoScaleAction
func NewAutoScaleNodesHorizontalAction ¶
func NewAutoScaleNodesHorizontalAction(minNodes int64, maxNodes int64) AutoScaleAction
func NewAutoScaleNodesVerticalAction ¶
func NewAutoScaleNodesVerticalAction(minNodeSize string, maxNodeSize string) AutoScaleAction
type AutoScaleDiskActionParams ¶
type AutoScaleDiskActionParams struct {
MaxStorageSizeGBs int64 `json:"max_storage_size_gbs"`
}
AutoScaleDiskActionParams is an autoscale action that scales disk size
type AutoScaleNodesHorizontalActionParams ¶
type AutoScaleNodesHorizontalActionParams struct { MinNodes int64 `json:"min_nodes"` MaxNodes int64 `json:"max_nodes"` }
AutoScaleNodesHorizontalActionParams is an autoscale action that scales nodes horizontally
type AutoScaleNodesVerticalActionParams ¶
type AutoScaleNodesVerticalActionParams struct { MaxNodeSize string `json:"max_node_size"` MinNodeSize string `json:"min_node_size"` }
AutoScaleNodesVerticalActionParams is an autoscale action that scales nodes vertically
type SetAutonomousActionsRequest ¶
type SetAutonomousActionsRequest struct { ServiceID string `json:"service_id"` ServiceName string `json:"service_name"` Actions []AutoScaleAction }
Click to show internal directories.
Click to hide internal directories.