ScalingRuleArgs

data class ScalingRuleArgs(val adjustmentType: Output<String>? = null, val adjustmentValue: Output<Int>? = null, val cooldown: Output<Int>? = null, val disableScaleIn: Output<Boolean>? = null, val estimatedInstanceWarmup: Output<Int>? = null, val metricName: Output<String>? = null, val scalingGroupId: Output<String>? = null, val scalingRuleName: Output<String>? = null, val scalingRuleType: Output<String>? = null, val stepAdjustments: Output<List<ScalingRuleStepAdjustmentArgs>>? = null, val targetValue: Output<Double>? = null) : ConvertibleToJava<ScalingRuleArgs>

Import

ESS scaling rule can be imported using the id, e.g.

$ pulumi import alicloud:ess/scalingRule:ScalingRule example abc123456

Constructors

Link copied to clipboard
fun ScalingRuleArgs(adjustmentType: Output<String>? = null, adjustmentValue: Output<Int>? = null, cooldown: Output<Int>? = null, disableScaleIn: Output<Boolean>? = null, estimatedInstanceWarmup: Output<Int>? = null, metricName: Output<String>? = null, scalingGroupId: Output<String>? = null, scalingRuleName: Output<String>? = null, scalingRuleType: Output<String>? = null, stepAdjustments: Output<List<ScalingRuleStepAdjustmentArgs>>? = null, targetValue: Output<Double>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ScalingRuleArgs

Properties

Link copied to clipboard
val adjustmentType: Output<String>? = null

Adjustment mode of a scaling rule. Optional values:

Link copied to clipboard
val adjustmentValue: Output<Int>? = null

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:

Link copied to clipboard
val cooldown: Output<Int>? = null

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.

Link copied to clipboard
val disableScaleIn: Output<Boolean>? = null

Indicates whether scale in by the target tracking policy is disabled. Default to false.

Link copied to clipboard
val estimatedInstanceWarmup: Output<Int>? = null

The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.

Link copied to clipboard
val metricName: Output<String>? = null

A CloudMonitor metric name.

Link copied to clipboard
val scalingGroupId: Output<String>? = null

ID of the scaling group of a scaling rule.

Link copied to clipboard
val scalingRuleName: Output<String>? = null

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.

Link copied to clipboard
val scalingRuleType: Output<String>? = null

The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".

Link copied to clipboard

Steps for StepScalingRule. See Block stepAdjustment below for details.

Link copied to clipboard
val targetValue: Output<Double>? = null

The target value for the metric.