published on Thursday, Apr 2, 2026 by Byteplus
published on Thursday, Apr 2, 2026 by Byteplus
Scaling rules define the conditions and methods for triggering scaling actions, including rule type, trigger time, scaling action, cooldown time. You can enable multiple scaling rules within the same scaling group. Scaling actions are executed when any rule type is met. If multiple rule types are met at the same time, manual scaling actions take priority.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
autoScalingScalingPolicyDemo:
type: bytepluscc: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: bytepluscc: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 Bytepluscc.Autoscaling.ScalingPolicy("scalingPolicyResource", new()
{
ScalingGroupId = "string",
ScalingPolicyName = "string",
ScalingPolicyType = "string",
AdjustmentType = "string",
AdjustmentValue = 0,
AlarmPolicy = new Bytepluscc.Autoscaling.Inputs.ScalingPolicyAlarmPolicyArgs
{
Condition = new Bytepluscc.Autoscaling.Inputs.ScalingPolicyAlarmPolicyConditionArgs
{
ComparisonOperator = "string",
MetricName = "string",
MetricUnit = "string",
Threshold = "string",
},
ConditionOperator = "string",
Conditions = new[]
{
new Bytepluscc.Autoscaling.Inputs.ScalingPolicyAlarmPolicyConditionArgs
{
ComparisonOperator = "string",
MetricName = "string",
MetricUnit = "string",
Threshold = "string",
},
},
Effective = "string",
EvaluationCount = 0,
RuleType = "string",
},
Cooldown = 0,
IsEnabledPolicy = false,
ScheduledPolicy = new Bytepluscc.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 = bytepluscc.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 bytepluscc.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: bytepluscc: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 - Scaling group ID.
- Scaling
Policy stringName - Name of the scaling rule.
- Scaling
Policy stringType - Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
- Adjustment
Type string - Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
- Adjustment
Value int - Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
- Alarm
Policy Byteplus.Scaling Policy Alarm Policy - Detailed information about the alarm task.
- Cooldown int
- Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
- Is
Enabled boolPolicy - Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
- Scheduled
Policy Byteplus.Scaling Policy Scheduled Policy - Detailed information for scheduled/recurring tasks.
- Scaling
Group stringId - Scaling group ID.
- Scaling
Policy stringName - Name of the scaling rule.
- Scaling
Policy stringType - Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
- Adjustment
Type string - Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
- Adjustment
Value int - Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
- Alarm
Policy ScalingPolicy Alarm Policy Args - Detailed information about the alarm task.
- Cooldown int
- Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
- Is
Enabled boolPolicy - Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
- Scheduled
Policy ScalingPolicy Scheduled Policy Args - Detailed information for scheduled/recurring tasks.
- scaling
Group StringId - Scaling group ID.
- scaling
Policy StringName - Name of the scaling rule.
- scaling
Policy StringType - Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
- adjustment
Type String - Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
- adjustment
Value Integer - Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
- alarm
Policy ScalingPolicy Alarm Policy - Detailed information about the alarm task.
- cooldown Integer
- Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
- is
Enabled BooleanPolicy - Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
- scheduled
Policy ScalingPolicy Scheduled Policy - Detailed information for scheduled/recurring tasks.
- scaling
Group stringId - Scaling group ID.
- scaling
Policy stringName - Name of the scaling rule.
- scaling
Policy stringType - Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
- adjustment
Type string - Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
- adjustment
Value number - Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
- alarm
Policy ScalingPolicy Alarm Policy - Detailed information about the alarm task.
- cooldown number
- Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
- is
Enabled booleanPolicy - Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
- scheduled
Policy ScalingPolicy Scheduled Policy - Detailed information for scheduled/recurring tasks.
- scaling_
group_ strid - Scaling group ID.
- scaling_
policy_ strname - Name of the scaling rule.
- scaling_
policy_ strtype - Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
- adjustment_
type str - Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
- adjustment_
value int - Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
- alarm_
policy ScalingPolicy Alarm Policy Args - Detailed information about the alarm task.
- cooldown int
- Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
- is_
enabled_ boolpolicy - Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
- scheduled_
policy ScalingPolicy Scheduled Policy Args - Detailed information for scheduled/recurring tasks.
- scaling
Group StringId - Scaling group ID.
- scaling
Policy StringName - Name of the scaling rule.
- scaling
Policy StringType - Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
- adjustment
Type String - Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
- adjustment
Value Number - Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
- alarm
Policy Property Map - Detailed information about the alarm task.
- cooldown Number
- Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
- is
Enabled BooleanPolicy - Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
- scheduled
Policy Property Map - Detailed information for scheduled/recurring tasks.
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 - Scaling rule ID.
- Status string
- Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
- Id string
- The provider-assigned unique ID for this managed resource.
- Scaling
Policy stringId - Scaling rule ID.
- Status string
- Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
- id String
- The provider-assigned unique ID for this managed resource.
- scaling
Policy StringId - Scaling rule ID.
- status String
- Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
- id string
- The provider-assigned unique ID for this managed resource.
- scaling
Policy stringId - Scaling rule ID.
- status string
- Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
- id str
- The provider-assigned unique ID for this managed resource.
- scaling_
policy_ strid - Scaling rule ID.
- status str
- Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
- id String
- The provider-assigned unique ID for this managed resource.
- scaling
Policy StringId - Scaling rule ID.
- status String
- Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
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: bytepluscc: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 - Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
- Adjustment
Value int - Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
- Alarm
Policy Byteplus.Scaling Policy Alarm Policy - Detailed information about the alarm task.
- Cooldown int
- Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
- Is
Enabled boolPolicy - Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
- Scaling
Group stringId - Scaling group ID.
- Scaling
Policy stringId - Scaling rule ID.
- Scaling
Policy stringName - Name of the scaling rule.
- Scaling
Policy stringType - Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
- Scheduled
Policy Byteplus.Scaling Policy Scheduled Policy - Detailed information for scheduled/recurring tasks.
- Status string
- Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
- Adjustment
Type string - Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
- Adjustment
Value int - Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
- Alarm
Policy ScalingPolicy Alarm Policy Args - Detailed information about the alarm task.
- Cooldown int
- Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
- Is
Enabled boolPolicy - Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
- Scaling
Group stringId - Scaling group ID.
- Scaling
Policy stringId - Scaling rule ID.
- Scaling
Policy stringName - Name of the scaling rule.
- Scaling
Policy stringType - Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
- Scheduled
Policy ScalingPolicy Scheduled Policy Args - Detailed information for scheduled/recurring tasks.
- Status string
- Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
- adjustment
Type String - Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
- adjustment
Value Integer - Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
- alarm
Policy ScalingPolicy Alarm Policy - Detailed information about the alarm task.
- cooldown Integer
- Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
- is
Enabled BooleanPolicy - Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
- scaling
Group StringId - Scaling group ID.
- scaling
Policy StringId - Scaling rule ID.
- scaling
Policy StringName - Name of the scaling rule.
- scaling
Policy StringType - Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
- scheduled
Policy ScalingPolicy Scheduled Policy - Detailed information for scheduled/recurring tasks.
- status String
- Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
- adjustment
Type string - Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
- adjustment
Value number - Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
- alarm
Policy ScalingPolicy Alarm Policy - Detailed information about the alarm task.
- cooldown number
- Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
- is
Enabled booleanPolicy - Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
- scaling
Group stringId - Scaling group ID.
- scaling
Policy stringId - Scaling rule ID.
- scaling
Policy stringName - Name of the scaling rule.
- scaling
Policy stringType - Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
- scheduled
Policy ScalingPolicy Scheduled Policy - Detailed information for scheduled/recurring tasks.
- status string
- Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
- adjustment_
type str - Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
- adjustment_
value int - Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
- alarm_
policy ScalingPolicy Alarm Policy Args - Detailed information about the alarm task.
- cooldown int
- Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
- is_
enabled_ boolpolicy - Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
- scaling_
group_ strid - Scaling group ID.
- scaling_
policy_ strid - Scaling rule ID.
- scaling_
policy_ strname - Name of the scaling rule.
- scaling_
policy_ strtype - Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
- scheduled_
policy ScalingPolicy Scheduled Policy Args - Detailed information for scheduled/recurring tasks.
- status str
- Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
- adjustment
Type String - Scaling actions for the scaling rule, applicable to simple and step rules. QuantityChangeInCapacity: increase or decrease a specified number of instances. PercentChangeInCapacity: increase or decrease a specified percentage of instances. TotalCapacity: adjust the number of instances in the current scaling group to the specified value.
- adjustment
Value Number - Adjustment value for scaling actions, applicable to simple and step rules. When AdjustmentType is set to QuantityChangeInCapacity: -100 to 100, cannot be 0, unit: instances. When AdjustmentType is set to PercentChangeInCapacity: -100 to 10000, cannot be 0, unit: %. When AdjustmentType is set to TotalCapacity: defaults to 0 to 100, unit: instances.
- alarm
Policy Property Map - Detailed information about the alarm task.
- cooldown Number
- Cooldown time for scaling rules. Value: 0–86400, unit: seconds. If not specified, the scaling group's cooldown time is used by default.
- is
Enabled BooleanPolicy - Status of the scaling rule. Options: true: enabled. false: disabled. The scaling group must be in Active status.
- scaling
Group StringId - Scaling group ID.
- scaling
Policy StringId - Scaling rule ID.
- scaling
Policy StringName - Name of the scaling rule.
- scaling
Policy StringType - Type of scaling rule. Options: Scheduled: scheduled task. Recurrence: recurring task. Alarm: alarm task.
- scheduled
Policy Property Map - Detailed information for scheduled/recurring tasks.
- status String
- Status of the scaling rule. Options: Active: enabled. Inactive: disabled. The scaling group must be in Active status.
Supporting Types
ScalingPolicyAlarmPolicy, ScalingPolicyAlarmPolicyArgs
- Condition
Byteplus.
Scaling Policy Alarm Policy Condition - Detailed monitoring metric information for single-metric monitoring. Valid only when ScalingPolicyType is set to Alarm.
- Condition
Operator string - Determination conditions for multi-metric alarms. &&: Alarm is triggered only when all metrics meet the conditions. || (default): Alarm is triggered when any metric meets the condition.
- Conditions
List<Byteplus.
Scaling Policy Alarm Policy Condition> - Effective string
- The effective period for the alarm task.
- Evaluation
Count int - Scaling actions are triggered when monitoring metric data reaches the threshold for several consecutive times. Valid only when ScalingPolicyType is set to Alarm and required.
- Rule
Type string - Type of alarm task. Options: Static: static monitoring collected by agent. Valid only when ScalingPolicyType is set to Alarm and required.
- Condition
Scaling
Policy Alarm Policy Condition - Detailed monitoring metric information for single-metric monitoring. Valid only when ScalingPolicyType is set to Alarm.
- Condition
Operator string - Determination conditions for multi-metric alarms. &&: Alarm is triggered only when all metrics meet the conditions. || (default): Alarm is triggered when any metric meets the condition.
- Conditions
[]Scaling
Policy Alarm Policy Condition - Effective string
- The effective period for the alarm task.
- Evaluation
Count int - Scaling actions are triggered when monitoring metric data reaches the threshold for several consecutive times. Valid only when ScalingPolicyType is set to Alarm and required.
- Rule
Type string - Type of alarm task. Options: Static: static monitoring collected by agent. Valid only when ScalingPolicyType is set to Alarm and required.
- condition
Scaling
Policy Alarm Policy Condition - Detailed monitoring metric information for single-metric monitoring. Valid only when ScalingPolicyType is set to Alarm.
- condition
Operator String - Determination conditions for multi-metric alarms. &&: Alarm is triggered only when all metrics meet the conditions. || (default): Alarm is triggered when any metric meets the condition.
- conditions
List<Scaling
Policy Alarm Policy Condition> - effective String
- The effective period for the alarm task.
- evaluation
Count Integer - Scaling actions are triggered when monitoring metric data reaches the threshold for several consecutive times. Valid only when ScalingPolicyType is set to Alarm and required.
- rule
Type String - Type of alarm task. Options: Static: static monitoring collected by agent. Valid only when ScalingPolicyType is set to Alarm and required.
- condition
Scaling
Policy Alarm Policy Condition - Detailed monitoring metric information for single-metric monitoring. Valid only when ScalingPolicyType is set to Alarm.
- condition
Operator string - Determination conditions for multi-metric alarms. &&: Alarm is triggered only when all metrics meet the conditions. || (default): Alarm is triggered when any metric meets the condition.
- conditions
Scaling
Policy Alarm Policy Condition[] - effective string
- The effective period for the alarm task.
- evaluation
Count number - Scaling actions are triggered when monitoring metric data reaches the threshold for several consecutive times. Valid only when ScalingPolicyType is set to Alarm and required.
- rule
Type string - Type of alarm task. Options: Static: static monitoring collected by agent. Valid only when ScalingPolicyType is set to Alarm and required.
- condition
Scaling
Policy Alarm Policy Condition - Detailed monitoring metric information for single-metric monitoring. Valid only when ScalingPolicyType is set to Alarm.
- condition_
operator str - Determination conditions for multi-metric alarms. &&: Alarm is triggered only when all metrics meet the conditions. || (default): Alarm is triggered when any metric meets the condition.
- conditions
Sequence[Scaling
Policy Alarm Policy Condition] - effective str
- The effective period for the alarm task.
- evaluation_
count int - Scaling actions are triggered when monitoring metric data reaches the threshold for several consecutive times. Valid only when ScalingPolicyType is set to Alarm and required.
- rule_
type str - Type of alarm task. Options: Static: static monitoring collected by agent. Valid only when ScalingPolicyType is set to Alarm and required.
- condition Property Map
- Detailed monitoring metric information for single-metric monitoring. Valid only when ScalingPolicyType is set to Alarm.
- condition
Operator String - Determination conditions for multi-metric alarms. &&: Alarm is triggered only when all metrics meet the conditions. || (default): Alarm is triggered when any metric meets the condition.
- conditions List<Property Map>
- effective String
- The effective period for the alarm task.
- evaluation
Count Number - Scaling actions are triggered when monitoring metric data reaches the threshold for several consecutive times. Valid only when ScalingPolicyType is set to Alarm and required.
- rule
Type String - Type of alarm task. Options: Static: static monitoring collected by agent. Valid only when ScalingPolicyType is set to Alarm and required.
ScalingPolicyAlarmPolicyCondition, ScalingPolicyAlarmPolicyConditionArgs
- Comparison
Operator string - Rule expression object for metric alarms. >: Greater than. <: Less than. =: Equal to.
- Metric
Name string - Monitoring metric names for metric alarms. CpuTotalMax: Maximum in-band CPU usage. CpuTotalMin: Minimum in-band CPU usage. CpuTotalAvg: Average in-band CPU usage. MemoryUsedUtilizationMax: Maximum in-band memory usage. MemoryUsedUtilizationMin: Minimum in-band memory usage. MemoryUsedUtilizationAvg: Average in-band memory usage. InstanceCpuBusyMax: Maximum out-of-band CPU utilization. InstanceCpuBusyMin: Minimum out-of-band CPU utilization. InstanceCpuBusyAvg: Average out-of-band CPU utilization. InstanceNetTxBitsAvg: Average out-of-band network outbound rate. InstanceNetRxBitsAvg: Average out-of-band network inbound rate. InstanceNetTxPacketsAvg: Average out-of-band network packet send rate. InstanceNetRxPacketsAvg: Average out-of-band network packet receive rate. SystemDiskReadBytesAvg: Average in-band system disk read bandwidth. SystemDiskWriteBytesAvg: Average in-band system disk write bandwidth. SystemDiskReadIOPSAvg: Average in-band system disk read IOPS. SystemDiskWriteIOPSAvg: Average in-band system disk write IOPS. NetTcpConnection_Avg: Average in-band TCP connection count.
- Metric
Unit string - The unit for the monitoring metric threshold when an alarm is triggered. When the AlarmPolicy.Conditions.MetricName parameter is set to CPU/memory usage: Percent. When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write bandwidth: Bytes/Second(IEC). When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write IOPS: Count/Second. When the AlarmPolicy.Conditions.MetricName parameter is set to TCP connections: Count. When the AlarmPolicy.Condition.MetricName parameter is set to network inbound/outbound rate: Bits/Second(IEC). When the AlarmPolicy.Condition.MetricName parameter is set to network packet transmission rate: Packet/Second.
- Threshold string
- The threshold value for the monitoring metric when an alarm is triggered. When AlarmPolicy.Conditions.MetricUnit is set to Percent: 1–100. When AlarmPolicy.Conditions.MetricUnit is set to Bytes/Second(IEC): an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count/Second: an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count: an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Bits/Second(IEC): an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Packet/Second: an integer greater than 0.
- Comparison
Operator string - Rule expression object for metric alarms. >: Greater than. <: Less than. =: Equal to.
- Metric
Name string - Monitoring metric names for metric alarms. CpuTotalMax: Maximum in-band CPU usage. CpuTotalMin: Minimum in-band CPU usage. CpuTotalAvg: Average in-band CPU usage. MemoryUsedUtilizationMax: Maximum in-band memory usage. MemoryUsedUtilizationMin: Minimum in-band memory usage. MemoryUsedUtilizationAvg: Average in-band memory usage. InstanceCpuBusyMax: Maximum out-of-band CPU utilization. InstanceCpuBusyMin: Minimum out-of-band CPU utilization. InstanceCpuBusyAvg: Average out-of-band CPU utilization. InstanceNetTxBitsAvg: Average out-of-band network outbound rate. InstanceNetRxBitsAvg: Average out-of-band network inbound rate. InstanceNetTxPacketsAvg: Average out-of-band network packet send rate. InstanceNetRxPacketsAvg: Average out-of-band network packet receive rate. SystemDiskReadBytesAvg: Average in-band system disk read bandwidth. SystemDiskWriteBytesAvg: Average in-band system disk write bandwidth. SystemDiskReadIOPSAvg: Average in-band system disk read IOPS. SystemDiskWriteIOPSAvg: Average in-band system disk write IOPS. NetTcpConnection_Avg: Average in-band TCP connection count.
- Metric
Unit string - The unit for the monitoring metric threshold when an alarm is triggered. When the AlarmPolicy.Conditions.MetricName parameter is set to CPU/memory usage: Percent. When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write bandwidth: Bytes/Second(IEC). When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write IOPS: Count/Second. When the AlarmPolicy.Conditions.MetricName parameter is set to TCP connections: Count. When the AlarmPolicy.Condition.MetricName parameter is set to network inbound/outbound rate: Bits/Second(IEC). When the AlarmPolicy.Condition.MetricName parameter is set to network packet transmission rate: Packet/Second.
- Threshold string
- The threshold value for the monitoring metric when an alarm is triggered. When AlarmPolicy.Conditions.MetricUnit is set to Percent: 1–100. When AlarmPolicy.Conditions.MetricUnit is set to Bytes/Second(IEC): an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count/Second: an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count: an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Bits/Second(IEC): an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Packet/Second: an integer greater than 0.
- comparison
Operator String - Rule expression object for metric alarms. >: Greater than. <: Less than. =: Equal to.
- metric
Name String - Monitoring metric names for metric alarms. CpuTotalMax: Maximum in-band CPU usage. CpuTotalMin: Minimum in-band CPU usage. CpuTotalAvg: Average in-band CPU usage. MemoryUsedUtilizationMax: Maximum in-band memory usage. MemoryUsedUtilizationMin: Minimum in-band memory usage. MemoryUsedUtilizationAvg: Average in-band memory usage. InstanceCpuBusyMax: Maximum out-of-band CPU utilization. InstanceCpuBusyMin: Minimum out-of-band CPU utilization. InstanceCpuBusyAvg: Average out-of-band CPU utilization. InstanceNetTxBitsAvg: Average out-of-band network outbound rate. InstanceNetRxBitsAvg: Average out-of-band network inbound rate. InstanceNetTxPacketsAvg: Average out-of-band network packet send rate. InstanceNetRxPacketsAvg: Average out-of-band network packet receive rate. SystemDiskReadBytesAvg: Average in-band system disk read bandwidth. SystemDiskWriteBytesAvg: Average in-band system disk write bandwidth. SystemDiskReadIOPSAvg: Average in-band system disk read IOPS. SystemDiskWriteIOPSAvg: Average in-band system disk write IOPS. NetTcpConnection_Avg: Average in-band TCP connection count.
- metric
Unit String - The unit for the monitoring metric threshold when an alarm is triggered. When the AlarmPolicy.Conditions.MetricName parameter is set to CPU/memory usage: Percent. When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write bandwidth: Bytes/Second(IEC). When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write IOPS: Count/Second. When the AlarmPolicy.Conditions.MetricName parameter is set to TCP connections: Count. When the AlarmPolicy.Condition.MetricName parameter is set to network inbound/outbound rate: Bits/Second(IEC). When the AlarmPolicy.Condition.MetricName parameter is set to network packet transmission rate: Packet/Second.
- threshold String
- The threshold value for the monitoring metric when an alarm is triggered. When AlarmPolicy.Conditions.MetricUnit is set to Percent: 1–100. When AlarmPolicy.Conditions.MetricUnit is set to Bytes/Second(IEC): an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count/Second: an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count: an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Bits/Second(IEC): an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Packet/Second: an integer greater than 0.
- comparison
Operator string - Rule expression object for metric alarms. >: Greater than. <: Less than. =: Equal to.
- metric
Name string - Monitoring metric names for metric alarms. CpuTotalMax: Maximum in-band CPU usage. CpuTotalMin: Minimum in-band CPU usage. CpuTotalAvg: Average in-band CPU usage. MemoryUsedUtilizationMax: Maximum in-band memory usage. MemoryUsedUtilizationMin: Minimum in-band memory usage. MemoryUsedUtilizationAvg: Average in-band memory usage. InstanceCpuBusyMax: Maximum out-of-band CPU utilization. InstanceCpuBusyMin: Minimum out-of-band CPU utilization. InstanceCpuBusyAvg: Average out-of-band CPU utilization. InstanceNetTxBitsAvg: Average out-of-band network outbound rate. InstanceNetRxBitsAvg: Average out-of-band network inbound rate. InstanceNetTxPacketsAvg: Average out-of-band network packet send rate. InstanceNetRxPacketsAvg: Average out-of-band network packet receive rate. SystemDiskReadBytesAvg: Average in-band system disk read bandwidth. SystemDiskWriteBytesAvg: Average in-band system disk write bandwidth. SystemDiskReadIOPSAvg: Average in-band system disk read IOPS. SystemDiskWriteIOPSAvg: Average in-band system disk write IOPS. NetTcpConnection_Avg: Average in-band TCP connection count.
- metric
Unit string - The unit for the monitoring metric threshold when an alarm is triggered. When the AlarmPolicy.Conditions.MetricName parameter is set to CPU/memory usage: Percent. When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write bandwidth: Bytes/Second(IEC). When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write IOPS: Count/Second. When the AlarmPolicy.Conditions.MetricName parameter is set to TCP connections: Count. When the AlarmPolicy.Condition.MetricName parameter is set to network inbound/outbound rate: Bits/Second(IEC). When the AlarmPolicy.Condition.MetricName parameter is set to network packet transmission rate: Packet/Second.
- threshold string
- The threshold value for the monitoring metric when an alarm is triggered. When AlarmPolicy.Conditions.MetricUnit is set to Percent: 1–100. When AlarmPolicy.Conditions.MetricUnit is set to Bytes/Second(IEC): an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count/Second: an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count: an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Bits/Second(IEC): an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Packet/Second: an integer greater than 0.
- comparison_
operator str - Rule expression object for metric alarms. >: Greater than. <: Less than. =: Equal to.
- metric_
name str - Monitoring metric names for metric alarms. CpuTotalMax: Maximum in-band CPU usage. CpuTotalMin: Minimum in-band CPU usage. CpuTotalAvg: Average in-band CPU usage. MemoryUsedUtilizationMax: Maximum in-band memory usage. MemoryUsedUtilizationMin: Minimum in-band memory usage. MemoryUsedUtilizationAvg: Average in-band memory usage. InstanceCpuBusyMax: Maximum out-of-band CPU utilization. InstanceCpuBusyMin: Minimum out-of-band CPU utilization. InstanceCpuBusyAvg: Average out-of-band CPU utilization. InstanceNetTxBitsAvg: Average out-of-band network outbound rate. InstanceNetRxBitsAvg: Average out-of-band network inbound rate. InstanceNetTxPacketsAvg: Average out-of-band network packet send rate. InstanceNetRxPacketsAvg: Average out-of-band network packet receive rate. SystemDiskReadBytesAvg: Average in-band system disk read bandwidth. SystemDiskWriteBytesAvg: Average in-band system disk write bandwidth. SystemDiskReadIOPSAvg: Average in-band system disk read IOPS. SystemDiskWriteIOPSAvg: Average in-band system disk write IOPS. NetTcpConnection_Avg: Average in-band TCP connection count.
- metric_
unit str - The unit for the monitoring metric threshold when an alarm is triggered. When the AlarmPolicy.Conditions.MetricName parameter is set to CPU/memory usage: Percent. When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write bandwidth: Bytes/Second(IEC). When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write IOPS: Count/Second. When the AlarmPolicy.Conditions.MetricName parameter is set to TCP connections: Count. When the AlarmPolicy.Condition.MetricName parameter is set to network inbound/outbound rate: Bits/Second(IEC). When the AlarmPolicy.Condition.MetricName parameter is set to network packet transmission rate: Packet/Second.
- threshold str
- The threshold value for the monitoring metric when an alarm is triggered. When AlarmPolicy.Conditions.MetricUnit is set to Percent: 1–100. When AlarmPolicy.Conditions.MetricUnit is set to Bytes/Second(IEC): an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count/Second: an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count: an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Bits/Second(IEC): an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Packet/Second: an integer greater than 0.
- comparison
Operator String - Rule expression object for metric alarms. >: Greater than. <: Less than. =: Equal to.
- metric
Name String - Monitoring metric names for metric alarms. CpuTotalMax: Maximum in-band CPU usage. CpuTotalMin: Minimum in-band CPU usage. CpuTotalAvg: Average in-band CPU usage. MemoryUsedUtilizationMax: Maximum in-band memory usage. MemoryUsedUtilizationMin: Minimum in-band memory usage. MemoryUsedUtilizationAvg: Average in-band memory usage. InstanceCpuBusyMax: Maximum out-of-band CPU utilization. InstanceCpuBusyMin: Minimum out-of-band CPU utilization. InstanceCpuBusyAvg: Average out-of-band CPU utilization. InstanceNetTxBitsAvg: Average out-of-band network outbound rate. InstanceNetRxBitsAvg: Average out-of-band network inbound rate. InstanceNetTxPacketsAvg: Average out-of-band network packet send rate. InstanceNetRxPacketsAvg: Average out-of-band network packet receive rate. SystemDiskReadBytesAvg: Average in-band system disk read bandwidth. SystemDiskWriteBytesAvg: Average in-band system disk write bandwidth. SystemDiskReadIOPSAvg: Average in-band system disk read IOPS. SystemDiskWriteIOPSAvg: Average in-band system disk write IOPS. NetTcpConnection_Avg: Average in-band TCP connection count.
- metric
Unit String - The unit for the monitoring metric threshold when an alarm is triggered. When the AlarmPolicy.Conditions.MetricName parameter is set to CPU/memory usage: Percent. When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write bandwidth: Bytes/Second(IEC). When the AlarmPolicy.Conditions.MetricName parameter is set to system disk read/write IOPS: Count/Second. When the AlarmPolicy.Conditions.MetricName parameter is set to TCP connections: Count. When the AlarmPolicy.Condition.MetricName parameter is set to network inbound/outbound rate: Bits/Second(IEC). When the AlarmPolicy.Condition.MetricName parameter is set to network packet transmission rate: Packet/Second.
- threshold String
- The threshold value for the monitoring metric when an alarm is triggered. When AlarmPolicy.Conditions.MetricUnit is set to Percent: 1–100. When AlarmPolicy.Conditions.MetricUnit is set to Bytes/Second(IEC): an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count/Second: an integer greater than 0. When AlarmPolicy.Conditions.MetricUnit is set to Count: an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Bits/Second(IEC): an integer greater than 0. When AlarmPolicy.Condition.MetricUnit is set to Packet/Second: an integer greater than 0.
ScalingPolicyScheduledPolicy, ScalingPolicyScheduledPolicyArgs
- Launch
Time string - Indicates the trigger time for the task. The default is the current time. When ScalingPolicyType is set to Scheduled, this specifies the trigger time for the scheduled task. When ScalingPolicyType is set to Recurrence: If ScheduledPolicy.RecurrenceType is empty, the task is executed only once at the specified date and time. If ScheduledPolicy.RecurrenceType is not empty, this specifies the start time for the recurring task.
- Launch
Time stringRead - Indicates the task trigger time. This is a read-only field; use LaunchTime to modify or create.
- Recurrence
End stringTime - Indicates the end time for the recurring task. Only supports selecting a time within 365 days from the creation date. If not configured, defaults to one day/week/month after the current time based on the recurrence cycle (ScheduledPolicy.RecurrenceType). If set to empty, the task never stops. Valid only when ScalingPolicyType is set to Recurrence and required.
- Recurrence
End stringTime Read - Indicates the end time for the recurring task. Read-only field; use RecurrenceEndTime for modification or creation.
- Recurrence
Start stringTime - Indicates the start time for the recurring task. Valid only when ScalingPolicyType is set to Recurrence.
- Recurrence
Type string - Indicates the recurrence cycle for scheduled tasks. Values: Daily: Executes once every XX days. Weekly: Select specific days of the week, executes once per day. Monthly: Select XX to XX days of the month, executes once per day. Cron: Executes according to the specified Cron expression. Required and valid only when ScalingPolicyType is set to Recurrence.
- Recurrence
Value string - Specifies the value for recurring tasks. When the ScheduledPolicy.RecurrenceType parameter is set to Daily, only one value can be entered: 1–31. When the ScheduledPolicy.RecurrenceType parameter is set to Weekly, multiple values can be entered, separated by commas (,). Values for Monday to Sunday are: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday). When the ScheduledPolicy.RecurrenceType parameter is set to Monthly, the format is A-B. Both A and B range from 1–31, and B must be greater than or equal to A. When the ScheduledPolicy.RecurrenceType parameter is set to Cron, it uses UTC+8 time and supports a five-field expression for minute, hour, day, month, and week. Wildcards supported include comma (,), question mark (?), hyphen (-), asterisk (*), hash (#), slash (/), L, and W. This field is valid and required when ScalingPolicyType is set to Recurrence.
- Launch
Time string - Indicates the trigger time for the task. The default is the current time. When ScalingPolicyType is set to Scheduled, this specifies the trigger time for the scheduled task. When ScalingPolicyType is set to Recurrence: If ScheduledPolicy.RecurrenceType is empty, the task is executed only once at the specified date and time. If ScheduledPolicy.RecurrenceType is not empty, this specifies the start time for the recurring task.
- Launch
Time stringRead - Indicates the task trigger time. This is a read-only field; use LaunchTime to modify or create.
- Recurrence
End stringTime - Indicates the end time for the recurring task. Only supports selecting a time within 365 days from the creation date. If not configured, defaults to one day/week/month after the current time based on the recurrence cycle (ScheduledPolicy.RecurrenceType). If set to empty, the task never stops. Valid only when ScalingPolicyType is set to Recurrence and required.
- Recurrence
End stringTime Read - Indicates the end time for the recurring task. Read-only field; use RecurrenceEndTime for modification or creation.
- Recurrence
Start stringTime - Indicates the start time for the recurring task. Valid only when ScalingPolicyType is set to Recurrence.
- Recurrence
Type string - Indicates the recurrence cycle for scheduled tasks. Values: Daily: Executes once every XX days. Weekly: Select specific days of the week, executes once per day. Monthly: Select XX to XX days of the month, executes once per day. Cron: Executes according to the specified Cron expression. Required and valid only when ScalingPolicyType is set to Recurrence.
- Recurrence
Value string - Specifies the value for recurring tasks. When the ScheduledPolicy.RecurrenceType parameter is set to Daily, only one value can be entered: 1–31. When the ScheduledPolicy.RecurrenceType parameter is set to Weekly, multiple values can be entered, separated by commas (,). Values for Monday to Sunday are: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday). When the ScheduledPolicy.RecurrenceType parameter is set to Monthly, the format is A-B. Both A and B range from 1–31, and B must be greater than or equal to A. When the ScheduledPolicy.RecurrenceType parameter is set to Cron, it uses UTC+8 time and supports a five-field expression for minute, hour, day, month, and week. Wildcards supported include comma (,), question mark (?), hyphen (-), asterisk (*), hash (#), slash (/), L, and W. This field is valid and required when ScalingPolicyType is set to Recurrence.
- launch
Time String - Indicates the trigger time for the task. The default is the current time. When ScalingPolicyType is set to Scheduled, this specifies the trigger time for the scheduled task. When ScalingPolicyType is set to Recurrence: If ScheduledPolicy.RecurrenceType is empty, the task is executed only once at the specified date and time. If ScheduledPolicy.RecurrenceType is not empty, this specifies the start time for the recurring task.
- launch
Time StringRead - Indicates the task trigger time. This is a read-only field; use LaunchTime to modify or create.
- recurrence
End StringTime - Indicates the end time for the recurring task. Only supports selecting a time within 365 days from the creation date. If not configured, defaults to one day/week/month after the current time based on the recurrence cycle (ScheduledPolicy.RecurrenceType). If set to empty, the task never stops. Valid only when ScalingPolicyType is set to Recurrence and required.
- recurrence
End StringTime Read - Indicates the end time for the recurring task. Read-only field; use RecurrenceEndTime for modification or creation.
- recurrence
Start StringTime - Indicates the start time for the recurring task. Valid only when ScalingPolicyType is set to Recurrence.
- recurrence
Type String - Indicates the recurrence cycle for scheduled tasks. Values: Daily: Executes once every XX days. Weekly: Select specific days of the week, executes once per day. Monthly: Select XX to XX days of the month, executes once per day. Cron: Executes according to the specified Cron expression. Required and valid only when ScalingPolicyType is set to Recurrence.
- recurrence
Value String - Specifies the value for recurring tasks. When the ScheduledPolicy.RecurrenceType parameter is set to Daily, only one value can be entered: 1–31. When the ScheduledPolicy.RecurrenceType parameter is set to Weekly, multiple values can be entered, separated by commas (,). Values for Monday to Sunday are: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday). When the ScheduledPolicy.RecurrenceType parameter is set to Monthly, the format is A-B. Both A and B range from 1–31, and B must be greater than or equal to A. When the ScheduledPolicy.RecurrenceType parameter is set to Cron, it uses UTC+8 time and supports a five-field expression for minute, hour, day, month, and week. Wildcards supported include comma (,), question mark (?), hyphen (-), asterisk (*), hash (#), slash (/), L, and W. This field is valid and required when ScalingPolicyType is set to Recurrence.
- launch
Time string - Indicates the trigger time for the task. The default is the current time. When ScalingPolicyType is set to Scheduled, this specifies the trigger time for the scheduled task. When ScalingPolicyType is set to Recurrence: If ScheduledPolicy.RecurrenceType is empty, the task is executed only once at the specified date and time. If ScheduledPolicy.RecurrenceType is not empty, this specifies the start time for the recurring task.
- launch
Time stringRead - Indicates the task trigger time. This is a read-only field; use LaunchTime to modify or create.
- recurrence
End stringTime - Indicates the end time for the recurring task. Only supports selecting a time within 365 days from the creation date. If not configured, defaults to one day/week/month after the current time based on the recurrence cycle (ScheduledPolicy.RecurrenceType). If set to empty, the task never stops. Valid only when ScalingPolicyType is set to Recurrence and required.
- recurrence
End stringTime Read - Indicates the end time for the recurring task. Read-only field; use RecurrenceEndTime for modification or creation.
- recurrence
Start stringTime - Indicates the start time for the recurring task. Valid only when ScalingPolicyType is set to Recurrence.
- recurrence
Type string - Indicates the recurrence cycle for scheduled tasks. Values: Daily: Executes once every XX days. Weekly: Select specific days of the week, executes once per day. Monthly: Select XX to XX days of the month, executes once per day. Cron: Executes according to the specified Cron expression. Required and valid only when ScalingPolicyType is set to Recurrence.
- recurrence
Value string - Specifies the value for recurring tasks. When the ScheduledPolicy.RecurrenceType parameter is set to Daily, only one value can be entered: 1–31. When the ScheduledPolicy.RecurrenceType parameter is set to Weekly, multiple values can be entered, separated by commas (,). Values for Monday to Sunday are: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday). When the ScheduledPolicy.RecurrenceType parameter is set to Monthly, the format is A-B. Both A and B range from 1–31, and B must be greater than or equal to A. When the ScheduledPolicy.RecurrenceType parameter is set to Cron, it uses UTC+8 time and supports a five-field expression for minute, hour, day, month, and week. Wildcards supported include comma (,), question mark (?), hyphen (-), asterisk (*), hash (#), slash (/), L, and W. This field is valid and required when ScalingPolicyType is set to Recurrence.
- launch_
time str - Indicates the trigger time for the task. The default is the current time. When ScalingPolicyType is set to Scheduled, this specifies the trigger time for the scheduled task. When ScalingPolicyType is set to Recurrence: If ScheduledPolicy.RecurrenceType is empty, the task is executed only once at the specified date and time. If ScheduledPolicy.RecurrenceType is not empty, this specifies the start time for the recurring task.
- launch_
time_ strread - Indicates the task trigger time. This is a read-only field; use LaunchTime to modify or create.
- recurrence_
end_ strtime - Indicates the end time for the recurring task. Only supports selecting a time within 365 days from the creation date. If not configured, defaults to one day/week/month after the current time based on the recurrence cycle (ScheduledPolicy.RecurrenceType). If set to empty, the task never stops. Valid only when ScalingPolicyType is set to Recurrence and required.
- recurrence_
end_ strtime_ read - Indicates the end time for the recurring task. Read-only field; use RecurrenceEndTime for modification or creation.
- recurrence_
start_ strtime - Indicates the start time for the recurring task. Valid only when ScalingPolicyType is set to Recurrence.
- recurrence_
type str - Indicates the recurrence cycle for scheduled tasks. Values: Daily: Executes once every XX days. Weekly: Select specific days of the week, executes once per day. Monthly: Select XX to XX days of the month, executes once per day. Cron: Executes according to the specified Cron expression. Required and valid only when ScalingPolicyType is set to Recurrence.
- recurrence_
value str - Specifies the value for recurring tasks. When the ScheduledPolicy.RecurrenceType parameter is set to Daily, only one value can be entered: 1–31. When the ScheduledPolicy.RecurrenceType parameter is set to Weekly, multiple values can be entered, separated by commas (,). Values for Monday to Sunday are: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday). When the ScheduledPolicy.RecurrenceType parameter is set to Monthly, the format is A-B. Both A and B range from 1–31, and B must be greater than or equal to A. When the ScheduledPolicy.RecurrenceType parameter is set to Cron, it uses UTC+8 time and supports a five-field expression for minute, hour, day, month, and week. Wildcards supported include comma (,), question mark (?), hyphen (-), asterisk (*), hash (#), slash (/), L, and W. This field is valid and required when ScalingPolicyType is set to Recurrence.
- launch
Time String - Indicates the trigger time for the task. The default is the current time. When ScalingPolicyType is set to Scheduled, this specifies the trigger time for the scheduled task. When ScalingPolicyType is set to Recurrence: If ScheduledPolicy.RecurrenceType is empty, the task is executed only once at the specified date and time. If ScheduledPolicy.RecurrenceType is not empty, this specifies the start time for the recurring task.
- launch
Time StringRead - Indicates the task trigger time. This is a read-only field; use LaunchTime to modify or create.
- recurrence
End StringTime - Indicates the end time for the recurring task. Only supports selecting a time within 365 days from the creation date. If not configured, defaults to one day/week/month after the current time based on the recurrence cycle (ScheduledPolicy.RecurrenceType). If set to empty, the task never stops. Valid only when ScalingPolicyType is set to Recurrence and required.
- recurrence
End StringTime Read - Indicates the end time for the recurring task. Read-only field; use RecurrenceEndTime for modification or creation.
- recurrence
Start StringTime - Indicates the start time for the recurring task. Valid only when ScalingPolicyType is set to Recurrence.
- recurrence
Type String - Indicates the recurrence cycle for scheduled tasks. Values: Daily: Executes once every XX days. Weekly: Select specific days of the week, executes once per day. Monthly: Select XX to XX days of the month, executes once per day. Cron: Executes according to the specified Cron expression. Required and valid only when ScalingPolicyType is set to Recurrence.
- recurrence
Value String - Specifies the value for recurring tasks. When the ScheduledPolicy.RecurrenceType parameter is set to Daily, only one value can be entered: 1–31. When the ScheduledPolicy.RecurrenceType parameter is set to Weekly, multiple values can be entered, separated by commas (,). Values for Monday to Sunday are: 1 (Monday), 2 (Tuesday), 3 (Wednesday), 4 (Thursday), 5 (Friday), 6 (Saturday), 7 (Sunday). When the ScheduledPolicy.RecurrenceType parameter is set to Monthly, the format is A-B. Both A and B range from 1–31, and B must be greater than or equal to A. When the ScheduledPolicy.RecurrenceType parameter is set to Cron, it uses UTC+8 time and supports a five-field expression for minute, hour, day, month, and week. Wildcards supported include comma (,), question mark (?), hyphen (-), asterisk (*), hash (#), slash (/), L, and W. This field is valid and required when ScalingPolicyType is set to Recurrence.
Import
$ pulumi import bytepluscc:autoscaling/scalingPolicy:ScalingPolicy example "scaling_group_id|scaling_policy_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- bytepluscc byteplus-sdk/pulumi-bytepluscc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
byteplusccTerraform Provider.
published on Thursday, Apr 2, 2026 by Byteplus
