You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "An ID group of users to be notified when an alarm is triggered.",
94
95
},
96
+
"policy_type": {
97
+
Type: schema.TypeString,
98
+
Optional: true,
99
+
ForceNew: true,
100
+
Computed: true,
101
+
Description: "Alarm triggering policy type, the default type is SIMPLE. Value range: SIMPLE: Simple policy; TARGET_TRACKING: Target tracking policy.",
102
+
},
103
+
"predefined_metric_type": {
104
+
Type: schema.TypeString,
105
+
Optional: true,
106
+
Description: "Predefined monitoring items, applicable only to target tracking policies, and required in target tracking policy scenarios. Value range: ASG_AVG_CPU_UTILIZATION: Average CPU utilization; ASG_AVG_LAN_TRAFFIC_OUT: Average intranet outbound bandwidth; ASG_AVG_LAN_TRAFFIC_IN: Average intranet inbound bandwidth; ASG_AVG_WAN_TRAFFIC_OUT: Average internet outbound bandwidth; ASG_AVG_WAN_TRAFFIC_IN: Average internet inbound bandwidth.",
107
+
},
108
+
"target_value": {
109
+
Type: schema.TypeInt,
110
+
Optional: true,
111
+
Description: "Target value, applicable only to target tracking strategies, and required in target tracking strategy scenarios. ASG_AVG_CPU_UTILIZATION: [1, 100), Unit: %; ASG_AVG_LAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_LAN_TRAFFIC_IN: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_IN: >0, Unit: Mbps.",
112
+
},
113
+
"estimated_instance_warmup": {
114
+
Type: schema.TypeInt,
115
+
Optional: true,
116
+
Description: "Instance warm-up time, in seconds, applicable only to target tracking strategies. Value range is 0-3600, with a default warm-up time of 300 seconds.",
117
+
},
118
+
"disable_scale_in": {
119
+
Type: schema.TypeBool,
120
+
Optional: true,
121
+
Description: "Whether to disable scaling down applies only to the target tracking strategy; the default value is false. Value range: true: The target tracking strategy only triggers scaling up; false: The target tracking strategy triggers both scaling up and scaling down.",
122
+
},
95
123
},
96
124
}
97
125
}
@@ -128,6 +156,26 @@ func resourceTencentCloudAsScalingPolicyCreate(d *schema.ResourceData, meta inte
Copy file name to clipboardExpand all lines: website/docs/r/as_scaling_policy.html.markdown
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,8 +82,13 @@ The following arguments are supported:
82
82
*`scaling_group_id` - (Required, String, ForceNew) ID of a scaling group.
83
83
*`threshold` - (Required, Int) Alarm threshold.
84
84
*`cooldown` - (Optional, Int) Cooldwon time in second. Default is `30`0.
85
+
*`disable_scale_in` - (Optional, Bool) Whether to disable scaling down applies only to the target tracking strategy; the default value is false. Value range: true: The target tracking strategy only triggers scaling up; false: The target tracking strategy triggers both scaling up and scaling down.
86
+
*`estimated_instance_warmup` - (Optional, Int) Instance warm-up time, in seconds, applicable only to target tracking strategies. Value range is 0-3600, with a default warm-up time of 300 seconds.
85
87
*`notification_user_group_ids` - (Optional, List: [`String`]) An ID group of users to be notified when an alarm is triggered.
88
+
*`policy_type` - (Optional, String, ForceNew) Alarm triggering policy type, the default type is SIMPLE. Value range: SIMPLE: Simple policy; TARGET_TRACKING: Target tracking policy.
89
+
*`predefined_metric_type` - (Optional, String) Predefined monitoring items, applicable only to target tracking policies, and required in target tracking policy scenarios. Value range: ASG_AVG_CPU_UTILIZATION: Average CPU utilization; ASG_AVG_LAN_TRAFFIC_OUT: Average intranet outbound bandwidth; ASG_AVG_LAN_TRAFFIC_IN: Average intranet inbound bandwidth; ASG_AVG_WAN_TRAFFIC_OUT: Average internet outbound bandwidth; ASG_AVG_WAN_TRAFFIC_IN: Average internet inbound bandwidth.
86
90
*`statistic` - (Optional, String) Statistic types. Valid values: `AVERAGE`, `MAXIMUM` and `MINIMUM`. Default is `AVERAGE`.
91
+
*`target_value` - (Optional, Int) Target value, applicable only to target tracking strategies, and required in target tracking strategy scenarios. ASG_AVG_CPU_UTILIZATION: [1, 100), Unit: %; ASG_AVG_LAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_LAN_TRAFFIC_IN: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_OUT: >0, Unit: Mbps; ASG_AVG_WAN_TRAFFIC_IN: >0, Unit: Mbps.
0 commit comments