伸缩规则用于定义触发扩缩容行为的条件和方式,包括规则类型、触发时间、伸缩行为、冷却时间等。在同一个伸缩组中,您可以启用多条伸缩规则,满足任意类型时均会执行伸缩动作。但当同一时间满足多个类型时,将优先执行手动触发的伸缩行为。
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
autoScalingScalingPolicyDemo:
type: volcenginecc:autoscaling:ScalingPolicy
name: AutoScalingScalingPolicyDemo
properties:
scalingGroupId: scg-ye9vu9ztco9ht5lxxxxx
scalingPolicyName: AutoScalingScalingPolicyDemo-定时任务
scalingPolicyType: Scheduled
adjustmentType: PercentChangeInCapacity
adjustmentValue: 1
cooldown: 86400
scheduledPolicy:
launch_time: 2025-12-21T11:58Z
recurrence_end_time: ""
recurrence_type: ""
recurrence_value: ""
isEnabledPolicy: false
Create ScalingPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ScalingPolicy(name: string, args: ScalingPolicyArgs, opts?: CustomResourceOptions);@overload
def ScalingPolicy(resource_name: str,
args: ScalingPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ScalingPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
scaling_group_id: Optional[str] = None,
scaling_policy_name: Optional[str] = None,
scaling_policy_type: Optional[str] = None,
adjustment_type: Optional[str] = None,
adjustment_value: Optional[int] = None,
alarm_policy: Optional[ScalingPolicyAlarmPolicyArgs] = None,
cooldown: Optional[int] = None,
is_enabled_policy: Optional[bool] = None,
scheduled_policy: Optional[ScalingPolicyScheduledPolicyArgs] = None)func NewScalingPolicy(ctx *Context, name string, args ScalingPolicyArgs, opts ...ResourceOption) (*ScalingPolicy, error)public ScalingPolicy(string name, ScalingPolicyArgs args, CustomResourceOptions? opts = null)
public ScalingPolicy(String name, ScalingPolicyArgs args)
public ScalingPolicy(String name, ScalingPolicyArgs args, CustomResourceOptions options)
type: volcenginecc:autoscaling:ScalingPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ScalingPolicyArgs
- 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 ScalingPolicyArgs
- 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 ScalingPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ScalingPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ScalingPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var scalingPolicyResource = new Volcenginecc.Autoscaling.ScalingPolicy("scalingPolicyResource", new()
{
ScalingGroupId = "string",
ScalingPolicyName = "string",
ScalingPolicyType = "string",
AdjustmentType = "string",
AdjustmentValue = 0,
AlarmPolicy = new Volcenginecc.Autoscaling.Inputs.ScalingPolicyAlarmPolicyArgs
{
Condition = new Volcenginecc.Autoscaling.Inputs.ScalingPolicyAlarmPolicyConditionArgs
{
ComparisonOperator = "string",
MetricName = "string",
MetricUnit = "string",
Threshold = "string",
},
ConditionOperator = "string",
Conditions = new[]
{
new Volcenginecc.Autoscaling.Inputs.ScalingPolicyAlarmPolicyConditionArgs
{
ComparisonOperator = "string",
MetricName = "string",
MetricUnit = "string",
Threshold = "string",
},
},
Effective = "string",
EvaluationCount = 0,
RuleType = "string",
},
Cooldown = 0,
IsEnabledPolicy = false,
ScheduledPolicy = new Volcenginecc.Autoscaling.Inputs.ScalingPolicyScheduledPolicyArgs
{
LaunchTime = "string",
LaunchTimeRead = "string",
RecurrenceEndTime = "string",
RecurrenceEndTimeRead = "string",
RecurrenceStartTime = "string",
RecurrenceType = "string",
RecurrenceValue = "string",
},
});
example, err := autoscaling.NewScalingPolicy(ctx, "scalingPolicyResource", &autoscaling.ScalingPolicyArgs{
ScalingGroupId: pulumi.String("string"),
ScalingPolicyName: pulumi.String("string"),
ScalingPolicyType: pulumi.String("string"),
AdjustmentType: pulumi.String("string"),
AdjustmentValue: pulumi.Int(0),
AlarmPolicy: &autoscaling.ScalingPolicyAlarmPolicyArgs{
Condition: &autoscaling.ScalingPolicyAlarmPolicyConditionArgs{
ComparisonOperator: pulumi.String("string"),
MetricName: pulumi.String("string"),
MetricUnit: pulumi.String("string"),
Threshold: pulumi.String("string"),
},
ConditionOperator: pulumi.String("string"),
Conditions: autoscaling.ScalingPolicyAlarmPolicyConditionArray{
&autoscaling.ScalingPolicyAlarmPolicyConditionArgs{
ComparisonOperator: pulumi.String("string"),
MetricName: pulumi.String("string"),
MetricUnit: pulumi.String("string"),
Threshold: pulumi.String("string"),
},
},
Effective: pulumi.String("string"),
EvaluationCount: pulumi.Int(0),
RuleType: pulumi.String("string"),
},
Cooldown: pulumi.Int(0),
IsEnabledPolicy: pulumi.Bool(false),
ScheduledPolicy: &autoscaling.ScalingPolicyScheduledPolicyArgs{
LaunchTime: pulumi.String("string"),
LaunchTimeRead: pulumi.String("string"),
RecurrenceEndTime: pulumi.String("string"),
RecurrenceEndTimeRead: pulumi.String("string"),
RecurrenceStartTime: pulumi.String("string"),
RecurrenceType: pulumi.String("string"),
RecurrenceValue: pulumi.String("string"),
},
})
var scalingPolicyResource = new ScalingPolicy("scalingPolicyResource", ScalingPolicyArgs.builder()
.scalingGroupId("string")
.scalingPolicyName("string")
.scalingPolicyType("string")
.adjustmentType("string")
.adjustmentValue(0)
.alarmPolicy(ScalingPolicyAlarmPolicyArgs.builder()
.condition(ScalingPolicyAlarmPolicyConditionArgs.builder()
.comparisonOperator("string")
.metricName("string")
.metricUnit("string")
.threshold("string")
.build())
.conditionOperator("string")
.conditions(ScalingPolicyAlarmPolicyConditionArgs.builder()
.comparisonOperator("string")
.metricName("string")
.metricUnit("string")
.threshold("string")
.build())
.effective("string")
.evaluationCount(0)
.ruleType("string")
.build())
.cooldown(0)
.isEnabledPolicy(false)
.scheduledPolicy(ScalingPolicyScheduledPolicyArgs.builder()
.launchTime("string")
.launchTimeRead("string")
.recurrenceEndTime("string")
.recurrenceEndTimeRead("string")
.recurrenceStartTime("string")
.recurrenceType("string")
.recurrenceValue("string")
.build())
.build());
scaling_policy_resource = volcenginecc.autoscaling.ScalingPolicy("scalingPolicyResource",
scaling_group_id="string",
scaling_policy_name="string",
scaling_policy_type="string",
adjustment_type="string",
adjustment_value=0,
alarm_policy={
"condition": {
"comparison_operator": "string",
"metric_name": "string",
"metric_unit": "string",
"threshold": "string",
},
"condition_operator": "string",
"conditions": [{
"comparison_operator": "string",
"metric_name": "string",
"metric_unit": "string",
"threshold": "string",
}],
"effective": "string",
"evaluation_count": 0,
"rule_type": "string",
},
cooldown=0,
is_enabled_policy=False,
scheduled_policy={
"launch_time": "string",
"launch_time_read": "string",
"recurrence_end_time": "string",
"recurrence_end_time_read": "string",
"recurrence_start_time": "string",
"recurrence_type": "string",
"recurrence_value": "string",
})
const scalingPolicyResource = new volcenginecc.autoscaling.ScalingPolicy("scalingPolicyResource", {
scalingGroupId: "string",
scalingPolicyName: "string",
scalingPolicyType: "string",
adjustmentType: "string",
adjustmentValue: 0,
alarmPolicy: {
condition: {
comparisonOperator: "string",
metricName: "string",
metricUnit: "string",
threshold: "string",
},
conditionOperator: "string",
conditions: [{
comparisonOperator: "string",
metricName: "string",
metricUnit: "string",
threshold: "string",
}],
effective: "string",
evaluationCount: 0,
ruleType: "string",
},
cooldown: 0,
isEnabledPolicy: false,
scheduledPolicy: {
launchTime: "string",
launchTimeRead: "string",
recurrenceEndTime: "string",
recurrenceEndTimeRead: "string",
recurrenceStartTime: "string",
recurrenceType: "string",
recurrenceValue: "string",
},
});
type: volcenginecc:autoscaling:ScalingPolicy
properties:
adjustmentType: string
adjustmentValue: 0
alarmPolicy:
condition:
comparisonOperator: string
metricName: string
metricUnit: string
threshold: string
conditionOperator: string
conditions:
- comparisonOperator: string
metricName: string
metricUnit: string
threshold: string
effective: string
evaluationCount: 0
ruleType: string
cooldown: 0
isEnabledPolicy: false
scalingGroupId: string
scalingPolicyName: string
scalingPolicyType: string
scheduledPolicy:
launchTime: string
launchTimeRead: string
recurrenceEndTime: string
recurrenceEndTimeRead: string
recurrenceStartTime: string
recurrenceType: string
recurrenceValue: string
ScalingPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ScalingPolicy resource accepts the following input properties:
- Scaling
Group stringId - 伸缩组ID。
- Scaling
Policy stringName - 伸缩规则名称。
- Scaling
Policy stringType - 伸缩规则的类型,取值:Scheduled:定时任务。Recurrence:周期任务。Alarm:报警任务。
- Adjustment
Type string - 伸缩规则的伸缩行为,适用于简单规则和步进规则,QuantityChangeInCapacity:增加或减少指定数量的实例。PercentChangeInCapacity:增加或减少指定比例的实例。TotalCapacity: 将当前伸缩组的实例数量调整到指定数量。
- Adjustment
Value int - 伸缩行为的调整数值,适用于简单规则和步进规则,当AdjustmentType参数取值为QuantityChangeInCapacity时:-100 - 100,不允许为0,单位:个。当AdjustmentType参数取值为PercentChangeInCapacity时:-100 - 10000,不允许为0,单位:%。当AdjustmentType参数取值为TotalCapacity时:默认为0 - 100,单位:个。
- Alarm
Policy Volcengine.Scaling Policy Alarm Policy - 报警任务的详细信息。
- Cooldown int
- 伸缩规则的冷却时间。 取值:0-86400,单位:秒,不填则默认使用伸缩组的冷却时间。
- Is
Enabled boolPolicy - 伸缩规则的状态。取值:true:启用。false:停用。需保证伸缩组的状态为Active。
- Scheduled
Policy Volcengine.Scaling Policy Scheduled Policy - 定时任务/周期任务的详细信息。
- Scaling
Group stringId - 伸缩组ID。
- Scaling
Policy stringName - 伸缩规则名称。
- Scaling
Policy stringType - 伸缩规则的类型,取值:Scheduled:定时任务。Recurrence:周期任务。Alarm:报警任务。
- Adjustment
Type string - 伸缩规则的伸缩行为,适用于简单规则和步进规则,QuantityChangeInCapacity:增加或减少指定数量的实例。PercentChangeInCapacity:增加或减少指定比例的实例。TotalCapacity: 将当前伸缩组的实例数量调整到指定数量。
- Adjustment
Value int - 伸缩行为的调整数值,适用于简单规则和步进规则,当AdjustmentType参数取值为QuantityChangeInCapacity时:-100 - 100,不允许为0,单位:个。当AdjustmentType参数取值为PercentChangeInCapacity时:-100 - 10000,不允许为0,单位:%。当AdjustmentType参数取值为TotalCapacity时:默认为0 - 100,单位:个。
- Alarm
Policy ScalingPolicy Alarm Policy Args - 报警任务的详细信息。
- Cooldown int
- 伸缩规则的冷却时间。 取值:0-86400,单位:秒,不填则默认使用伸缩组的冷却时间。
- Is
Enabled boolPolicy - 伸缩规则的状态。取值:true:启用。false:停用。需保证伸缩组的状态为Active。
- Scheduled
Policy ScalingPolicy Scheduled Policy Args - 定时任务/周期任务的详细信息。
- scaling
Group StringId - 伸缩组ID。
- scaling
Policy StringName - 伸缩规则名称。
- scaling
Policy StringType - 伸缩规则的类型,取值:Scheduled:定时任务。Recurrence:周期任务。Alarm:报警任务。
- adjustment
Type String - 伸缩规则的伸缩行为,适用于简单规则和步进规则,QuantityChangeInCapacity:增加或减少指定数量的实例。PercentChangeInCapacity:增加或减少指定比例的实例。TotalCapacity: 将当前伸缩组的实例数量调整到指定数量。
- adjustment
Value Integer - 伸缩行为的调整数值,适用于简单规则和步进规则,当AdjustmentType参数取值为QuantityChangeInCapacity时:-100 - 100,不允许为0,单位:个。当AdjustmentType参数取值为PercentChangeInCapacity时:-100 - 10000,不允许为0,单位:%。当AdjustmentType参数取值为TotalCapacity时:默认为0 - 100,单位:个。
- alarm
Policy ScalingPolicy Alarm Policy - 报警任务的详细信息。
- cooldown Integer
- 伸缩规则的冷却时间。 取值:0-86400,单位:秒,不填则默认使用伸缩组的冷却时间。
- is
Enabled BooleanPolicy - 伸缩规则的状态。取值:true:启用。false:停用。需保证伸缩组的状态为Active。
- scheduled
Policy ScalingPolicy Scheduled Policy - 定时任务/周期任务的详细信息。
- scaling
Group stringId - 伸缩组ID。
- scaling
Policy stringName - 伸缩规则名称。
- scaling
Policy stringType - 伸缩规则的类型,取值:Scheduled:定时任务。Recurrence:周期任务。Alarm:报警任务。
- adjustment
Type string - 伸缩规则的伸缩行为,适用于简单规则和步进规则,QuantityChangeInCapacity:增加或减少指定数量的实例。PercentChangeInCapacity:增加或减少指定比例的实例。TotalCapacity: 将当前伸缩组的实例数量调整到指定数量。
- adjustment
Value number - 伸缩行为的调整数值,适用于简单规则和步进规则,当AdjustmentType参数取值为QuantityChangeInCapacity时:-100 - 100,不允许为0,单位:个。当AdjustmentType参数取值为PercentChangeInCapacity时:-100 - 10000,不允许为0,单位:%。当AdjustmentType参数取值为TotalCapacity时:默认为0 - 100,单位:个。
- alarm
Policy ScalingPolicy Alarm Policy - 报警任务的详细信息。
- cooldown number
- 伸缩规则的冷却时间。 取值:0-86400,单位:秒,不填则默认使用伸缩组的冷却时间。
- is
Enabled booleanPolicy - 伸缩规则的状态。取值:true:启用。false:停用。需保证伸缩组的状态为Active。
- scheduled
Policy ScalingPolicy Scheduled Policy - 定时任务/周期任务的详细信息。
- scaling_
group_ strid - 伸缩组ID。
- scaling_
policy_ strname - 伸缩规则名称。
- scaling_
policy_ strtype - 伸缩规则的类型,取值:Scheduled:定时任务。Recurrence:周期任务。Alarm:报警任务。
- adjustment_
type str - 伸缩规则的伸缩行为,适用于简单规则和步进规则,QuantityChangeInCapacity:增加或减少指定数量的实例。PercentChangeInCapacity:增加或减少指定比例的实例。TotalCapacity: 将当前伸缩组的实例数量调整到指定数量。
- adjustment_
value int - 伸缩行为的调整数值,适用于简单规则和步进规则,当AdjustmentType参数取值为QuantityChangeInCapacity时:-100 - 100,不允许为0,单位:个。当AdjustmentType参数取值为PercentChangeInCapacity时:-100 - 10000,不允许为0,单位:%。当AdjustmentType参数取值为TotalCapacity时:默认为0 - 100,单位:个。
- alarm_
policy ScalingPolicy Alarm Policy Args - 报警任务的详细信息。
- cooldown int
- 伸缩规则的冷却时间。 取值:0-86400,单位:秒,不填则默认使用伸缩组的冷却时间。
- is_
enabled_ boolpolicy - 伸缩规则的状态。取值:true:启用。false:停用。需保证伸缩组的状态为Active。
- scheduled_
policy ScalingPolicy Scheduled Policy Args - 定时任务/周期任务的详细信息。
- scaling
Group StringId - 伸缩组ID。
- scaling
Policy StringName - 伸缩规则名称。
- scaling
Policy StringType - 伸缩规则的类型,取值:Scheduled:定时任务。Recurrence:周期任务。Alarm:报警任务。
- adjustment
Type String - 伸缩规则的伸缩行为,适用于简单规则和步进规则,QuantityChangeInCapacity:增加或减少指定数量的实例。PercentChangeInCapacity:增加或减少指定比例的实例。TotalCapacity: 将当前伸缩组的实例数量调整到指定数量。
- adjustment
Value Number - 伸缩行为的调整数值,适用于简单规则和步进规则,当AdjustmentType参数取值为QuantityChangeInCapacity时:-100 - 100,不允许为0,单位:个。当AdjustmentType参数取值为PercentChangeInCapacity时:-100 - 10000,不允许为0,单位:%。当AdjustmentType参数取值为TotalCapacity时:默认为0 - 100,单位:个。
- alarm
Policy Property Map - 报警任务的详细信息。
- cooldown Number
- 伸缩规则的冷却时间。 取值:0-86400,单位:秒,不填则默认使用伸缩组的冷却时间。
- is
Enabled BooleanPolicy - 伸缩规则的状态。取值:true:启用。false:停用。需保证伸缩组的状态为Active。
- scheduled
Policy Property Map - 定时任务/周期任务的详细信息。
Outputs
All input properties are implicitly available as output properties. Additionally, the ScalingPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Scaling
Policy stringId - 伸缩规则ID。
- Status string
- 伸缩规则的状态。取值:Active:已启用。InActive:已停用。需保证伸缩组的状态为Active。
- Id string
- The provider-assigned unique ID for this managed resource.
- Scaling
Policy stringId - 伸缩规则ID。
- Status string
- 伸缩规则的状态。取值:Active:已启用。InActive:已停用。需保证伸缩组的状态为Active。
- id String
- The provider-assigned unique ID for this managed resource.
- scaling
Policy StringId - 伸缩规则ID。
- status String
- 伸缩规则的状态。取值:Active:已启用。InActive:已停用。需保证伸缩组的状态为Active。
- id string
- The provider-assigned unique ID for this managed resource.
- scaling
Policy stringId - 伸缩规则ID。
- status string
- 伸缩规则的状态。取值:Active:已启用。InActive:已停用。需保证伸缩组的状态为Active。
- id str
- The provider-assigned unique ID for this managed resource.
- scaling_
policy_ strid - 伸缩规则ID。
- status str
- 伸缩规则的状态。取值:Active:已启用。InActive:已停用。需保证伸缩组的状态为Active。
- id String
- The provider-assigned unique ID for this managed resource.
- scaling
Policy StringId - 伸缩规则ID。
- status String
- 伸缩规则的状态。取值:Active:已启用。InActive:已停用。需保证伸缩组的状态为Active。
Look up Existing ScalingPolicy Resource
Get an existing ScalingPolicy 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?: ScalingPolicyState, opts?: CustomResourceOptions): ScalingPolicy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
adjustment_type: Optional[str] = None,
adjustment_value: Optional[int] = None,
alarm_policy: Optional[ScalingPolicyAlarmPolicyArgs] = None,
cooldown: Optional[int] = None,
is_enabled_policy: Optional[bool] = None,
scaling_group_id: Optional[str] = None,
scaling_policy_id: Optional[str] = None,
scaling_policy_name: Optional[str] = None,
scaling_policy_type: Optional[str] = None,
scheduled_policy: Optional[ScalingPolicyScheduledPolicyArgs] = None,
status: Optional[str] = None) -> ScalingPolicyfunc GetScalingPolicy(ctx *Context, name string, id IDInput, state *ScalingPolicyState, opts ...ResourceOption) (*ScalingPolicy, error)public static ScalingPolicy Get(string name, Input<string> id, ScalingPolicyState? state, CustomResourceOptions? opts = null)public static ScalingPolicy get(String name, Output<String> id, ScalingPolicyState state, CustomResourceOptions options)resources: _: type: volcenginecc:autoscaling:ScalingPolicy get: id: ${id}- 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 - 伸缩规则的伸缩行为,适用于简单规则和步进规则,QuantityChangeInCapacity:增加或减少指定数量的实例。PercentChangeInCapacity:增加或减少指定比例的实例。TotalCapacity: 将当前伸缩组的实例数量调整到指定数量。
- Adjustment
Value int - 伸缩行为的调整数值,适用于简单规则和步进规则,当AdjustmentType参数取值为QuantityChangeInCapacity时:-100 - 100,不允许为0,单位:个。当AdjustmentType参数取值为PercentChangeInCapacity时:-100 - 10000,不允许为0,单位:%。当AdjustmentType参数取值为TotalCapacity时:默认为0 - 100,单位:个。
- Alarm
Policy Volcengine.Scaling Policy Alarm Policy - 报警任务的详细信息。
- Cooldown int
- 伸缩规则的冷却时间。 取值:0-86400,单位:秒,不填则默认使用伸缩组的冷却时间。
- Is
Enabled boolPolicy - 伸缩规则的状态。取值:true:启用。false:停用。需保证伸缩组的状态为Active。
- Scaling
Group stringId - 伸缩组ID。
- Scaling
Policy stringId - 伸缩规则ID。
- Scaling
Policy stringName - 伸缩规则名称。
- Scaling
Policy stringType - 伸缩规则的类型,取值:Scheduled:定时任务。Recurrence:周期任务。Alarm:报警任务。
- Scheduled
Policy Volcengine.Scaling Policy Scheduled Policy - 定时任务/周期任务的详细信息。
- Status string
- 伸缩规则的状态。取值:Active:已启用。InActive:已停用。需保证伸缩组的状态为Active。
- Adjustment
Type string - 伸缩规则的伸缩行为,适用于简单规则和步进规则,QuantityChangeInCapacity:增加或减少指定数量的实例。PercentChangeInCapacity:增加或减少指定比例的实例。TotalCapacity: 将当前伸缩组的实例数量调整到指定数量。
- Adjustment
Value int - 伸缩行为的调整数值,适用于简单规则和步进规则,当AdjustmentType参数取值为QuantityChangeInCapacity时:-100 - 100,不允许为0,单位:个。当AdjustmentType参数取值为PercentChangeInCapacity时:-100 - 10000,不允许为0,单位:%。当AdjustmentType参数取值为TotalCapacity时:默认为0 - 100,单位:个。
- Alarm
Policy ScalingPolicy Alarm Policy Args - 报警任务的详细信息。
- Cooldown int
- 伸缩规则的冷却时间。 取值:0-86400,单位:秒,不填则默认使用伸缩组的冷却时间。
- Is
Enabled boolPolicy - 伸缩规则的状态。取值:true:启用。false:停用。需保证伸缩组的状态为Active。
- Scaling
Group stringId - 伸缩组ID。
- Scaling
Policy stringId - 伸缩规则ID。
- Scaling
Policy stringName - 伸缩规则名称。
- Scaling
Policy stringType - 伸缩规则的类型,取值:Scheduled:定时任务。Recurrence:周期任务。Alarm:报警任务。
- Scheduled
Policy ScalingPolicy Scheduled Policy Args - 定时任务/周期任务的详细信息。
- Status string
- 伸缩规则的状态。取值:Active:已启用。InActive:已停用。需保证伸缩组的状态为Active。
- adjustment
Type String - 伸缩规则的伸缩行为,适用于简单规则和步进规则,QuantityChangeInCapacity:增加或减少指定数量的实例。PercentChangeInCapacity:增加或减少指定比例的实例。TotalCapacity: 将当前伸缩组的实例数量调整到指定数量。
- adjustment
Value Integer - 伸缩行为的调整数值,适用于简单规则和步进规则,当AdjustmentType参数取值为QuantityChangeInCapacity时:-100 - 100,不允许为0,单位:个。当AdjustmentType参数取值为PercentChangeInCapacity时:-100 - 10000,不允许为0,单位:%。当AdjustmentType参数取值为TotalCapacity时:默认为0 - 100,单位:个。
- alarm
Policy ScalingPolicy Alarm Policy - 报警任务的详细信息。
- cooldown Integer
- 伸缩规则的冷却时间。 取值:0-86400,单位:秒,不填则默认使用伸缩组的冷却时间。
- is
Enabled BooleanPolicy - 伸缩规则的状态。取值:true:启用。false:停用。需保证伸缩组的状态为Active。
- scaling
Group StringId - 伸缩组ID。
- scaling
Policy StringId - 伸缩规则ID。
- scaling
Policy StringName - 伸缩规则名称。
- scaling
Policy StringType - 伸缩规则的类型,取值:Scheduled:定时任务。Recurrence:周期任务。Alarm:报警任务。
- scheduled
Policy ScalingPolicy Scheduled Policy - 定时任务/周期任务的详细信息。
- status String
- 伸缩规则的状态。取值:Active:已启用。InActive:已停用。需保证伸缩组的状态为Active。
- adjustment
Type string - 伸缩规则的伸缩行为,适用于简单规则和步进规则,QuantityChangeInCapacity:增加或减少指定数量的实例。PercentChangeInCapacity:增加或减少指定比例的实例。TotalCapacity: 将当前伸缩组的实例数量调整到指定数量。
- adjustment
Value number - 伸缩行为的调整数值,适用于简单规则和步进规则,当AdjustmentType参数取值为QuantityChangeInCapacity时:-100 - 100,不允许为0,单位:个。当AdjustmentType参数取值为PercentChangeInCapacity时:-100 - 10000,不允许为0,单位:%。当AdjustmentType参数取值为TotalCapacity时:默认为0 - 100,单位:个。
- alarm
Policy ScalingPolicy Alarm Policy - 报警任务的详细信息。
- cooldown number
- 伸缩规则的冷却时间。 取值:0-86400,单位:秒,不填则默认使用伸缩组的冷却时间。
- is
Enabled booleanPolicy - 伸缩规则的状态。取值:true:启用。false:停用。需保证伸缩组的状态为Active。
- scaling
Group stringId - 伸缩组ID。
- scaling
Policy stringId - 伸缩规则ID。
- scaling
Policy stringName - 伸缩规则名称。
- scaling
Policy stringType - 伸缩规则的类型,取值:Scheduled:定时任务。Recurrence:周期任务。Alarm:报警任务。
- scheduled
Policy ScalingPolicy Scheduled Policy - 定时任务/周期任务的详细信息。
- status string
- 伸缩规则的状态。取值:Active:已启用。InActive:已停用。需保证伸缩组的状态为Active。
- adjustment_
type str - 伸缩规则的伸缩行为,适用于简单规则和步进规则,QuantityChangeInCapacity:增加或减少指定数量的实例。PercentChangeInCapacity:增加或减少指定比例的实例。TotalCapacity: 将当前伸缩组的实例数量调整到指定数量。
- adjustment_
value int - 伸缩行为的调整数值,适用于简单规则和步进规则,当AdjustmentType参数取值为QuantityChangeInCapacity时:-100 - 100,不允许为0,单位:个。当AdjustmentType参数取值为PercentChangeInCapacity时:-100 - 10000,不允许为0,单位:%。当AdjustmentType参数取值为TotalCapacity时:默认为0 - 100,单位:个。
- alarm_
policy ScalingPolicy Alarm Policy Args - 报警任务的详细信息。
- cooldown int
- 伸缩规则的冷却时间。 取值:0-86400,单位:秒,不填则默认使用伸缩组的冷却时间。
- is_
enabled_ boolpolicy - 伸缩规则的状态。取值:true:启用。false:停用。需保证伸缩组的状态为Active。
- scaling_
group_ strid - 伸缩组ID。
- scaling_
policy_ strid - 伸缩规则ID。
- scaling_
policy_ strname - 伸缩规则名称。
- scaling_
policy_ strtype - 伸缩规则的类型,取值:Scheduled:定时任务。Recurrence:周期任务。Alarm:报警任务。
- scheduled_
policy ScalingPolicy Scheduled Policy Args - 定时任务/周期任务的详细信息。
- status str
- 伸缩规则的状态。取值:Active:已启用。InActive:已停用。需保证伸缩组的状态为Active。
- adjustment
Type String - 伸缩规则的伸缩行为,适用于简单规则和步进规则,QuantityChangeInCapacity:增加或减少指定数量的实例。PercentChangeInCapacity:增加或减少指定比例的实例。TotalCapacity: 将当前伸缩组的实例数量调整到指定数量。
- adjustment
Value Number - 伸缩行为的调整数值,适用于简单规则和步进规则,当AdjustmentType参数取值为QuantityChangeInCapacity时:-100 - 100,不允许为0,单位:个。当AdjustmentType参数取值为PercentChangeInCapacity时:-100 - 10000,不允许为0,单位:%。当AdjustmentType参数取值为TotalCapacity时:默认为0 - 100,单位:个。
- alarm
Policy Property Map - 报警任务的详细信息。
- cooldown Number
- 伸缩规则的冷却时间。 取值:0-86400,单位:秒,不填则默认使用伸缩组的冷却时间。
- is
Enabled BooleanPolicy - 伸缩规则的状态。取值:true:启用。false:停用。需保证伸缩组的状态为Active。
- scaling
Group StringId - 伸缩组ID。
- scaling
Policy StringId - 伸缩规则ID。
- scaling
Policy StringName - 伸缩规则名称。
- scaling
Policy StringType - 伸缩规则的类型,取值:Scheduled:定时任务。Recurrence:周期任务。Alarm:报警任务。
- scheduled
Policy Property Map - 定时任务/周期任务的详细信息。
- status String
- 伸缩规则的状态。取值:Active:已启用。InActive:已停用。需保证伸缩组的状态为Active。
Supporting Types
ScalingPolicyAlarmPolicy, ScalingPolicyAlarmPolicyArgs
- Condition
Volcengine.
Scaling Policy Alarm Policy Condition - 单指标监控时的监控指标详细信息。仅当ScalingPolicyType取值为Alarm时有效。
- Condition
Operator string - 多指标告警时的判定条件。&&:多个指标同时成立才判定为触发告警。||(默认):任意指标满足条件就判定为触发告警。
- Conditions
List<Volcengine.
Scaling Policy Alarm Policy Condition> - Effective string
- 报警任务的生效时间段。
- Evaluation
Count int - 当监控指标数据连续几次达到阈值时,即触发伸缩行为。仅当ScalingPolicyType取值为Alarm时有效且为必填项。
- Rule
Type string - 报警任务的类型,取值:Static:表示由agent采集的静态监控。仅当ScalingPolicyType取值为Alarm时有效且为必填项。
- Condition
Scaling
Policy Alarm Policy Condition - 单指标监控时的监控指标详细信息。仅当ScalingPolicyType取值为Alarm时有效。
- Condition
Operator string - 多指标告警时的判定条件。&&:多个指标同时成立才判定为触发告警。||(默认):任意指标满足条件就判定为触发告警。
- Conditions
[]Scaling
Policy Alarm Policy Condition - Effective string
- 报警任务的生效时间段。
- Evaluation
Count int - 当监控指标数据连续几次达到阈值时,即触发伸缩行为。仅当ScalingPolicyType取值为Alarm时有效且为必填项。
- Rule
Type string - 报警任务的类型,取值:Static:表示由agent采集的静态监控。仅当ScalingPolicyType取值为Alarm时有效且为必填项。
- condition
Scaling
Policy Alarm Policy Condition - 单指标监控时的监控指标详细信息。仅当ScalingPolicyType取值为Alarm时有效。
- condition
Operator String - 多指标告警时的判定条件。&&:多个指标同时成立才判定为触发告警。||(默认):任意指标满足条件就判定为触发告警。
- conditions
List<Scaling
Policy Alarm Policy Condition> - effective String
- 报警任务的生效时间段。
- evaluation
Count Integer - 当监控指标数据连续几次达到阈值时,即触发伸缩行为。仅当ScalingPolicyType取值为Alarm时有效且为必填项。
- rule
Type String - 报警任务的类型,取值:Static:表示由agent采集的静态监控。仅当ScalingPolicyType取值为Alarm时有效且为必填项。
- condition
Scaling
Policy Alarm Policy Condition - 单指标监控时的监控指标详细信息。仅当ScalingPolicyType取值为Alarm时有效。
- condition
Operator string - 多指标告警时的判定条件。&&:多个指标同时成立才判定为触发告警。||(默认):任意指标满足条件就判定为触发告警。
- conditions
Scaling
Policy Alarm Policy Condition[] - effective string
- 报警任务的生效时间段。
- evaluation
Count number - 当监控指标数据连续几次达到阈值时,即触发伸缩行为。仅当ScalingPolicyType取值为Alarm时有效且为必填项。
- rule
Type string - 报警任务的类型,取值:Static:表示由agent采集的静态监控。仅当ScalingPolicyType取值为Alarm时有效且为必填项。
- condition
Scaling
Policy Alarm Policy Condition - 单指标监控时的监控指标详细信息。仅当ScalingPolicyType取值为Alarm时有效。
- condition_
operator str - 多指标告警时的判定条件。&&:多个指标同时成立才判定为触发告警。||(默认):任意指标满足条件就判定为触发告警。
- conditions
Sequence[Scaling
Policy Alarm Policy Condition] - effective str
- 报警任务的生效时间段。
- evaluation_
count int - 当监控指标数据连续几次达到阈值时,即触发伸缩行为。仅当ScalingPolicyType取值为Alarm时有效且为必填项。
- rule_
type str - 报警任务的类型,取值:Static:表示由agent采集的静态监控。仅当ScalingPolicyType取值为Alarm时有效且为必填项。
- condition Property Map
- 单指标监控时的监控指标详细信息。仅当ScalingPolicyType取值为Alarm时有效。
- condition
Operator String - 多指标告警时的判定条件。&&:多个指标同时成立才判定为触发告警。||(默认):任意指标满足条件就判定为触发告警。
- conditions List<Property Map>
- effective String
- 报警任务的生效时间段。
- evaluation
Count Number - 当监控指标数据连续几次达到阈值时,即触发伸缩行为。仅当ScalingPolicyType取值为Alarm时有效且为必填项。
- rule
Type String - 报警任务的类型,取值:Static:表示由agent采集的静态监控。仅当ScalingPolicyType取值为Alarm时有效且为必填项。
ScalingPolicyAlarmPolicyCondition, ScalingPolicyAlarmPolicyConditionArgs
- Comparison
Operator string - 指标告警时的规则表达式对象。>:大于。<:小于。=:等于。
- Metric
Name string - 指标告警时的监控指标名称。CpuTotalMax:带内CPU使用率最大值。CpuTotalMin:带内CPU使用率最小值。CpuTotalAvg:带内CPU使用率平均值。MemoryUsedUtilizationMax:带内内存使用率最大值。MemoryUsedUtilizationMin:带内内存使用率最小值。MemoryUsedUtilizationAvg:带内内存使用率平均值。InstanceCpuBusyMax:带外CPU利用率最大值。InstanceCpuBusyMin:带外CPU利用率最小值。InstanceCpuBusyAvg:带外CPU利用率平均值。InstanceNetTxBitsAvg: 带外网络流出速率平均值。InstanceNetRxBitsAvg: 带外网络流入速率平均值。InstanceNetTxPacketsAvg: 带外网络发送包速率平均值。InstanceNetRxPacketsAvg: 带外网络接收包速率平均值。SystemDiskReadBytesAvg: 带内系统盘读带宽平均值。SystemDiskWriteBytesAvg: 带内系统盘写带宽平均值。SystemDiskReadIOPSAvg: 带内系统盘读IOPS平均值。SystemDiskWriteIOPSAvg: 带内系统盘写IOPS平均值。NetTcpConnection_Avg: 带内TCP连接数平均值。
- Metric
Unit string - 指标告警时的监控指标阈值的单位。当AlarmPolicy.Conditions.MetricName参数取值为CPU/内存使用率时: Percent。当AlarmPolicy.Conditions.MetricName参数取值为系统盘读/写带宽时: Bytes/Second(IEC)。当AlarmPolicy.Conditions.MetricName参数取值为系统盘读/写IOPS时: Count/Second。当AlarmPolicy.Conditions.MetricName参数取值为TCP连接数时: Count。当AlarmPolicy.Condition.MetricName参数取值为网络流入/流出速率时: Bits/Second(IEC)。当AlarmPolicy.Condition.MetricName参数取值为网络收发包速率时: Packet/Second。
- Threshold string
- 指标告警时的监控指标的阈值。当AlarmPolicy.Conditions.MetricUnit取值为Percent时:1 ~ 100。当AlarmPolicy.Conditions.MetricUnit取值为Bytes/Second(IEC)时:大于0的整数。当AlarmPolicy.Conditions.MetricUnit取值为Count/Second时:大于0的整数。当AlarmPolicy.Conditions.MetricUnit取值为Count时:大于0的整数。当AlarmPolicy.Condition.MetricUnit取值为Bits/Second(IEC)时:大于0的整数。当AlarmPolicy.Condition.MetricUnit取值为Packet/Second时:大于0的整数。
- Comparison
Operator string - 指标告警时的规则表达式对象。>:大于。<:小于。=:等于。
- Metric
Name string - 指标告警时的监控指标名称。CpuTotalMax:带内CPU使用率最大值。CpuTotalMin:带内CPU使用率最小值。CpuTotalAvg:带内CPU使用率平均值。MemoryUsedUtilizationMax:带内内存使用率最大值。MemoryUsedUtilizationMin:带内内存使用率最小值。MemoryUsedUtilizationAvg:带内内存使用率平均值。InstanceCpuBusyMax:带外CPU利用率最大值。InstanceCpuBusyMin:带外CPU利用率最小值。InstanceCpuBusyAvg:带外CPU利用率平均值。InstanceNetTxBitsAvg: 带外网络流出速率平均值。InstanceNetRxBitsAvg: 带外网络流入速率平均值。InstanceNetTxPacketsAvg: 带外网络发送包速率平均值。InstanceNetRxPacketsAvg: 带外网络接收包速率平均值。SystemDiskReadBytesAvg: 带内系统盘读带宽平均值。SystemDiskWriteBytesAvg: 带内系统盘写带宽平均值。SystemDiskReadIOPSAvg: 带内系统盘读IOPS平均值。SystemDiskWriteIOPSAvg: 带内系统盘写IOPS平均值。NetTcpConnection_Avg: 带内TCP连接数平均值。
- Metric
Unit string - 指标告警时的监控指标阈值的单位。当AlarmPolicy.Conditions.MetricName参数取值为CPU/内存使用率时: Percent。当AlarmPolicy.Conditions.MetricName参数取值为系统盘读/写带宽时: Bytes/Second(IEC)。当AlarmPolicy.Conditions.MetricName参数取值为系统盘读/写IOPS时: Count/Second。当AlarmPolicy.Conditions.MetricName参数取值为TCP连接数时: Count。当AlarmPolicy.Condition.MetricName参数取值为网络流入/流出速率时: Bits/Second(IEC)。当AlarmPolicy.Condition.MetricName参数取值为网络收发包速率时: Packet/Second。
- Threshold string
- 指标告警时的监控指标的阈值。当AlarmPolicy.Conditions.MetricUnit取值为Percent时:1 ~ 100。当AlarmPolicy.Conditions.MetricUnit取值为Bytes/Second(IEC)时:大于0的整数。当AlarmPolicy.Conditions.MetricUnit取值为Count/Second时:大于0的整数。当AlarmPolicy.Conditions.MetricUnit取值为Count时:大于0的整数。当AlarmPolicy.Condition.MetricUnit取值为Bits/Second(IEC)时:大于0的整数。当AlarmPolicy.Condition.MetricUnit取值为Packet/Second时:大于0的整数。
- comparison
Operator String - 指标告警时的规则表达式对象。>:大于。<:小于。=:等于。
- metric
Name String - 指标告警时的监控指标名称。CpuTotalMax:带内CPU使用率最大值。CpuTotalMin:带内CPU使用率最小值。CpuTotalAvg:带内CPU使用率平均值。MemoryUsedUtilizationMax:带内内存使用率最大值。MemoryUsedUtilizationMin:带内内存使用率最小值。MemoryUsedUtilizationAvg:带内内存使用率平均值。InstanceCpuBusyMax:带外CPU利用率最大值。InstanceCpuBusyMin:带外CPU利用率最小值。InstanceCpuBusyAvg:带外CPU利用率平均值。InstanceNetTxBitsAvg: 带外网络流出速率平均值。InstanceNetRxBitsAvg: 带外网络流入速率平均值。InstanceNetTxPacketsAvg: 带外网络发送包速率平均值。InstanceNetRxPacketsAvg: 带外网络接收包速率平均值。SystemDiskReadBytesAvg: 带内系统盘读带宽平均值。SystemDiskWriteBytesAvg: 带内系统盘写带宽平均值。SystemDiskReadIOPSAvg: 带内系统盘读IOPS平均值。SystemDiskWriteIOPSAvg: 带内系统盘写IOPS平均值。NetTcpConnection_Avg: 带内TCP连接数平均值。
- metric
Unit String - 指标告警时的监控指标阈值的单位。当AlarmPolicy.Conditions.MetricName参数取值为CPU/内存使用率时: Percent。当AlarmPolicy.Conditions.MetricName参数取值为系统盘读/写带宽时: Bytes/Second(IEC)。当AlarmPolicy.Conditions.MetricName参数取值为系统盘读/写IOPS时: Count/Second。当AlarmPolicy.Conditions.MetricName参数取值为TCP连接数时: Count。当AlarmPolicy.Condition.MetricName参数取值为网络流入/流出速率时: Bits/Second(IEC)。当AlarmPolicy.Condition.MetricName参数取值为网络收发包速率时: Packet/Second。
- threshold String
- 指标告警时的监控指标的阈值。当AlarmPolicy.Conditions.MetricUnit取值为Percent时:1 ~ 100。当AlarmPolicy.Conditions.MetricUnit取值为Bytes/Second(IEC)时:大于0的整数。当AlarmPolicy.Conditions.MetricUnit取值为Count/Second时:大于0的整数。当AlarmPolicy.Conditions.MetricUnit取值为Count时:大于0的整数。当AlarmPolicy.Condition.MetricUnit取值为Bits/Second(IEC)时:大于0的整数。当AlarmPolicy.Condition.MetricUnit取值为Packet/Second时:大于0的整数。
- comparison
Operator string - 指标告警时的规则表达式对象。>:大于。<:小于。=:等于。
- metric
Name string - 指标告警时的监控指标名称。CpuTotalMax:带内CPU使用率最大值。CpuTotalMin:带内CPU使用率最小值。CpuTotalAvg:带内CPU使用率平均值。MemoryUsedUtilizationMax:带内内存使用率最大值。MemoryUsedUtilizationMin:带内内存使用率最小值。MemoryUsedUtilizationAvg:带内内存使用率平均值。InstanceCpuBusyMax:带外CPU利用率最大值。InstanceCpuBusyMin:带外CPU利用率最小值。InstanceCpuBusyAvg:带外CPU利用率平均值。InstanceNetTxBitsAvg: 带外网络流出速率平均值。InstanceNetRxBitsAvg: 带外网络流入速率平均值。InstanceNetTxPacketsAvg: 带外网络发送包速率平均值。InstanceNetRxPacketsAvg: 带外网络接收包速率平均值。SystemDiskReadBytesAvg: 带内系统盘读带宽平均值。SystemDiskWriteBytesAvg: 带内系统盘写带宽平均值。SystemDiskReadIOPSAvg: 带内系统盘读IOPS平均值。SystemDiskWriteIOPSAvg: 带内系统盘写IOPS平均值。NetTcpConnection_Avg: 带内TCP连接数平均值。
- metric
Unit string - 指标告警时的监控指标阈值的单位。当AlarmPolicy.Conditions.MetricName参数取值为CPU/内存使用率时: Percent。当AlarmPolicy.Conditions.MetricName参数取值为系统盘读/写带宽时: Bytes/Second(IEC)。当AlarmPolicy.Conditions.MetricName参数取值为系统盘读/写IOPS时: Count/Second。当AlarmPolicy.Conditions.MetricName参数取值为TCP连接数时: Count。当AlarmPolicy.Condition.MetricName参数取值为网络流入/流出速率时: Bits/Second(IEC)。当AlarmPolicy.Condition.MetricName参数取值为网络收发包速率时: Packet/Second。
- threshold string
- 指标告警时的监控指标的阈值。当AlarmPolicy.Conditions.MetricUnit取值为Percent时:1 ~ 100。当AlarmPolicy.Conditions.MetricUnit取值为Bytes/Second(IEC)时:大于0的整数。当AlarmPolicy.Conditions.MetricUnit取值为Count/Second时:大于0的整数。当AlarmPolicy.Conditions.MetricUnit取值为Count时:大于0的整数。当AlarmPolicy.Condition.MetricUnit取值为Bits/Second(IEC)时:大于0的整数。当AlarmPolicy.Condition.MetricUnit取值为Packet/Second时:大于0的整数。
- comparison_
operator str - 指标告警时的规则表达式对象。>:大于。<:小于。=:等于。
- metric_
name str - 指标告警时的监控指标名称。CpuTotalMax:带内CPU使用率最大值。CpuTotalMin:带内CPU使用率最小值。CpuTotalAvg:带内CPU使用率平均值。MemoryUsedUtilizationMax:带内内存使用率最大值。MemoryUsedUtilizationMin:带内内存使用率最小值。MemoryUsedUtilizationAvg:带内内存使用率平均值。InstanceCpuBusyMax:带外CPU利用率最大值。InstanceCpuBusyMin:带外CPU利用率最小值。InstanceCpuBusyAvg:带外CPU利用率平均值。InstanceNetTxBitsAvg: 带外网络流出速率平均值。InstanceNetRxBitsAvg: 带外网络流入速率平均值。InstanceNetTxPacketsAvg: 带外网络发送包速率平均值。InstanceNetRxPacketsAvg: 带外网络接收包速率平均值。SystemDiskReadBytesAvg: 带内系统盘读带宽平均值。SystemDiskWriteBytesAvg: 带内系统盘写带宽平均值。SystemDiskReadIOPSAvg: 带内系统盘读IOPS平均值。SystemDiskWriteIOPSAvg: 带内系统盘写IOPS平均值。NetTcpConnection_Avg: 带内TCP连接数平均值。
- metric_
unit str - 指标告警时的监控指标阈值的单位。当AlarmPolicy.Conditions.MetricName参数取值为CPU/内存使用率时: Percent。当AlarmPolicy.Conditions.MetricName参数取值为系统盘读/写带宽时: Bytes/Second(IEC)。当AlarmPolicy.Conditions.MetricName参数取值为系统盘读/写IOPS时: Count/Second。当AlarmPolicy.Conditions.MetricName参数取值为TCP连接数时: Count。当AlarmPolicy.Condition.MetricName参数取值为网络流入/流出速率时: Bits/Second(IEC)。当AlarmPolicy.Condition.MetricName参数取值为网络收发包速率时: Packet/Second。
- threshold str
- 指标告警时的监控指标的阈值。当AlarmPolicy.Conditions.MetricUnit取值为Percent时:1 ~ 100。当AlarmPolicy.Conditions.MetricUnit取值为Bytes/Second(IEC)时:大于0的整数。当AlarmPolicy.Conditions.MetricUnit取值为Count/Second时:大于0的整数。当AlarmPolicy.Conditions.MetricUnit取值为Count时:大于0的整数。当AlarmPolicy.Condition.MetricUnit取值为Bits/Second(IEC)时:大于0的整数。当AlarmPolicy.Condition.MetricUnit取值为Packet/Second时:大于0的整数。
- comparison
Operator String - 指标告警时的规则表达式对象。>:大于。<:小于。=:等于。
- metric
Name String - 指标告警时的监控指标名称。CpuTotalMax:带内CPU使用率最大值。CpuTotalMin:带内CPU使用率最小值。CpuTotalAvg:带内CPU使用率平均值。MemoryUsedUtilizationMax:带内内存使用率最大值。MemoryUsedUtilizationMin:带内内存使用率最小值。MemoryUsedUtilizationAvg:带内内存使用率平均值。InstanceCpuBusyMax:带外CPU利用率最大值。InstanceCpuBusyMin:带外CPU利用率最小值。InstanceCpuBusyAvg:带外CPU利用率平均值。InstanceNetTxBitsAvg: 带外网络流出速率平均值。InstanceNetRxBitsAvg: 带外网络流入速率平均值。InstanceNetTxPacketsAvg: 带外网络发送包速率平均值。InstanceNetRxPacketsAvg: 带外网络接收包速率平均值。SystemDiskReadBytesAvg: 带内系统盘读带宽平均值。SystemDiskWriteBytesAvg: 带内系统盘写带宽平均值。SystemDiskReadIOPSAvg: 带内系统盘读IOPS平均值。SystemDiskWriteIOPSAvg: 带内系统盘写IOPS平均值。NetTcpConnection_Avg: 带内TCP连接数平均值。
- metric
Unit String - 指标告警时的监控指标阈值的单位。当AlarmPolicy.Conditions.MetricName参数取值为CPU/内存使用率时: Percent。当AlarmPolicy.Conditions.MetricName参数取值为系统盘读/写带宽时: Bytes/Second(IEC)。当AlarmPolicy.Conditions.MetricName参数取值为系统盘读/写IOPS时: Count/Second。当AlarmPolicy.Conditions.MetricName参数取值为TCP连接数时: Count。当AlarmPolicy.Condition.MetricName参数取值为网络流入/流出速率时: Bits/Second(IEC)。当AlarmPolicy.Condition.MetricName参数取值为网络收发包速率时: Packet/Second。
- threshold String
- 指标告警时的监控指标的阈值。当AlarmPolicy.Conditions.MetricUnit取值为Percent时:1 ~ 100。当AlarmPolicy.Conditions.MetricUnit取值为Bytes/Second(IEC)时:大于0的整数。当AlarmPolicy.Conditions.MetricUnit取值为Count/Second时:大于0的整数。当AlarmPolicy.Conditions.MetricUnit取值为Count时:大于0的整数。当AlarmPolicy.Condition.MetricUnit取值为Bits/Second(IEC)时:大于0的整数。当AlarmPolicy.Condition.MetricUnit取值为Packet/Second时:大于0的整数。
ScalingPolicyScheduledPolicy, ScalingPolicyScheduledPolicyArgs
- Launch
Time string - 表示任务的触发时间,默认为此刻。当ScalingPolicyType值为Scheduled时,表示定时任务的触发时间。当ScalingPolicyType值为Recurrence时:如果ScheduledPolicy.RecurrenceType为空,则表示仅按照此处指定的日期和时间执行一次。如果ScheduledPolicy.RecurrenceType不为空,则表示周期任务开始时间。
- Launch
Time stringRead - 表示任务的触发时间。只读字段,修改或创建使用LaunchTime。
- Recurrence
End stringTime - 表示周期任务的结束时间。仅支持选择自创建当日起365日内的时间。若不配置,则根据重复周期(ScheduledPolicy.RecurrenceType)默认为此刻后的一天/周/月。设置为空,表示本任务永不停止。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- Recurrence
End stringTime Read - 表示周期任务的结束时间。只读字段,修改或创建使用RecurrenceEndTime。
- Recurrence
Start stringTime - 表示周期任务的开始执行时间。当ScalingPolicyType取值为Recurrence时有效。
- Recurrence
Type string - 表示周期任务的重复周期,取值:Daily:每XX天执行一次。Weekly:选择每周中的几天,每天执行一次。Monthly:选择每月中XX号到XX号,每天执行一次。Cron:按照指定的Cron表达式执行。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- Recurrence
Value string - 表示重复执行周期任务的数值。当ScheduledPolicy.RecurrenceType参数取值为Daily时,只能填写一个值,取值:1 - 31。当ScheduledPolicy.RecurrenceType参数取值为Weekly时,可以填入多个值,使用英文逗号(,)分隔。星期一到星期日的取值依次为:1,2,3,4,5,6,7。当ScheduledPolicy.RecurrenceType参数取值为Monthly时,格式为A-B。A、B的取值范围均为1-31,且B必须大于等于A。当ScheduledPolicy.RecurrenceType参数取值为Cron 时,表示UTC+8时间,支持分、时、日、月、星期的5域表达式,支持通配符英文逗号(,)、英文问号(?)、连词符(-)、星号(*)、井号(#)、斜线(/)、L和W。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- Launch
Time string - 表示任务的触发时间,默认为此刻。当ScalingPolicyType值为Scheduled时,表示定时任务的触发时间。当ScalingPolicyType值为Recurrence时:如果ScheduledPolicy.RecurrenceType为空,则表示仅按照此处指定的日期和时间执行一次。如果ScheduledPolicy.RecurrenceType不为空,则表示周期任务开始时间。
- Launch
Time stringRead - 表示任务的触发时间。只读字段,修改或创建使用LaunchTime。
- Recurrence
End stringTime - 表示周期任务的结束时间。仅支持选择自创建当日起365日内的时间。若不配置,则根据重复周期(ScheduledPolicy.RecurrenceType)默认为此刻后的一天/周/月。设置为空,表示本任务永不停止。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- Recurrence
End stringTime Read - 表示周期任务的结束时间。只读字段,修改或创建使用RecurrenceEndTime。
- Recurrence
Start stringTime - 表示周期任务的开始执行时间。当ScalingPolicyType取值为Recurrence时有效。
- Recurrence
Type string - 表示周期任务的重复周期,取值:Daily:每XX天执行一次。Weekly:选择每周中的几天,每天执行一次。Monthly:选择每月中XX号到XX号,每天执行一次。Cron:按照指定的Cron表达式执行。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- Recurrence
Value string - 表示重复执行周期任务的数值。当ScheduledPolicy.RecurrenceType参数取值为Daily时,只能填写一个值,取值:1 - 31。当ScheduledPolicy.RecurrenceType参数取值为Weekly时,可以填入多个值,使用英文逗号(,)分隔。星期一到星期日的取值依次为:1,2,3,4,5,6,7。当ScheduledPolicy.RecurrenceType参数取值为Monthly时,格式为A-B。A、B的取值范围均为1-31,且B必须大于等于A。当ScheduledPolicy.RecurrenceType参数取值为Cron 时,表示UTC+8时间,支持分、时、日、月、星期的5域表达式,支持通配符英文逗号(,)、英文问号(?)、连词符(-)、星号(*)、井号(#)、斜线(/)、L和W。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- launch
Time String - 表示任务的触发时间,默认为此刻。当ScalingPolicyType值为Scheduled时,表示定时任务的触发时间。当ScalingPolicyType值为Recurrence时:如果ScheduledPolicy.RecurrenceType为空,则表示仅按照此处指定的日期和时间执行一次。如果ScheduledPolicy.RecurrenceType不为空,则表示周期任务开始时间。
- launch
Time StringRead - 表示任务的触发时间。只读字段,修改或创建使用LaunchTime。
- recurrence
End StringTime - 表示周期任务的结束时间。仅支持选择自创建当日起365日内的时间。若不配置,则根据重复周期(ScheduledPolicy.RecurrenceType)默认为此刻后的一天/周/月。设置为空,表示本任务永不停止。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- recurrence
End StringTime Read - 表示周期任务的结束时间。只读字段,修改或创建使用RecurrenceEndTime。
- recurrence
Start StringTime - 表示周期任务的开始执行时间。当ScalingPolicyType取值为Recurrence时有效。
- recurrence
Type String - 表示周期任务的重复周期,取值:Daily:每XX天执行一次。Weekly:选择每周中的几天,每天执行一次。Monthly:选择每月中XX号到XX号,每天执行一次。Cron:按照指定的Cron表达式执行。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- recurrence
Value String - 表示重复执行周期任务的数值。当ScheduledPolicy.RecurrenceType参数取值为Daily时,只能填写一个值,取值:1 - 31。当ScheduledPolicy.RecurrenceType参数取值为Weekly时,可以填入多个值,使用英文逗号(,)分隔。星期一到星期日的取值依次为:1,2,3,4,5,6,7。当ScheduledPolicy.RecurrenceType参数取值为Monthly时,格式为A-B。A、B的取值范围均为1-31,且B必须大于等于A。当ScheduledPolicy.RecurrenceType参数取值为Cron 时,表示UTC+8时间,支持分、时、日、月、星期的5域表达式,支持通配符英文逗号(,)、英文问号(?)、连词符(-)、星号(*)、井号(#)、斜线(/)、L和W。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- launch
Time string - 表示任务的触发时间,默认为此刻。当ScalingPolicyType值为Scheduled时,表示定时任务的触发时间。当ScalingPolicyType值为Recurrence时:如果ScheduledPolicy.RecurrenceType为空,则表示仅按照此处指定的日期和时间执行一次。如果ScheduledPolicy.RecurrenceType不为空,则表示周期任务开始时间。
- launch
Time stringRead - 表示任务的触发时间。只读字段,修改或创建使用LaunchTime。
- recurrence
End stringTime - 表示周期任务的结束时间。仅支持选择自创建当日起365日内的时间。若不配置,则根据重复周期(ScheduledPolicy.RecurrenceType)默认为此刻后的一天/周/月。设置为空,表示本任务永不停止。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- recurrence
End stringTime Read - 表示周期任务的结束时间。只读字段,修改或创建使用RecurrenceEndTime。
- recurrence
Start stringTime - 表示周期任务的开始执行时间。当ScalingPolicyType取值为Recurrence时有效。
- recurrence
Type string - 表示周期任务的重复周期,取值:Daily:每XX天执行一次。Weekly:选择每周中的几天,每天执行一次。Monthly:选择每月中XX号到XX号,每天执行一次。Cron:按照指定的Cron表达式执行。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- recurrence
Value string - 表示重复执行周期任务的数值。当ScheduledPolicy.RecurrenceType参数取值为Daily时,只能填写一个值,取值:1 - 31。当ScheduledPolicy.RecurrenceType参数取值为Weekly时,可以填入多个值,使用英文逗号(,)分隔。星期一到星期日的取值依次为:1,2,3,4,5,6,7。当ScheduledPolicy.RecurrenceType参数取值为Monthly时,格式为A-B。A、B的取值范围均为1-31,且B必须大于等于A。当ScheduledPolicy.RecurrenceType参数取值为Cron 时,表示UTC+8时间,支持分、时、日、月、星期的5域表达式,支持通配符英文逗号(,)、英文问号(?)、连词符(-)、星号(*)、井号(#)、斜线(/)、L和W。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- launch_
time str - 表示任务的触发时间,默认为此刻。当ScalingPolicyType值为Scheduled时,表示定时任务的触发时间。当ScalingPolicyType值为Recurrence时:如果ScheduledPolicy.RecurrenceType为空,则表示仅按照此处指定的日期和时间执行一次。如果ScheduledPolicy.RecurrenceType不为空,则表示周期任务开始时间。
- launch_
time_ strread - 表示任务的触发时间。只读字段,修改或创建使用LaunchTime。
- recurrence_
end_ strtime - 表示周期任务的结束时间。仅支持选择自创建当日起365日内的时间。若不配置,则根据重复周期(ScheduledPolicy.RecurrenceType)默认为此刻后的一天/周/月。设置为空,表示本任务永不停止。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- recurrence_
end_ strtime_ read - 表示周期任务的结束时间。只读字段,修改或创建使用RecurrenceEndTime。
- recurrence_
start_ strtime - 表示周期任务的开始执行时间。当ScalingPolicyType取值为Recurrence时有效。
- recurrence_
type str - 表示周期任务的重复周期,取值:Daily:每XX天执行一次。Weekly:选择每周中的几天,每天执行一次。Monthly:选择每月中XX号到XX号,每天执行一次。Cron:按照指定的Cron表达式执行。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- recurrence_
value str - 表示重复执行周期任务的数值。当ScheduledPolicy.RecurrenceType参数取值为Daily时,只能填写一个值,取值:1 - 31。当ScheduledPolicy.RecurrenceType参数取值为Weekly时,可以填入多个值,使用英文逗号(,)分隔。星期一到星期日的取值依次为:1,2,3,4,5,6,7。当ScheduledPolicy.RecurrenceType参数取值为Monthly时,格式为A-B。A、B的取值范围均为1-31,且B必须大于等于A。当ScheduledPolicy.RecurrenceType参数取值为Cron 时,表示UTC+8时间,支持分、时、日、月、星期的5域表达式,支持通配符英文逗号(,)、英文问号(?)、连词符(-)、星号(*)、井号(#)、斜线(/)、L和W。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- launch
Time String - 表示任务的触发时间,默认为此刻。当ScalingPolicyType值为Scheduled时,表示定时任务的触发时间。当ScalingPolicyType值为Recurrence时:如果ScheduledPolicy.RecurrenceType为空,则表示仅按照此处指定的日期和时间执行一次。如果ScheduledPolicy.RecurrenceType不为空,则表示周期任务开始时间。
- launch
Time StringRead - 表示任务的触发时间。只读字段,修改或创建使用LaunchTime。
- recurrence
End StringTime - 表示周期任务的结束时间。仅支持选择自创建当日起365日内的时间。若不配置,则根据重复周期(ScheduledPolicy.RecurrenceType)默认为此刻后的一天/周/月。设置为空,表示本任务永不停止。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- recurrence
End StringTime Read - 表示周期任务的结束时间。只读字段,修改或创建使用RecurrenceEndTime。
- recurrence
Start StringTime - 表示周期任务的开始执行时间。当ScalingPolicyType取值为Recurrence时有效。
- recurrence
Type String - 表示周期任务的重复周期,取值:Daily:每XX天执行一次。Weekly:选择每周中的几天,每天执行一次。Monthly:选择每月中XX号到XX号,每天执行一次。Cron:按照指定的Cron表达式执行。当ScalingPolicyType取值为Recurrence时有效且为必填项。
- recurrence
Value String - 表示重复执行周期任务的数值。当ScheduledPolicy.RecurrenceType参数取值为Daily时,只能填写一个值,取值:1 - 31。当ScheduledPolicy.RecurrenceType参数取值为Weekly时,可以填入多个值,使用英文逗号(,)分隔。星期一到星期日的取值依次为:1,2,3,4,5,6,7。当ScheduledPolicy.RecurrenceType参数取值为Monthly时,格式为A-B。A、B的取值范围均为1-31,且B必须大于等于A。当ScheduledPolicy.RecurrenceType参数取值为Cron 时,表示UTC+8时间,支持分、时、日、月、星期的5域表达式,支持通配符英文逗号(,)、英文问号(?)、连词符(-)、星号(*)、井号(#)、斜线(/)、L和W。当ScalingPolicyType取值为Recurrence时有效且为必填项。
Import
$ pulumi import volcenginecc:autoscaling/scalingPolicy:ScalingPolicy example "scaling_group_id|scaling_policy_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
