alicloud.ess.ScalingRule
Import
ESS scaling rule can be imported using the id, e.g.
$ pulumi import alicloud:ess/scalingRule:ScalingRule example abc123456
Create ScalingRule Resource
new ScalingRule(name: string, args: ScalingRuleArgs, opts?: CustomResourceOptions);
@overload
def ScalingRule(resource_name: str,
opts: Optional[ResourceOptions] = None,
adjustment_type: Optional[str] = None,
adjustment_value: Optional[int] = None,
cooldown: Optional[int] = None,
disable_scale_in: Optional[bool] = None,
estimated_instance_warmup: Optional[int] = None,
metric_name: Optional[str] = None,
scaling_group_id: Optional[str] = None,
scaling_rule_name: Optional[str] = None,
scaling_rule_type: Optional[str] = None,
step_adjustments: Optional[Sequence[ScalingRuleStepAdjustmentArgs]] = None,
target_value: Optional[float] = None)
@overload
def ScalingRule(resource_name: str,
args: ScalingRuleArgs,
opts: Optional[ResourceOptions] = None)
func NewScalingRule(ctx *Context, name string, args ScalingRuleArgs, opts ...ResourceOption) (*ScalingRule, error)
public ScalingRule(string name, ScalingRuleArgs args, CustomResourceOptions? opts = null)
public ScalingRule(String name, ScalingRuleArgs args)
public ScalingRule(String name, ScalingRuleArgs args, CustomResourceOptions options)
type: alicloud:ess:ScalingRule
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScalingRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ScalingRuleArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ScalingRuleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScalingRuleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScalingRuleArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ScalingRule Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ScalingRule resource accepts the following input properties:
- Scaling
Group stringId ID of the scaling group of a scaling rule.
- Adjustment
Type string Adjustment mode of a scaling rule. Optional values:
- QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
- PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
- TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
- Adjustment
Value int The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:
- QuantityChangeInCapacity:(0, 500] U (-500, 0]
- PercentChangeInCapacity:[0, 10000] U [-100, 0]
- TotalCapacity:[0, 1000]
- Cooldown int
The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.
- Disable
Scale boolIn Indicates whether scale in by the target tracking policy is disabled. Default to false.
- Estimated
Instance intWarmup The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.
- Metric
Name string A CloudMonitor metric name.
- Scaling
Rule stringName Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is scaling rule id.- Scaling
Rule stringType The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".
- Step
Adjustments List<Pulumi.Ali Cloud. Ess. Inputs. Scaling Rule Step Adjustment Args> Steps for StepScalingRule. See Block stepAdjustment below for details.
- Target
Value double The target value for the metric.
- Scaling
Group stringId ID of the scaling group of a scaling rule.
- Adjustment
Type string Adjustment mode of a scaling rule. Optional values:
- QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
- PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
- TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
- Adjustment
Value int The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:
- QuantityChangeInCapacity:(0, 500] U (-500, 0]
- PercentChangeInCapacity:[0, 10000] U [-100, 0]
- TotalCapacity:[0, 1000]
- Cooldown int
The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.
- Disable
Scale boolIn Indicates whether scale in by the target tracking policy is disabled. Default to false.
- Estimated
Instance intWarmup The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.
- Metric
Name string A CloudMonitor metric name.
- Scaling
Rule stringName Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is scaling rule id.- Scaling
Rule stringType The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".
- Step
Adjustments []ScalingRule Step Adjustment Args Steps for StepScalingRule. See Block stepAdjustment below for details.
- Target
Value float64 The target value for the metric.
- scaling
Group StringId ID of the scaling group of a scaling rule.
- adjustment
Type String Adjustment mode of a scaling rule. Optional values:
- QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
- PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
- TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
- adjustment
Value Integer The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:
- QuantityChangeInCapacity:(0, 500] U (-500, 0]
- PercentChangeInCapacity:[0, 10000] U [-100, 0]
- TotalCapacity:[0, 1000]
- cooldown Integer
The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.
- disable
Scale BooleanIn Indicates whether scale in by the target tracking policy is disabled. Default to false.
- estimated
Instance IntegerWarmup The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.
- metric
Name String A CloudMonitor metric name.
- scaling
Rule StringName Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is scaling rule id.- scaling
Rule StringType The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".
- step
Adjustments List<ScalingRule Step Adjustment Args> Steps for StepScalingRule. See Block stepAdjustment below for details.
- target
Value Double The target value for the metric.
- scaling
Group stringId ID of the scaling group of a scaling rule.
- adjustment
Type string Adjustment mode of a scaling rule. Optional values:
- QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
- PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
- TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
- adjustment
Value number The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:
- QuantityChangeInCapacity:(0, 500] U (-500, 0]
- PercentChangeInCapacity:[0, 10000] U [-100, 0]
- TotalCapacity:[0, 1000]
- cooldown number
The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.
- disable
Scale booleanIn Indicates whether scale in by the target tracking policy is disabled. Default to false.
- estimated
Instance numberWarmup The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.
- metric
Name string A CloudMonitor metric name.
- scaling
Rule stringName Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is scaling rule id.- scaling
Rule stringType The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".
- step
Adjustments ScalingRule Step Adjustment Args[] Steps for StepScalingRule. See Block stepAdjustment below for details.
- target
Value number The target value for the metric.
- scaling_
group_ strid ID of the scaling group of a scaling rule.
- adjustment_
type str Adjustment mode of a scaling rule. Optional values:
- QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
- PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
- TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
- adjustment_
value int The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:
- QuantityChangeInCapacity:(0, 500] U (-500, 0]
- PercentChangeInCapacity:[0, 10000] U [-100, 0]
- TotalCapacity:[0, 1000]
- cooldown int
The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.
- disable_
scale_ boolin Indicates whether scale in by the target tracking policy is disabled. Default to false.
- estimated_
instance_ intwarmup The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.
- metric_
name str A CloudMonitor metric name.
- scaling_
rule_ strname Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is scaling rule id.- scaling_
rule_ strtype The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".
- step_
adjustments Sequence[ScalingRule Step Adjustment Args] Steps for StepScalingRule. See Block stepAdjustment below for details.
- target_
value float The target value for the metric.
- scaling
Group StringId ID of the scaling group of a scaling rule.
- adjustment
Type String Adjustment mode of a scaling rule. Optional values:
- QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
- PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
- TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
- adjustment
Value Number The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:
- QuantityChangeInCapacity:(0, 500] U (-500, 0]
- PercentChangeInCapacity:[0, 10000] U [-100, 0]
- TotalCapacity:[0, 1000]
- cooldown Number
The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.
- disable
Scale BooleanIn Indicates whether scale in by the target tracking policy is disabled. Default to false.
- estimated
Instance NumberWarmup The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.
- metric
Name String A CloudMonitor metric name.
- scaling
Rule StringName Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is scaling rule id.- scaling
Rule StringType The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".
- step
Adjustments List<Property Map> Steps for StepScalingRule. See Block stepAdjustment below for details.
- target
Value Number The target value for the metric.
Outputs
All input properties are implicitly available as output properties. Additionally, the ScalingRule resource produces the following output properties:
Look up Existing ScalingRule Resource
Get an existing ScalingRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ScalingRuleState, opts?: CustomResourceOptions): ScalingRule
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
adjustment_type: Optional[str] = None,
adjustment_value: Optional[int] = None,
ari: Optional[str] = None,
cooldown: Optional[int] = None,
disable_scale_in: Optional[bool] = None,
estimated_instance_warmup: Optional[int] = None,
metric_name: Optional[str] = None,
scaling_group_id: Optional[str] = None,
scaling_rule_name: Optional[str] = None,
scaling_rule_type: Optional[str] = None,
step_adjustments: Optional[Sequence[ScalingRuleStepAdjustmentArgs]] = None,
target_value: Optional[float] = None) -> ScalingRule
func GetScalingRule(ctx *Context, name string, id IDInput, state *ScalingRuleState, opts ...ResourceOption) (*ScalingRule, error)
public static ScalingRule Get(string name, Input<string> id, ScalingRuleState? state, CustomResourceOptions? opts = null)
public static ScalingRule get(String name, Output<String> id, ScalingRuleState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Adjustment
Type string Adjustment mode of a scaling rule. Optional values:
- QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
- PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
- TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
- Adjustment
Value int The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:
- QuantityChangeInCapacity:(0, 500] U (-500, 0]
- PercentChangeInCapacity:[0, 10000] U [-100, 0]
- TotalCapacity:[0, 1000]
- Ari string
- Cooldown int
The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.
- Disable
Scale boolIn Indicates whether scale in by the target tracking policy is disabled. Default to false.
- Estimated
Instance intWarmup The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.
- Metric
Name string A CloudMonitor metric name.
- Scaling
Group stringId ID of the scaling group of a scaling rule.
- Scaling
Rule stringName Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is scaling rule id.- Scaling
Rule stringType The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".
- Step
Adjustments List<Pulumi.Ali Cloud. Ess. Inputs. Scaling Rule Step Adjustment Args> Steps for StepScalingRule. See Block stepAdjustment below for details.
- Target
Value double The target value for the metric.
- Adjustment
Type string Adjustment mode of a scaling rule. Optional values:
- QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
- PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
- TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
- Adjustment
Value int The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:
- QuantityChangeInCapacity:(0, 500] U (-500, 0]
- PercentChangeInCapacity:[0, 10000] U [-100, 0]
- TotalCapacity:[0, 1000]
- Ari string
- Cooldown int
The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.
- Disable
Scale boolIn Indicates whether scale in by the target tracking policy is disabled. Default to false.
- Estimated
Instance intWarmup The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.
- Metric
Name string A CloudMonitor metric name.
- Scaling
Group stringId ID of the scaling group of a scaling rule.
- Scaling
Rule stringName Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is scaling rule id.- Scaling
Rule stringType The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".
- Step
Adjustments []ScalingRule Step Adjustment Args Steps for StepScalingRule. See Block stepAdjustment below for details.
- Target
Value float64 The target value for the metric.
- adjustment
Type String Adjustment mode of a scaling rule. Optional values:
- QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
- PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
- TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
- adjustment
Value Integer The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:
- QuantityChangeInCapacity:(0, 500] U (-500, 0]
- PercentChangeInCapacity:[0, 10000] U [-100, 0]
- TotalCapacity:[0, 1000]
- ari String
- cooldown Integer
The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.
- disable
Scale BooleanIn Indicates whether scale in by the target tracking policy is disabled. Default to false.
- estimated
Instance IntegerWarmup The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.
- metric
Name String A CloudMonitor metric name.
- scaling
Group StringId ID of the scaling group of a scaling rule.
- scaling
Rule StringName Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is scaling rule id.- scaling
Rule StringType The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".
- step
Adjustments List<ScalingRule Step Adjustment Args> Steps for StepScalingRule. See Block stepAdjustment below for details.
- target
Value Double The target value for the metric.
- adjustment
Type string Adjustment mode of a scaling rule. Optional values:
- QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
- PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
- TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
- adjustment
Value number The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:
- QuantityChangeInCapacity:(0, 500] U (-500, 0]
- PercentChangeInCapacity:[0, 10000] U [-100, 0]
- TotalCapacity:[0, 1000]
- ari string
- cooldown number
The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.
- disable
Scale booleanIn Indicates whether scale in by the target tracking policy is disabled. Default to false.
- estimated
Instance numberWarmup The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.
- metric
Name string A CloudMonitor metric name.
- scaling
Group stringId ID of the scaling group of a scaling rule.
- scaling
Rule stringName Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is scaling rule id.- scaling
Rule stringType The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".
- step
Adjustments ScalingRule Step Adjustment Args[] Steps for StepScalingRule. See Block stepAdjustment below for details.
- target
Value number The target value for the metric.
- adjustment_
type str Adjustment mode of a scaling rule. Optional values:
- QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
- PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
- TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
- adjustment_
value int The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:
- QuantityChangeInCapacity:(0, 500] U (-500, 0]
- PercentChangeInCapacity:[0, 10000] U [-100, 0]
- TotalCapacity:[0, 1000]
- ari str
- cooldown int
The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.
- disable_
scale_ boolin Indicates whether scale in by the target tracking policy is disabled. Default to false.
- estimated_
instance_ intwarmup The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.
- metric_
name str A CloudMonitor metric name.
- scaling_
group_ strid ID of the scaling group of a scaling rule.
- scaling_
rule_ strname Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is scaling rule id.- scaling_
rule_ strtype The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".
- step_
adjustments Sequence[ScalingRule Step Adjustment Args] Steps for StepScalingRule. See Block stepAdjustment below for details.
- target_
value float The target value for the metric.
- adjustment
Type String Adjustment mode of a scaling rule. Optional values:
- QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
- PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
- TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
- adjustment
Value Number The number of ECS instances to be adjusted in the scaling rule. This parameter is required and applicable only to simple scaling rules. The number of ECS instances to be adjusted in a single scaling activity cannot exceed 500. Value range:
- QuantityChangeInCapacity:(0, 500] U (-500, 0]
- PercentChangeInCapacity:[0, 10000] U [-100, 0]
- TotalCapacity:[0, 1000]
- ari String
- cooldown Number
The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.
- disable
Scale BooleanIn Indicates whether scale in by the target tracking policy is disabled. Default to false.
- estimated
Instance NumberWarmup The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.
- metric
Name String A CloudMonitor metric name.
- scaling
Group StringId ID of the scaling group of a scaling rule.
- scaling
Rule StringName Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores
_
, hypens-
, and decimal point.
. If this parameter value is not specified, the default value is scaling rule id.- scaling
Rule StringType The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".
- step
Adjustments List<Property Map> Steps for StepScalingRule. See Block stepAdjustment below for details.
- target
Value Number The target value for the metric.
Supporting Types
ScalingRuleStepAdjustment
- Metric
Interval stringLower Bound - Metric
Interval stringUpper Bound - Scaling
Adjustment int
- Metric
Interval stringLower Bound - Metric
Interval stringUpper Bound - Scaling
Adjustment int
- metric
Interval StringLower Bound - metric
Interval StringUpper Bound - scaling
Adjustment Integer
- metric
Interval stringLower Bound - metric
Interval stringUpper Bound - scaling
Adjustment number
- metric
Interval StringLower Bound - metric
Interval StringUpper Bound - scaling
Adjustment Number
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.