Mengkueri aturan penskalaan dalam grup penskalaan dan mengembalikan informasi tentang aturan penskalaan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ess:DescribeScalingRules |
get |
*ScalingGroup
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah grup penskalaan tempat aturan penskalaan berada. |
cn-qingdao |
| PageNumber |
integer |
No |
Nomor halaman daftar aturan penskalaan. Nilai minimum: 1. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman untuk kueri penomoran halaman. Nilai maksimum: 50. Nilai default: 10. |
50 |
| ScalingGroupId |
string |
No |
ID grup penskalaan. |
asg-bp1ffogfdauy0jw0**** |
| ScalingRuleType |
string |
No |
Tipe aturan penskalaan. Nilai valid:
|
SimpleScalingRule |
| ShowAlarmRules |
boolean |
No |
Apakah akan mengembalikan tugas Pemicu event CloudMonitor yang terkait dengan aturan penskalaan. Nilai valid:
Nilai default: false. |
false |
| ScalingRuleId |
array |
No |
ID aturan penskalaan N yang ingin Anda kueri. Nilai valid untuk N: 1 hingga 10. |
asr-bp1dvirgwkoowxk7**** |
|
string |
No |
ID aturan penskalaan N yang ingin Anda kueri. Nilai valid untuk N: 1 hingga 10. |
asr-bp1dvirgwkoowxk7**** |
|
| ScalingRuleName |
array |
No |
Nama aturan penskalaan N yang ingin Anda kueri. Nilai valid untuk N: 1 hingga 10. |
scalingrule**** |
|
string |
No |
Nama aturan penskalaan N yang ingin Anda kueri. Nilai valid untuk N: 1 hingga 10. |
scalingrule**** |
|
| ScalingRuleAri |
array |
No |
Pengenal unik aturan penskalaan N yang ingin Anda kueri. Nilai valid untuk N: 1 hingga 10. |
ari:acs:ess:cn-hangzhou:140692647406****:scalingrule/asr-bp1dvirgwkoowxk7**** |
|
string |
No |
Pengenal unik aturan penskalaan N yang ingin Anda kueri. Nilai valid untuk N: 1 hingga 10. |
ari:acs:ess:cn-hangzhou:140692647406****:scalingrule/asr-bp1dvirgwkoowxk7**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| PageNumber |
integer |
Nomor halaman saat ini. |
1 |
| PageSize |
integer |
Jumlah entri per halaman. |
50 |
| TotalCount |
integer |
Jumlah total aturan penskalaan. |
1 |
| ScalingRules |
object |
||
| ScalingRule |
array<object> |
Kumpulan informasi aturan penskalaan. |
|
|
array<object> |
Kumpulan informasi aturan penskalaan. |
||
| MetricName |
string |
The predefined metric. This parameter is applicable to target tracking scaling rules and predictive scaling rules. Valid values for target tracking scaling rules:
Valid values for predictive scaling rules:
|
CpuUtilization |
| AdjustmentType |
string |
The adjustment method of the scaling rule. Valid values:
|
QuantityChangeInCapacity |
| InitialMaxSize |
integer |
The maximum number of instances in the scaling group. This parameter is used in combination with PredictiveValueBehavior. |
100 |
| EstimatedInstanceWarmup |
integer |
The warm-up period of a newly created instance. During the warm-up period, the launched instance does not contribute to the monitoring metrics of the scaling group. |
300 |
| ScaleOutEvaluationCount |
integer |
After a target tracking scaling rule is created, an event-triggered task is automatically created through automatic creation. This parameter specifies the number of consecutive times that the conditional threshold must be met before the corresponding scale-out event-triggered node triggers an alert. |
3 |
| PredictiveScalingMode |
string |
The mode of the predictive scaling rule. Valid values:
|
PredictAndScale |
| MinAdjustmentMagnitude |
integer |
The minimum number of instances to adjust in the scaling rule. This parameter takes effect only when the scaling rule type is |
1 |
| ScalingRuleAri |
string |
The unique identifier of the scaling rule. |
ari:acs:ess:cn-hangzhou:140692647406****:scalingrule/asr-bp1dvirgwkoowxk7**** |
| PredictiveTaskBufferTime |
integer |
The prediction nodes through automatic creation by the predictive scaling rule are executed on the hour by default. You can configure the settings for a buffer time to execute prediction nodes ahead of schedule to prepare resources in advance. Valid values: 0 to 60. Unit: minutes. |
30 |
| MinSize |
integer |
The minimum number of instances in the scaling group. |
1 |
| ScalingGroupId |
string |
The ID of the scaling group. |
asg-bp1ffogfdauy0jw0**** |
| PredictiveValueBehavior |
string |
The action on the predicted maximum value. Valid values:
|
MaxOverridePredictiveValue |
| TargetValue |
number |
The target value. When the scaling rule is a target tracking scaling rule or a predictive scaling rule, the scaling rule adds or removes instances to keep the metric close to the target value. |
0.125 |
| Cooldown |
integer |
The cooldown time of the scaling rule. This parameter is applicable only to simple scaling rules. Valid values: 0 to 86400. Unit: seconds. |
20 |
| MaxSize |
integer |
The maximum number of instances in the scaling group. |
2 |
| PredictiveValueBuffer |
integer |
This parameter takes effect when PredictiveValueBehavior is set to PredictiveValueOverrideMaxWithBuffer. The predicted value is increased by the specified ratio. If the increased value is greater than the initial maximum value, the increased value is used. Valid values: 0 to 100. |
50 |
| ScalingRuleType |
string |
The type of the scaling rule. Valid values:
|
SimpleScalingRule |
| AdjustmentValue |
integer |
The adjustment value of the scaling rule. |
1 |
| ScaleInEvaluationCount |
integer |
After a target tracking scaling rule is created, an event-triggered task is automatically created through automatic creation. This parameter specifies the number of consecutive times that the conditional threshold must be met before the corresponding scale-in event-triggered node triggers an alert. |
15 |
| DisableScaleIn |
boolean |
Indicates whether scale-in is disabled. This parameter is applicable only to target tracking scaling rules. Valid values:
|
true |
| ScalingRuleName |
string |
The name of the scaling rule. |
scalingrule**** |
| ScalingRuleId |
string |
The ID of the scaling rule. |
asr-bp1dvirgwkoowxk7**** |
| Alarms |
object |
||
| Alarm |
array<object> |
The CloudMonitor event-triggered tasks associated with the scaling rule. Event-triggered tasks are returned only when the ShowAlarmRules parameter is set to true. Otherwise, an empty list is returned. |
|
|
array<object> |
The CloudMonitor event-triggered tasks associated with the scaling rule. Event-triggered tasks are returned only when the ShowAlarmRules parameter is set to true. Otherwise, an empty list is returned. |
||
| AlarmTaskId |
string |
The ID of the event-triggered task associated with the scaling rule. |
asg-bp18p2yfxow2dloq****_1f9458d1-70e1-4bee-8c7f-7a47695b**** |
| ComparisonOperator |
string |
The comparison operator between the statistical value and the threshold of the metric for the event-triggered task associated with the scaling rule. The comparison operator indicates the relationship in which the statistical value and the threshold can satisfy the condition. Valid values:
|
>= |
| MetricName |
string |
The name of the metric for the event-triggered task associated with the scaling rule. |
CpuUtilization |
| EvaluationCount |
integer |
The number of consecutive times that the threshold expression must be met before the event-triggered task associated with the scaling rule enters the alert state. |
3 |
| AlarmTaskName |
string |
The name of the event-triggered task associated with the scaling rule. |
alarmtask**** |
| MetricType |
string |
The type of the event-triggered task associated with the scaling rule. Valid values:
|
system |
| Threshold |
number |
The alert threshold of the event-triggered task associated with the scaling rule. |
50 |
| Statistics |
string |
The statistical method of the event-triggered task associated with the scaling rule. Valid values:
|
Average |
| Dimensions |
object |
||
| Dimension |
array<object> |
The dimension information of the event-triggered task associated with the scaling rule. |
|
|
object |
The dimension information of the event-triggered task associated with the scaling rule. |
||
| DimensionKey |
string |
The dimension key of the event-triggered task associated with the metric. Valid values:
|
scaling_group |
| DimensionValue |
string |
The dimension value of the event-triggered task associated with the metric. |
asg-bp18p2yfxow2dloq**** |
| Period |
integer |
The statistical period for monitoring data in the target tracking scaling rule. |
60 |
| StepAdjustments |
object |
||
| StepAdjustment |
array<object> |
The step adjustments of the step scaling rule. |
|
|
object |
The step adjustments of the step scaling rule. |
||
| MetricIntervalUpperBound |
number |
The upper bound of the step adjustment. Valid values: -9.999999E18 to 9.999999E18. |
5.0 |
| ScalingAdjustment |
integer |
The number of instances to scale for the step adjustment. |
1 |
| MetricIntervalLowerBound |
number |
The lower bound of the step adjustment. Valid values: -9.999999E18 to 9.999999E18. |
1.0 |
| AlarmDimensions |
object |
||
| AlarmDimension |
array<object> |
The dimension information associated with the metric. This parameter is applicable to target tracking scaling rules. Set this parameter when the metric requires additional dimension information, such as the |
|
|
object |
The dimension information associated with the metric. This parameter is applicable to target tracking scaling rules. Set this parameter when the metric requires additional dimension information, such as the |
||
| DimensionKey |
string |
The dimension key associated with the metric. |
rulePool |
| DimensionValue |
string |
The dimension value associated with the metric. |
sgp-l1cbirz451yxu2**** |
| MetricType |
string |
The type of the metric. Valid values:
|
system |
| HybridMonitorNamespace |
string |
The ID of the Hybrid Cloud Monitoring monitoring metrics repository. To manage monitoring metrics repositories, see Manage monitoring metrics repositories. |
aliyun-test |
| HybridMetrics |
object |
||
| HybridMetric |
array<object> |
The Hybrid Cloud Monitoring monitoring metrics settings. For more information, see Use formula-based custom target tracking scaling rules. |
|
|
array<object> |
|||
| Id |
string |
The reference ID of the metric in the formula expression. |
a |
| Expression |
string |
The formula expression for multiple Hybrid Cloud Monitoring metrics. The calculation result of the expression is used to trigger scaling. The expression must comply with the Reverse Polish Notation (RPN) specification and supports only the |
(a+b)/2 |
| MetricName |
string |
The name of the monitoring metric in the Hybrid Cloud Monitoring monitoring metrics repository. |
AliyunSmq_NumberOfMessagesVisible |
| Statistic |
string |
The statistical method of the metric. Valid values:
|
Average |
| Dimensions |
object |
||
| Dimension |
array<object> |
The metric dimension. Specifies the resource to be monitored by the metric. |
|
|
object |
|||
| DimensionKey |
string |
The dimension key of the metric. |
queue |
| DimensionValue |
string |
The dimension value of the metric. |
testQueue |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"PageNumber": 1,
"PageSize": 50,
"TotalCount": 1,
"ScalingRules": {
"ScalingRule": [
{
"MetricName": "CpuUtilization",
"AdjustmentType": "QuantityChangeInCapacity",
"InitialMaxSize": 100,
"EstimatedInstanceWarmup": 300,
"ScaleOutEvaluationCount": 3,
"PredictiveScalingMode": "PredictAndScale",
"MinAdjustmentMagnitude": 1,
"ScalingRuleAri": "ari:acs:ess:cn-hangzhou:140692647406****:scalingrule/asr-bp1dvirgwkoowxk7****",
"PredictiveTaskBufferTime": 30,
"MinSize": 1,
"ScalingGroupId": "asg-bp1ffogfdauy0jw0****",
"PredictiveValueBehavior": "MaxOverridePredictiveValue",
"TargetValue": 0.125,
"Cooldown": 20,
"MaxSize": 2,
"PredictiveValueBuffer": 50,
"ScalingRuleType": "SimpleScalingRule",
"AdjustmentValue": 1,
"ScaleInEvaluationCount": 15,
"DisableScaleIn": true,
"ScalingRuleName": "scalingrule****",
"ScalingRuleId": "asr-bp1dvirgwkoowxk7****",
"Alarms": {
"Alarm": [
{
"AlarmTaskId": "asg-bp18p2yfxow2dloq****_1f9458d1-70e1-4bee-8c7f-7a47695b****",
"ComparisonOperator": ">=",
"MetricName": "CpuUtilization",
"EvaluationCount": 3,
"AlarmTaskName": "alarmtask****",
"MetricType": "system",
"Threshold": 50,
"Statistics": "Average",
"Dimensions": {
"Dimension": [
{
"DimensionKey": "scaling_group",
"DimensionValue": "asg-bp18p2yfxow2dloq****"
}
]
},
"Period": 60
}
]
},
"StepAdjustments": {
"StepAdjustment": [
{
"MetricIntervalUpperBound": 5,
"ScalingAdjustment": 1,
"MetricIntervalLowerBound": 1
}
]
},
"AlarmDimensions": {
"AlarmDimension": [
{
"DimensionKey": "rulePool",
"DimensionValue": "sgp-l1cbirz451yxu2****"
}
]
},
"MetricType": "system",
"HybridMonitorNamespace": "aliyun-test",
"HybridMetrics": {
"HybridMetric": [
{
"Id": "a",
"Expression": "(a+b)/2",
"MetricName": "AliyunSmq_NumberOfMessagesVisible",
"Statistic": "Average",
"Dimensions": {
"Dimension": [
{
"DimensionKey": "queue",
"DimensionValue": "testQueue"
}
]
}
}
]
}
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.