Class ScalingRuleArgs
Inherited Members
Namespace: Pulumi.AliCloud.Ess
Assembly: Pulumi.AliCloud.dll
Syntax
public sealed class ScalingRuleArgs : ResourceArgs
Constructors
View SourceScalingRuleArgs()
Declaration
public ScalingRuleArgs()
Properties
View SourceAdjustmentType
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.
Declaration
public Input<string> AdjustmentType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
AdjustmentValue
Adjusted value of a scaling rule. Value range:
- QuantityChangeInCapacity:(0, 500] U (-500, 0]
- PercentChangeInCapacity:[0, 10000] U [-100, 0]
- TotalCapacity:[0, 1000]
Declaration
public Input<int> AdjustmentValue { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
Cooldown
Cool-down time of a scaling rule. 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.
Declaration
public Input<int> Cooldown { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
DisableScaleIn
Indicates whether scale in by the target tracking policy is disabled. Default to false.
Declaration
public Input<bool> DisableScaleIn { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |
EstimatedInstanceWarmup
The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.
Declaration
public Input<int> EstimatedInstanceWarmup { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
MetricName
A CloudMonitor metric name.
Declaration
public Input<string> MetricName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ScalingGroupId
ID of the scaling group of a scaling rule.
Declaration
public Input<string> ScalingGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ScalingRuleName
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.
Declaration
public Input<string> ScalingRuleName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ScalingRuleType
The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".
Declaration
public Input<string> ScalingRuleType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
StepAdjustments
Steps for StepScalingRule. See Block stepAdjustment below for details.
Declaration
public InputList<ScalingRuleStepAdjustmentArgs> StepAdjustments { get; set; }
Property Value
| Type | Description |
|---|---|
| InputList<ScalingRuleStepAdjustmentArgs> |
TargetValue
The target value for the metric.
Declaration
public Input<double> TargetValue { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Double> |