Consulta as regras de escalabilidade em um grupo de escalabilidade e retorna informações sobre as regras de escalabilidade.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
ess:DescribeScalingRules |
get |
*ScalingGroup
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| RegionId |
string |
Sim |
O ID da região do grupo de escalabilidade ao qual as regras de escalabilidade pertencem. |
cn-qingdao |
| PageNumber |
integer |
Não |
O número da página da lista de regras de escalabilidade. Valor mínimo: 1. Valor padrão: 1. |
1 |
| PageSize |
integer |
Não |
O número de entradas por página para consultas paginadas. Configurações: valor máximo: 50. Valor padrão: 10. |
50 |
| ScalingGroupId |
string |
Não |
O ID do grupo de escalabilidade. |
asg-bp1ffogfdauy0jw0**** |
| ScalingRuleType |
string |
Não |
O tipo da regra de escalabilidade. Valores válidos:
|
SimpleScalingRule |
| ShowAlarmRules |
boolean |
Não |
Especifica se as tarefas acionadas por eventos do CloudMonitor associadas às regras de escalabilidade devem ser retornadas. Valores válidos:
Valor padrão: false. |
false |
| ScalingRuleId |
array |
Não |
O ID da regra de escalabilidade N que você deseja consultar. Valores válidos de N: 1 a 10. |
asr-bp1dvirgwkoowxk7**** |
|
string |
Não |
O ID da regra de escalabilidade N que você deseja consultar. Valores válidos de N: 1 a 10. |
asr-bp1dvirgwkoowxk7**** |
|
| ScalingRuleName |
array |
Não |
O nome da regra de escalabilidade N que você deseja consultar. Valores válidos de N: 1 a 10. |
scalingrule**** |
|
string |
Não |
O nome da regra de escalabilidade N que você deseja consultar. Valores válidos de N: 1 a 10. |
scalingrule**** |
|
| ScalingRuleAri |
array |
Não |
O identificador exclusivo da regra de escalabilidade N que você deseja consultar. Valores válidos de N: 1 a 10. |
ari:acs:ess:cn-hangzhou:140692647406****:scalingrule/asr-bp1dvirgwkoowxk7**** |
|
string |
Não |
O identificador exclusivo da regra de escalabilidade N que você deseja consultar. Valores válidos de N: 1 a 10. |
ari:acs:ess:cn-hangzhou:140692647406****:scalingrule/asr-bp1dvirgwkoowxk7**** |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
| PageNumber |
integer |
O número da página atual. |
1 |
| PageSize |
integer |
O número de entradas por página. |
50 |
| TotalCount |
integer |
O número total de regras de escalabilidade. |
1 |
| ScalingRules |
object |
||
| ScalingRule |
array<object> |
A coleção de informações das regras de escalabilidade. |
|
|
array<object> |
A coleção de informações das regras de escalabilidade. |
||
| 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 |
Exemplos
Resposta de sucesso
JSON formato
{
"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"
}
]
}
}
]
}
}
]
}
}
Códigos de erro
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.