Consulta os detalhes de uma regra de dimensionamento.
Sintaxe
{
"Type": "DATASOURCE::ESS::ScalingRule",
"Properties": {
"ScalingRuleId": String,
"RefreshOptions": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
ScalingRuleId |
String |
Sim |
Sim |
ID da regra de dimensionamento. |
Nenhuma. |
|
RefreshOptions |
String |
Não |
Sim |
Política de atualização dos recursos de source durante a atualização da pilha. |
Valores válidos:
|
Valores de retorno
Fn::GetAtt
TargetValue: valor alvo da métrica. O sistema mantém a métrica próxima desse valor ao adicionar ou remover instâncias quando a regra de dimensionamento é do tipo target tracking ou predictive scaling.
StepAdjustments: ajustes em etapas da regra de dimensionamento por etapas.
Cooldown: período de resfriamento da regra de dimensionamento. Retornado apenas para regras de dimensionamento simples. Valores válidos: 0 a 86400. Unidade: segundos.
ScalingGroupId: ID do grupo de dimensionamento.
PredictiveValueBehavior: ação aplicada ao valor máximo previsto.
Alarms: tarefas acionadas por eventos do CloudMonitor associadas à regra de dimensionamento.
ScalingRuleId: ID da regra de dimensionamento.
MinAdjustmentMagnitude: número mínimo de instâncias a ajustar.
DisableScaleIn: indica se o scale-in está desabilitado. Retornado apenas para regras de dimensionamento do tipo target tracking.
MaxSize: número máximo de instâncias que o grupo de dimensionamento pode conter.
AdjustmentType: método de ajuste da regra de dimensionamento.
ScalingRuleAri: identificador exclusivo da regra de dimensionamento.
MetricName: nome da métrica predefinida. Retornado para regras de dimensionamento do tipo target tracking e predictive scaling.
MinSize: número mínimo de instâncias que o grupo de dimensionamento pode conter.
ScalingRuleName: nome da regra de dimensionamento.
AdjustmentValue: quantidade de instâncias a ajustar com base na regra de dimensionamento.
ScaleOutEvaluationCount: número consecutivo de vezes que a condição de alerta deve ser atendida antes que a tarefa acionada por evento, criada automaticamente, inicie uma operação de scale-out. Aplicável a regras de dimensionamento do tipo target tracking.
InitialMaxSize: número máximo de instâncias adicionáveis ao grupo de dimensionamento.
ScalingRuleType: tipo da regra de dimensionamento.
EstimatedInstanceWarmup: período de aquecimento para preparação das novas instâncias.
PredictiveScalingMode: modo da regra de dimensionamento preditivo.
PredictiveValueBuffer: proporção de aumento do valor previsto quando PredictiveValueBehavior está definido como PredictiveValueOverrideMaxWithBuffer. Se o valor previsto ajustado por essa proporção exceder a capacidade máxima inicial, o valor aumentado será utilizado como valor máximo para as tarefas de previsão.
ScaleInEvaluationCount: número consecutivo de vezes que a condição de alerta deve ser atendida antes que a tarefa acionada por evento, criada automaticamente, inicie uma operação de scale-in. Aplicável a regras de dimensionamento do tipo target tracking.
PredictiveTaskBufferTime: tempo de buffer antes da execução das tarefas de previsão. Por padrão, as tarefas de previsão criadas por uma regra de dimensionamento preditivo são executadas a cada hora cheia. Esse intervalo permite a preparação de recursos antes da execução.
Exemplos
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ScalingRuleId:
Type: String
Description:
en: The ID of the scaling rule that you want to query.
Required: true
Resources:
ExtensionDataSource:
Type: DATASOURCE::ESS::ScalingRule
Properties:
ScalingRuleId:
Ref: ScalingRuleId
Outputs:
TargetValue:
Description: The target value of the metric.
Value:
Fn::GetAtt:
- ExtensionDataSource
- TargetValue
StepAdjustments:
Description: The step adjustments of the step scaling rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- StepAdjustments
Cooldown:
Description: 'The cooldown period of the scaling rule. '
Value:
Fn::GetAtt:
- ExtensionDataSource
- Cooldown
ScalingGroupId:
Description: The ID of the scaling group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ScalingGroupId
PredictiveValueBehavior:
Description: 'The action on the predicted maximum value. '
Value:
Fn::GetAtt:
- ExtensionDataSource
- PredictiveValueBehavior
Alarms:
Description: The event-triggered tasks that are associated with the scaling rule. The value of this parameter is returned only if you set ShowAlarmRules to true. Otherwise, null is returned.
Value:
Fn::GetAtt:
- ExtensionDataSource
- Alarms
ScalingRuleId:
Description: The ID of the scaling rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ScalingRuleId
MinAdjustmentMagnitude:
Description: The minimum number of instances that must be scaled.
Value:
Fn::GetAtt:
- ExtensionDataSource
- MinAdjustmentMagnitude
DisableScaleIn:
Description: Indicates whether scale-in is disabled.
Value:
Fn::GetAtt:
- ExtensionDataSource
- DisableScaleIn
MaxSize:
Description: The maximum number of ECS instances that can be contained in the scaling group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- MaxSize
AdjustmentType:
Description: The adjustment method of the scaling rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AdjustmentType
ScalingRuleAri:
Description: The unique identifier of the scaling rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ScalingRuleAri
MetricName:
Description: The name of the metric of the event-triggered task that is associated with the scaling rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- MetricName
MinSize:
Description: The minimum number of ECS instances that must be contained in the scaling group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- MinSize
ScalingRuleName:
Description: The name of the scaling rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ScalingRuleName
AdjustmentValue:
Description: The number of instances that must be scaled based on the scaling rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- AdjustmentValue
ScaleOutEvaluationCount:
Description: The number of consecutive times that the event-triggered task created for scale-out purposes must meet the threshold conditions before an alert is triggered.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ScaleOutEvaluationCount
InitialMaxSize:
Description: The maximum number of ECS instances that can be contained in the scaling group.
Value:
Fn::GetAtt:
- ExtensionDataSource
- InitialMaxSize
ScalingRuleType:
Description: The type of the scaling rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- ScalingRuleType
EstimatedInstanceWarmup:
Description: The warm-up period of instances.
Value:
Fn::GetAtt:
- ExtensionDataSource
- EstimatedInstanceWarmup
PredictiveScalingMode:
Description: The mode of the predictive scaling rule.
Value:
Fn::GetAtt:
- ExtensionDataSource
- PredictiveScalingMode
PredictiveValueBuffer:
Description: 'The ratio based on which the predicted value is increased when PredictiveValueBehavior is set to PredictiveValueOverrideMaxWithBuffer. '
Value:
Fn::GetAtt:
- ExtensionDataSource
- PredictiveValueBuffer
ScaleInEvaluationCount:
Description: 'The number of consecutive times that the event-triggered task for scale-in purposes must meet the threshold conditions before an alert is triggered. '
Value:
Fn::GetAtt:
- ExtensionDataSource
- ScaleInEvaluationCount
PredictiveTaskBufferTime:
Description: 'The amount of buffer time before prediction tasks are executed. '
Value:
Fn::GetAtt:
- ExtensionDataSource
- PredictiveTaskBufferTime
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ScalingRuleId": {
"Type": "String",
"Description": {
"en": "The ID of the scaling rule that you want to query."
},
"Required": true
}
},
"Resources": {
"ExtensionDataSource": {
"Type": "DATASOURCE::ESS::ScalingRule",
"Properties": {
"ScalingRuleId": {
"Ref": "ScalingRuleId"
}
}
}
},
"Outputs": {
"TargetValue": {
"Description": "The target value of the metric.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"TargetValue"
]
}
},
"StepAdjustments": {
"Description": "The step adjustments of the step scaling rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"StepAdjustments"
]
}
},
"Cooldown": {
"Description": "The cooldown period of the scaling rule. ",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Cooldown"
]
}
},
"ScalingGroupId": {
"Description": "The ID of the scaling group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ScalingGroupId"
]
}
},
"PredictiveValueBehavior": {
"Description": "The action on the predicted maximum value. ",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PredictiveValueBehavior"
]
}
},
"Alarms": {
"Description": "The event-triggered tasks that are associated with the scaling rule. The value of this parameter is returned only if you set ShowAlarmRules to true. Otherwise, null is returned.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"Alarms"
]
}
},
"ScalingRuleId": {
"Description": "The ID of the scaling rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ScalingRuleId"
]
}
},
"MinAdjustmentMagnitude": {
"Description": "The minimum number of instances that must be scaled.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MinAdjustmentMagnitude"
]
}
},
"DisableScaleIn": {
"Description": "Indicates whether scale-in is disabled.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"DisableScaleIn"
]
}
},
"MaxSize": {
"Description": "The maximum number of ECS instances that can be contained in the scaling group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MaxSize"
]
}
},
"AdjustmentType": {
"Description": "The adjustment method of the scaling rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AdjustmentType"
]
}
},
"ScalingRuleAri": {
"Description": "The unique identifier of the scaling rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ScalingRuleAri"
]
}
},
"MetricName": {
"Description": "The name of the metric of the event-triggered task that is associated with the scaling rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MetricName"
]
}
},
"MinSize": {
"Description": "The minimum number of ECS instances that must be contained in the scaling group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"MinSize"
]
}
},
"ScalingRuleName": {
"Description": "The name of the scaling rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ScalingRuleName"
]
}
},
"AdjustmentValue": {
"Description": "The number of instances that must be scaled based on the scaling rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"AdjustmentValue"
]
}
},
"ScaleOutEvaluationCount": {
"Description": "The number of consecutive times that the event-triggered task created for scale-out purposes must meet the threshold conditions before an alert is triggered.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ScaleOutEvaluationCount"
]
}
},
"InitialMaxSize": {
"Description": "The maximum number of ECS instances that can be contained in the scaling group.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"InitialMaxSize"
]
}
},
"ScalingRuleType": {
"Description": "The type of the scaling rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ScalingRuleType"
]
}
},
"EstimatedInstanceWarmup": {
"Description": "The warm-up period of instances.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"EstimatedInstanceWarmup"
]
}
},
"PredictiveScalingMode": {
"Description": "The mode of the predictive scaling rule.",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PredictiveScalingMode"
]
}
},
"PredictiveValueBuffer": {
"Description": "The ratio based on which the predicted value is increased when PredictiveValueBehavior is set to PredictiveValueOverrideMaxWithBuffer. ",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PredictiveValueBuffer"
]
}
},
"ScaleInEvaluationCount": {
"Description": "The number of consecutive times that the event-triggered task for scale-in purposes must meet the threshold conditions before an alert is triggered. ",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"ScaleInEvaluationCount"
]
}
},
"PredictiveTaskBufferTime": {
"Description": "The amount of buffer time before prediction tasks are executed. ",
"Value": {
"Fn::GetAtt": [
"ExtensionDataSource",
"PredictiveTaskBufferTime"
]
}
}
}
}