Alibaba Cloud v3.81.0 published on Monday, Jun 23, 2025 by Pulumi
alicloud.ess.getScalingRules
Explore with Pulumi AI
This data source provides available scaling rule resources.
NOTE: Available since v1.39.0
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-ex";
const defaultInteger = new random.index.Integer("default", {
min: 10000,
max: 99999,
});
const myName = `${name}-${defaultInteger.result}`;
const _default = alicloud.getZones({
availableDiskCategory: "cloud_efficiency",
availableResourceCreation: "VSwitch",
});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: myName,
cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vpcId: defaultNetwork.id,
cidrBlock: "172.16.0.0/24",
zoneId: _default.then(_default => _default.zones?.[0]?.id),
vswitchName: myName,
});
const defaultScalingGroup = new alicloud.ess.ScalingGroup("default", {
minSize: 1,
maxSize: 1,
scalingGroupName: myName,
removalPolicies: [
"OldestInstance",
"NewestInstance",
],
vswitchIds: [defaultSwitch.id],
});
const defaultScalingRule = new alicloud.ess.ScalingRule("default", {
scalingGroupId: defaultScalingGroup.id,
scalingRuleName: myName,
adjustmentType: "PercentChangeInCapacity",
adjustmentValue: 1,
});
const scalingrulesDs = alicloud.ess.getScalingRulesOutput({
scalingGroupId: defaultScalingGroup.id,
ids: [defaultScalingRule.id],
nameRegex: myName,
});
export const firstScalingRule = scalingrulesDs.apply(scalingrulesDs => scalingrulesDs.rules?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-ex"
default_integer = random.index.Integer("default",
min=10000,
max=99999)
my_name = f"{name}-{default_integer['result']}"
default = alicloud.get_zones(available_disk_category="cloud_efficiency",
available_resource_creation="VSwitch")
default_network = alicloud.vpc.Network("default",
vpc_name=my_name,
cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("default",
vpc_id=default_network.id,
cidr_block="172.16.0.0/24",
zone_id=default.zones[0].id,
vswitch_name=my_name)
default_scaling_group = alicloud.ess.ScalingGroup("default",
min_size=1,
max_size=1,
scaling_group_name=my_name,
removal_policies=[
"OldestInstance",
"NewestInstance",
],
vswitch_ids=[default_switch.id])
default_scaling_rule = alicloud.ess.ScalingRule("default",
scaling_group_id=default_scaling_group.id,
scaling_rule_name=my_name,
adjustment_type="PercentChangeInCapacity",
adjustment_value=1)
scalingrules_ds = alicloud.ess.get_scaling_rules_output(scaling_group_id=default_scaling_group.id,
ids=[default_scaling_rule.id],
name_regex=my_name)
pulumi.export("firstScalingRule", scalingrules_ds.rules[0].id)
package main
import (
"fmt"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ess"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi-random/sdk/v4/go/random"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "terraform-ex"
if param := cfg.Get("name"); param != "" {
name = param
}
defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
Min: 10000,
Max: 99999,
})
if err != nil {
return err
}
myName := fmt.Sprintf("%v-%v", name, defaultInteger.Result)
_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableDiskCategory: pulumi.StringRef("cloud_efficiency"),
AvailableResourceCreation: pulumi.StringRef("VSwitch"),
}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(myName),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.String(_default.Zones[0].Id),
VswitchName: pulumi.String(myName),
})
if err != nil {
return err
}
defaultScalingGroup, err := ess.NewScalingGroup(ctx, "default", &ess.ScalingGroupArgs{
MinSize: pulumi.Int(1),
MaxSize: pulumi.Int(1),
ScalingGroupName: pulumi.String(myName),
RemovalPolicies: pulumi.StringArray{
pulumi.String("OldestInstance"),
pulumi.String("NewestInstance"),
},
VswitchIds: pulumi.StringArray{
defaultSwitch.ID(),
},
})
if err != nil {
return err
}
defaultScalingRule, err := ess.NewScalingRule(ctx, "default", &ess.ScalingRuleArgs{
ScalingGroupId: defaultScalingGroup.ID(),
ScalingRuleName: pulumi.String(myName),
AdjustmentType: pulumi.String("PercentChangeInCapacity"),
AdjustmentValue: pulumi.Int(1),
})
if err != nil {
return err
}
scalingrulesDs := ess.GetScalingRulesOutput(ctx, ess.GetScalingRulesOutputArgs{
ScalingGroupId: defaultScalingGroup.ID(),
Ids: pulumi.StringArray{
defaultScalingRule.ID(),
},
NameRegex: pulumi.String(myName),
}, nil)
ctx.Export("firstScalingRule", scalingrulesDs.ApplyT(func(scalingrulesDs ess.GetScalingRulesResult) (*string, error) {
return &scalingrulesDs.Rules[0].Id, nil
}).(pulumi.StringPtrOutput))
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-ex";
var defaultInteger = new Random.Index.Integer("default", new()
{
Min = 10000,
Max = 99999,
});
var myName = $"{name}-{defaultInteger.Result}";
var @default = AliCloud.GetZones.Invoke(new()
{
AvailableDiskCategory = "cloud_efficiency",
AvailableResourceCreation = "VSwitch",
});
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = myName,
CidrBlock = "172.16.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/24",
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
VswitchName = myName,
});
var defaultScalingGroup = new AliCloud.Ess.ScalingGroup("default", new()
{
MinSize = 1,
MaxSize = 1,
ScalingGroupName = myName,
RemovalPolicies = new[]
{
"OldestInstance",
"NewestInstance",
},
VswitchIds = new[]
{
defaultSwitch.Id,
},
});
var defaultScalingRule = new AliCloud.Ess.ScalingRule("default", new()
{
ScalingGroupId = defaultScalingGroup.Id,
ScalingRuleName = myName,
AdjustmentType = "PercentChangeInCapacity",
AdjustmentValue = 1,
});
var scalingrulesDs = AliCloud.Ess.GetScalingRules.Invoke(new()
{
ScalingGroupId = defaultScalingGroup.Id,
Ids = new[]
{
defaultScalingRule.Id,
},
NameRegex = myName,
});
return new Dictionary<string, object?>
{
["firstScalingRule"] = scalingrulesDs.Apply(getScalingRulesResult => getScalingRulesResult.Rules[0]?.Id),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.integerArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ess.ScalingGroup;
import com.pulumi.alicloud.ess.ScalingGroupArgs;
import com.pulumi.alicloud.ess.ScalingRule;
import com.pulumi.alicloud.ess.ScalingRuleArgs;
import com.pulumi.alicloud.ess.EssFunctions;
import com.pulumi.alicloud.ess.inputs.GetScalingRulesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-ex");
var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
.min(10000)
.max(99999)
.build());
final var myName = String.format("%s-%s", name,defaultInteger.result());
final var default = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableDiskCategory("cloud_efficiency")
.availableResourceCreation("VSwitch")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(myName)
.cidrBlock("172.16.0.0/16")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock("172.16.0.0/24")
.zoneId(default_.zones()[0].id())
.vswitchName(myName)
.build());
var defaultScalingGroup = new ScalingGroup("defaultScalingGroup", ScalingGroupArgs.builder()
.minSize(1)
.maxSize(1)
.scalingGroupName(myName)
.removalPolicies(
"OldestInstance",
"NewestInstance")
.vswitchIds(defaultSwitch.id())
.build());
var defaultScalingRule = new ScalingRule("defaultScalingRule", ScalingRuleArgs.builder()
.scalingGroupId(defaultScalingGroup.id())
.scalingRuleName(myName)
.adjustmentType("PercentChangeInCapacity")
.adjustmentValue(1)
.build());
final var scalingrulesDs = EssFunctions.getScalingRules(GetScalingRulesArgs.builder()
.scalingGroupId(defaultScalingGroup.id())
.ids(defaultScalingRule.id())
.nameRegex(myName)
.build());
ctx.export("firstScalingRule", scalingrulesDs.applyValue(_scalingrulesDs -> _scalingrulesDs.rules()[0].id()));
}
}
configuration:
name:
type: string
default: terraform-ex
resources:
defaultInteger:
type: random:integer
name: default
properties:
min: 10000
max: 99999
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: ${myName}
cidrBlock: 172.16.0.0/16
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vpcId: ${defaultNetwork.id}
cidrBlock: 172.16.0.0/24
zoneId: ${default.zones[0].id}
vswitchName: ${myName}
defaultScalingGroup:
type: alicloud:ess:ScalingGroup
name: default
properties:
minSize: 1
maxSize: 1
scalingGroupName: ${myName}
removalPolicies:
- OldestInstance
- NewestInstance
vswitchIds:
- ${defaultSwitch.id}
defaultScalingRule:
type: alicloud:ess:ScalingRule
name: default
properties:
scalingGroupId: ${defaultScalingGroup.id}
scalingRuleName: ${myName}
adjustmentType: PercentChangeInCapacity
adjustmentValue: 1
variables:
myName: ${name}-${defaultInteger.result}
default:
fn::invoke:
function: alicloud:getZones
arguments:
availableDiskCategory: cloud_efficiency
availableResourceCreation: VSwitch
scalingrulesDs:
fn::invoke:
function: alicloud:ess:getScalingRules
arguments:
scalingGroupId: ${defaultScalingGroup.id}
ids:
- ${defaultScalingRule.id}
nameRegex: ${myName}
outputs:
firstScalingRule: ${scalingrulesDs.rules[0].id}
Using getScalingRules
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getScalingRules(args: GetScalingRulesArgs, opts?: InvokeOptions): Promise<GetScalingRulesResult>
function getScalingRulesOutput(args: GetScalingRulesOutputArgs, opts?: InvokeOptions): Output<GetScalingRulesResult>
def get_scaling_rules(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
scaling_group_id: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetScalingRulesResult
def get_scaling_rules_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
scaling_group_id: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetScalingRulesResult]
func GetScalingRules(ctx *Context, args *GetScalingRulesArgs, opts ...InvokeOption) (*GetScalingRulesResult, error)
func GetScalingRulesOutput(ctx *Context, args *GetScalingRulesOutputArgs, opts ...InvokeOption) GetScalingRulesResultOutput
> Note: This function is named GetScalingRules
in the Go SDK.
public static class GetScalingRules
{
public static Task<GetScalingRulesResult> InvokeAsync(GetScalingRulesArgs args, InvokeOptions? opts = null)
public static Output<GetScalingRulesResult> Invoke(GetScalingRulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetScalingRulesResult> getScalingRules(GetScalingRulesArgs args, InvokeOptions options)
public static Output<GetScalingRulesResult> getScalingRules(GetScalingRulesArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:ess/getScalingRules:getScalingRules
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of scaling rule IDs.
- Name
Regex string - A regex string to filter resulting scaling rules by name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Scaling
Group stringId - Scaling group id the scaling rules belong to.
- Type string
- Type of scaling rule.
- Ids []string
- A list of scaling rule IDs.
- Name
Regex string - A regex string to filter resulting scaling rules by name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Scaling
Group stringId - Scaling group id the scaling rules belong to.
- Type string
- Type of scaling rule.
- ids List<String>
- A list of scaling rule IDs.
- name
Regex String - A regex string to filter resulting scaling rules by name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - scaling
Group StringId - Scaling group id the scaling rules belong to.
- type String
- Type of scaling rule.
- ids string[]
- A list of scaling rule IDs.
- name
Regex string - A regex string to filter resulting scaling rules by name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - scaling
Group stringId - Scaling group id the scaling rules belong to.
- type string
- Type of scaling rule.
- ids Sequence[str]
- A list of scaling rule IDs.
- name_
regex str - A regex string to filter resulting scaling rules by name.
- output_
file str - File name where to save data source results (after running
pulumi preview
). - scaling_
group_ strid - Scaling group id the scaling rules belong to.
- type str
- Type of scaling rule.
- ids List<String>
- A list of scaling rule IDs.
- name
Regex String - A regex string to filter resulting scaling rules by name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - scaling
Group StringId - Scaling group id the scaling rules belong to.
- type String
- Type of scaling rule.
getScalingRules Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of scaling rule ids.
- Names List<string>
- A list of scaling rule names.
- Rules
List<Pulumi.
Ali Cloud. Ess. Outputs. Get Scaling Rules Rule> - A list of scaling rules. Each element contains the following attributes:
- Name
Regex string - Output
File string - Scaling
Group stringId - ID of the scaling group.
- Type string
- Type of the scaling rule.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of scaling rule ids.
- Names []string
- A list of scaling rule names.
- Rules
[]Get
Scaling Rules Rule - A list of scaling rules. Each element contains the following attributes:
- Name
Regex string - Output
File string - Scaling
Group stringId - ID of the scaling group.
- Type string
- Type of the scaling rule.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of scaling rule ids.
- names List<String>
- A list of scaling rule names.
- rules
List<Get
Scaling Rules Rule> - A list of scaling rules. Each element contains the following attributes:
- name
Regex String - output
File String - scaling
Group StringId - ID of the scaling group.
- type String
- Type of the scaling rule.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of scaling rule ids.
- names string[]
- A list of scaling rule names.
- rules
Get
Scaling Rules Rule[] - A list of scaling rules. Each element contains the following attributes:
- name
Regex string - output
File string - scaling
Group stringId - ID of the scaling group.
- type string
- Type of the scaling rule.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of scaling rule ids.
- names Sequence[str]
- A list of scaling rule names.
- rules
Sequence[Get
Scaling Rules Rule] - A list of scaling rules. Each element contains the following attributes:
- name_
regex str - output_
file str - scaling_
group_ strid - ID of the scaling group.
- type str
- Type of the scaling rule.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of scaling rule ids.
- names List<String>
- A list of scaling rule names.
- rules List<Property Map>
- A list of scaling rules. Each element contains the following attributes:
- name
Regex String - output
File String - scaling
Group StringId - ID of the scaling group.
- type String
- Type of the scaling rule.
Supporting Types
GetScalingRulesRule
- Adjustment
Type string - Adjustment type of the scaling rule.
- Adjustment
Value int - Adjustment value of the scaling rule.
- Cooldown int
- Cooldown time of the scaling rule.
- Disable
Scale boolIn - (Available since v1.250.0) Indicates whether scale-in is disabled. This parameter is available only if you set ScalingRuleType to TargetTrackingScalingRule. Valid values: true, false.
- Estimated
Instance intWarmup - (Available since v1.250.0) The warm-up period during which a series of preparation measures are taken on new instances. Auto Scaling does not monitor the metric data of instances that are being warmed up.
- Hybrid
Metrics List<Pulumi.Ali Cloud. Ess. Inputs. Get Scaling Rules Rule Hybrid Metric> - (Available since v1.250.0) The Hybrid Cloud Monitoring metrics.
- Hybrid
Monitor stringNamespace - (Available since v1.250.0) The ID of the Hybrid Cloud Monitoring namespace.
- Id string
- (Available since v1.250.0) The reference ID of the metric in the metric expression.
- Initial
Max intSize - (Available since v1.242.0) The maximum number of ECS instances that can be added to the scaling group.
- Metric
Name string - (Available since v1.250.0) The name of the Hybrid Cloud Monitoring metric.
- Metric
Type string - (Available since v1.250.0) The type of the event-triggered task that is associated with the scaling rule.
- Min
Adjustment intMagnitude - Min adjustment magnitude of scaling rule.
- Name string
- Name of the scaling rule.
- Predictive
Scaling stringMode - (Available since v1.242.0) The mode of the predictive scaling rule.
- Predictive
Task intBuffer Time - (Available since v1.242.0) The amount of buffer time before the prediction task is executed. By default, all prediction tasks that are automatically created by a predictive scaling rule are executed on the hour. You can set a buffer time to execute prediction tasks and prepare resources in advance.
- Predictive
Value stringBehavior - (Available since v1.242.0) The action on the predicted maximum value.
- Predictive
Value intBuffer - (Available since v1.242.0) The ratio based on which the predicted value is increased if you set predictive_value_behavior to PredictiveValueOverrideMaxWithBuffer. If the predicted value that is increased by this ratio is greater than the initial maximum capacity, the increased value is used as the maximum value for prediction tasks.
- Scale
In intEvaluation Count - (Available since v1.250.0) After you create a target tracking scaling rule, an event-triggered task is automatically created and associated with the scaling rule. This parameter defines the number of consecutive times the alert condition must be satisfied before the event-triggered task initiates a scale-in operation.
- Scale
Out intEvaluation Count - (Available since v1.250.0) After you create a target tracking scaling rule, an event-triggered task is automatically created and associated with the scaling rule. This parameter defines the number of consecutive times the alert condition must be satisfied before the event-triggered task initiates a scale-out operation.
- Scaling
Group stringId - Scaling group id the scaling rules belong to.
- Scaling
Rule stringAri - Ari of scaling rule.
- Step
Adjustments List<Pulumi.Ali Cloud. Ess. Inputs. Get Scaling Rules Rule Step Adjustment> - (Available since v1.250.0) The step adjustments of the step scaling rule.
- Target
Value double - (Available since v1.242.0) The target value of the metric.
- Type string
- Type of scaling rule.
- Adjustment
Type string - Adjustment type of the scaling rule.
- Adjustment
Value int - Adjustment value of the scaling rule.
- Cooldown int
- Cooldown time of the scaling rule.
- Disable
Scale boolIn - (Available since v1.250.0) Indicates whether scale-in is disabled. This parameter is available only if you set ScalingRuleType to TargetTrackingScalingRule. Valid values: true, false.
- Estimated
Instance intWarmup - (Available since v1.250.0) The warm-up period during which a series of preparation measures are taken on new instances. Auto Scaling does not monitor the metric data of instances that are being warmed up.
- Hybrid
Metrics []GetScaling Rules Rule Hybrid Metric - (Available since v1.250.0) The Hybrid Cloud Monitoring metrics.
- Hybrid
Monitor stringNamespace - (Available since v1.250.0) The ID of the Hybrid Cloud Monitoring namespace.
- Id string
- (Available since v1.250.0) The reference ID of the metric in the metric expression.
- Initial
Max intSize - (Available since v1.242.0) The maximum number of ECS instances that can be added to the scaling group.
- Metric
Name string - (Available since v1.250.0) The name of the Hybrid Cloud Monitoring metric.
- Metric
Type string - (Available since v1.250.0) The type of the event-triggered task that is associated with the scaling rule.
- Min
Adjustment intMagnitude - Min adjustment magnitude of scaling rule.
- Name string
- Name of the scaling rule.
- Predictive
Scaling stringMode - (Available since v1.242.0) The mode of the predictive scaling rule.
- Predictive
Task intBuffer Time - (Available since v1.242.0) The amount of buffer time before the prediction task is executed. By default, all prediction tasks that are automatically created by a predictive scaling rule are executed on the hour. You can set a buffer time to execute prediction tasks and prepare resources in advance.
- Predictive
Value stringBehavior - (Available since v1.242.0) The action on the predicted maximum value.
- Predictive
Value intBuffer - (Available since v1.242.0) The ratio based on which the predicted value is increased if you set predictive_value_behavior to PredictiveValueOverrideMaxWithBuffer. If the predicted value that is increased by this ratio is greater than the initial maximum capacity, the increased value is used as the maximum value for prediction tasks.
- Scale
In intEvaluation Count - (Available since v1.250.0) After you create a target tracking scaling rule, an event-triggered task is automatically created and associated with the scaling rule. This parameter defines the number of consecutive times the alert condition must be satisfied before the event-triggered task initiates a scale-in operation.
- Scale
Out intEvaluation Count - (Available since v1.250.0) After you create a target tracking scaling rule, an event-triggered task is automatically created and associated with the scaling rule. This parameter defines the number of consecutive times the alert condition must be satisfied before the event-triggered task initiates a scale-out operation.
- Scaling
Group stringId - Scaling group id the scaling rules belong to.
- Scaling
Rule stringAri - Ari of scaling rule.
- Step
Adjustments []GetScaling Rules Rule Step Adjustment - (Available since v1.250.0) The step adjustments of the step scaling rule.
- Target
Value float64 - (Available since v1.242.0) The target value of the metric.
- Type string
- Type of scaling rule.
- adjustment
Type String - Adjustment type of the scaling rule.
- adjustment
Value Integer - Adjustment value of the scaling rule.
- cooldown Integer
- Cooldown time of the scaling rule.
- disable
Scale BooleanIn - (Available since v1.250.0) Indicates whether scale-in is disabled. This parameter is available only if you set ScalingRuleType to TargetTrackingScalingRule. Valid values: true, false.
- estimated
Instance IntegerWarmup - (Available since v1.250.0) The warm-up period during which a series of preparation measures are taken on new instances. Auto Scaling does not monitor the metric data of instances that are being warmed up.
- hybrid
Metrics List<GetScaling Rules Rule Hybrid Metric> - (Available since v1.250.0) The Hybrid Cloud Monitoring metrics.
- hybrid
Monitor StringNamespace - (Available since v1.250.0) The ID of the Hybrid Cloud Monitoring namespace.
- id String
- (Available since v1.250.0) The reference ID of the metric in the metric expression.
- initial
Max IntegerSize - (Available since v1.242.0) The maximum number of ECS instances that can be added to the scaling group.
- metric
Name String - (Available since v1.250.0) The name of the Hybrid Cloud Monitoring metric.
- metric
Type String - (Available since v1.250.0) The type of the event-triggered task that is associated with the scaling rule.
- min
Adjustment IntegerMagnitude - Min adjustment magnitude of scaling rule.
- name String
- Name of the scaling rule.
- predictive
Scaling StringMode - (Available since v1.242.0) The mode of the predictive scaling rule.
- predictive
Task IntegerBuffer Time - (Available since v1.242.0) The amount of buffer time before the prediction task is executed. By default, all prediction tasks that are automatically created by a predictive scaling rule are executed on the hour. You can set a buffer time to execute prediction tasks and prepare resources in advance.
- predictive
Value StringBehavior - (Available since v1.242.0) The action on the predicted maximum value.
- predictive
Value IntegerBuffer - (Available since v1.242.0) The ratio based on which the predicted value is increased if you set predictive_value_behavior to PredictiveValueOverrideMaxWithBuffer. If the predicted value that is increased by this ratio is greater than the initial maximum capacity, the increased value is used as the maximum value for prediction tasks.
- scale
In IntegerEvaluation Count - (Available since v1.250.0) After you create a target tracking scaling rule, an event-triggered task is automatically created and associated with the scaling rule. This parameter defines the number of consecutive times the alert condition must be satisfied before the event-triggered task initiates a scale-in operation.
- scale
Out IntegerEvaluation Count - (Available since v1.250.0) After you create a target tracking scaling rule, an event-triggered task is automatically created and associated with the scaling rule. This parameter defines the number of consecutive times the alert condition must be satisfied before the event-triggered task initiates a scale-out operation.
- scaling
Group StringId - Scaling group id the scaling rules belong to.
- scaling
Rule StringAri - Ari of scaling rule.
- step
Adjustments List<GetScaling Rules Rule Step Adjustment> - (Available since v1.250.0) The step adjustments of the step scaling rule.
- target
Value Double - (Available since v1.242.0) The target value of the metric.
- type String
- Type of scaling rule.
- adjustment
Type string - Adjustment type of the scaling rule.
- adjustment
Value number - Adjustment value of the scaling rule.
- cooldown number
- Cooldown time of the scaling rule.
- disable
Scale booleanIn - (Available since v1.250.0) Indicates whether scale-in is disabled. This parameter is available only if you set ScalingRuleType to TargetTrackingScalingRule. Valid values: true, false.
- estimated
Instance numberWarmup - (Available since v1.250.0) The warm-up period during which a series of preparation measures are taken on new instances. Auto Scaling does not monitor the metric data of instances that are being warmed up.
- hybrid
Metrics GetScaling Rules Rule Hybrid Metric[] - (Available since v1.250.0) The Hybrid Cloud Monitoring metrics.
- hybrid
Monitor stringNamespace - (Available since v1.250.0) The ID of the Hybrid Cloud Monitoring namespace.
- id string
- (Available since v1.250.0) The reference ID of the metric in the metric expression.
- initial
Max numberSize - (Available since v1.242.0) The maximum number of ECS instances that can be added to the scaling group.
- metric
Name string - (Available since v1.250.0) The name of the Hybrid Cloud Monitoring metric.
- metric
Type string - (Available since v1.250.0) The type of the event-triggered task that is associated with the scaling rule.
- min
Adjustment numberMagnitude - Min adjustment magnitude of scaling rule.
- name string
- Name of the scaling rule.
- predictive
Scaling stringMode - (Available since v1.242.0) The mode of the predictive scaling rule.
- predictive
Task numberBuffer Time - (Available since v1.242.0) The amount of buffer time before the prediction task is executed. By default, all prediction tasks that are automatically created by a predictive scaling rule are executed on the hour. You can set a buffer time to execute prediction tasks and prepare resources in advance.
- predictive
Value stringBehavior - (Available since v1.242.0) The action on the predicted maximum value.
- predictive
Value numberBuffer - (Available since v1.242.0) The ratio based on which the predicted value is increased if you set predictive_value_behavior to PredictiveValueOverrideMaxWithBuffer. If the predicted value that is increased by this ratio is greater than the initial maximum capacity, the increased value is used as the maximum value for prediction tasks.
- scale
In numberEvaluation Count - (Available since v1.250.0) After you create a target tracking scaling rule, an event-triggered task is automatically created and associated with the scaling rule. This parameter defines the number of consecutive times the alert condition must be satisfied before the event-triggered task initiates a scale-in operation.
- scale
Out numberEvaluation Count - (Available since v1.250.0) After you create a target tracking scaling rule, an event-triggered task is automatically created and associated with the scaling rule. This parameter defines the number of consecutive times the alert condition must be satisfied before the event-triggered task initiates a scale-out operation.
- scaling
Group stringId - Scaling group id the scaling rules belong to.
- scaling
Rule stringAri - Ari of scaling rule.
- step
Adjustments GetScaling Rules Rule Step Adjustment[] - (Available since v1.250.0) The step adjustments of the step scaling rule.
- target
Value number - (Available since v1.242.0) The target value of the metric.
- type string
- Type of scaling rule.
- adjustment_
type str - Adjustment type of the scaling rule.
- adjustment_
value int - Adjustment value of the scaling rule.
- cooldown int
- Cooldown time of the scaling rule.
- disable_
scale_ boolin - (Available since v1.250.0) Indicates whether scale-in is disabled. This parameter is available only if you set ScalingRuleType to TargetTrackingScalingRule. Valid values: true, false.
- estimated_
instance_ intwarmup - (Available since v1.250.0) The warm-up period during which a series of preparation measures are taken on new instances. Auto Scaling does not monitor the metric data of instances that are being warmed up.
- hybrid_
metrics Sequence[GetScaling Rules Rule Hybrid Metric] - (Available since v1.250.0) The Hybrid Cloud Monitoring metrics.
- hybrid_
monitor_ strnamespace - (Available since v1.250.0) The ID of the Hybrid Cloud Monitoring namespace.
- id str
- (Available since v1.250.0) The reference ID of the metric in the metric expression.
- initial_
max_ intsize - (Available since v1.242.0) The maximum number of ECS instances that can be added to the scaling group.
- metric_
name str - (Available since v1.250.0) The name of the Hybrid Cloud Monitoring metric.
- metric_
type str - (Available since v1.250.0) The type of the event-triggered task that is associated with the scaling rule.
- min_
adjustment_ intmagnitude - Min adjustment magnitude of scaling rule.
- name str
- Name of the scaling rule.
- predictive_
scaling_ strmode - (Available since v1.242.0) The mode of the predictive scaling rule.
- predictive_
task_ intbuffer_ time - (Available since v1.242.0) The amount of buffer time before the prediction task is executed. By default, all prediction tasks that are automatically created by a predictive scaling rule are executed on the hour. You can set a buffer time to execute prediction tasks and prepare resources in advance.
- predictive_
value_ strbehavior - (Available since v1.242.0) The action on the predicted maximum value.
- predictive_
value_ intbuffer - (Available since v1.242.0) The ratio based on which the predicted value is increased if you set predictive_value_behavior to PredictiveValueOverrideMaxWithBuffer. If the predicted value that is increased by this ratio is greater than the initial maximum capacity, the increased value is used as the maximum value for prediction tasks.
- scale_
in_ intevaluation_ count - (Available since v1.250.0) After you create a target tracking scaling rule, an event-triggered task is automatically created and associated with the scaling rule. This parameter defines the number of consecutive times the alert condition must be satisfied before the event-triggered task initiates a scale-in operation.
- scale_
out_ intevaluation_ count - (Available since v1.250.0) After you create a target tracking scaling rule, an event-triggered task is automatically created and associated with the scaling rule. This parameter defines the number of consecutive times the alert condition must be satisfied before the event-triggered task initiates a scale-out operation.
- scaling_
group_ strid - Scaling group id the scaling rules belong to.
- scaling_
rule_ strari - Ari of scaling rule.
- step_
adjustments Sequence[GetScaling Rules Rule Step Adjustment] - (Available since v1.250.0) The step adjustments of the step scaling rule.
- target_
value float - (Available since v1.242.0) The target value of the metric.
- type str
- Type of scaling rule.
- adjustment
Type String - Adjustment type of the scaling rule.
- adjustment
Value Number - Adjustment value of the scaling rule.
- cooldown Number
- Cooldown time of the scaling rule.
- disable
Scale BooleanIn - (Available since v1.250.0) Indicates whether scale-in is disabled. This parameter is available only if you set ScalingRuleType to TargetTrackingScalingRule. Valid values: true, false.
- estimated
Instance NumberWarmup - (Available since v1.250.0) The warm-up period during which a series of preparation measures are taken on new instances. Auto Scaling does not monitor the metric data of instances that are being warmed up.
- hybrid
Metrics List<Property Map> - (Available since v1.250.0) The Hybrid Cloud Monitoring metrics.
- hybrid
Monitor StringNamespace - (Available since v1.250.0) The ID of the Hybrid Cloud Monitoring namespace.
- id String
- (Available since v1.250.0) The reference ID of the metric in the metric expression.
- initial
Max NumberSize - (Available since v1.242.0) The maximum number of ECS instances that can be added to the scaling group.
- metric
Name String - (Available since v1.250.0) The name of the Hybrid Cloud Monitoring metric.
- metric
Type String - (Available since v1.250.0) The type of the event-triggered task that is associated with the scaling rule.
- min
Adjustment NumberMagnitude - Min adjustment magnitude of scaling rule.
- name String
- Name of the scaling rule.
- predictive
Scaling StringMode - (Available since v1.242.0) The mode of the predictive scaling rule.
- predictive
Task NumberBuffer Time - (Available since v1.242.0) The amount of buffer time before the prediction task is executed. By default, all prediction tasks that are automatically created by a predictive scaling rule are executed on the hour. You can set a buffer time to execute prediction tasks and prepare resources in advance.
- predictive
Value StringBehavior - (Available since v1.242.0) The action on the predicted maximum value.
- predictive
Value NumberBuffer - (Available since v1.242.0) The ratio based on which the predicted value is increased if you set predictive_value_behavior to PredictiveValueOverrideMaxWithBuffer. If the predicted value that is increased by this ratio is greater than the initial maximum capacity, the increased value is used as the maximum value for prediction tasks.
- scale
In NumberEvaluation Count - (Available since v1.250.0) After you create a target tracking scaling rule, an event-triggered task is automatically created and associated with the scaling rule. This parameter defines the number of consecutive times the alert condition must be satisfied before the event-triggered task initiates a scale-in operation.
- scale
Out NumberEvaluation Count - (Available since v1.250.0) After you create a target tracking scaling rule, an event-triggered task is automatically created and associated with the scaling rule. This parameter defines the number of consecutive times the alert condition must be satisfied before the event-triggered task initiates a scale-out operation.
- scaling
Group StringId - Scaling group id the scaling rules belong to.
- scaling
Rule StringAri - Ari of scaling rule.
- step
Adjustments List<Property Map> - (Available since v1.250.0) The step adjustments of the step scaling rule.
- target
Value Number - (Available since v1.242.0) The target value of the metric.
- type String
- Type of scaling rule.
GetScalingRulesRuleHybridMetric
- Dimensions
List<Pulumi.
Ali Cloud. Ess. Inputs. Get Scaling Rules Rule Hybrid Metric Dimension> - (Available since v1.250.0) The metric dimensions. You can use this parameter to specify the monitored resources.
- Expression string
- (Available since v1.250.0) The metric expression that consists of multiple Hybrid Cloud Monitoring metrics. It calculates a result used to trigger scaling events. The expression is written in Reverse Polish Notation (RPN) format and includes only the following operators: +, -, *, /.
- Id string
- (Available since v1.250.0) The reference ID of the metric in the metric expression.
- Metric
Name string - (Available since v1.250.0) The name of the Hybrid Cloud Monitoring metric.
- Statistic string
- (Available since v1.250.0) The statistical method of the metric data.
- Dimensions
[]Get
Scaling Rules Rule Hybrid Metric Dimension - (Available since v1.250.0) The metric dimensions. You can use this parameter to specify the monitored resources.
- Expression string
- (Available since v1.250.0) The metric expression that consists of multiple Hybrid Cloud Monitoring metrics. It calculates a result used to trigger scaling events. The expression is written in Reverse Polish Notation (RPN) format and includes only the following operators: +, -, *, /.
- Id string
- (Available since v1.250.0) The reference ID of the metric in the metric expression.
- Metric
Name string - (Available since v1.250.0) The name of the Hybrid Cloud Monitoring metric.
- Statistic string
- (Available since v1.250.0) The statistical method of the metric data.
- dimensions
List<Get
Scaling Rules Rule Hybrid Metric Dimension> - (Available since v1.250.0) The metric dimensions. You can use this parameter to specify the monitored resources.
- expression String
- (Available since v1.250.0) The metric expression that consists of multiple Hybrid Cloud Monitoring metrics. It calculates a result used to trigger scaling events. The expression is written in Reverse Polish Notation (RPN) format and includes only the following operators: +, -, *, /.
- id String
- (Available since v1.250.0) The reference ID of the metric in the metric expression.
- metric
Name String - (Available since v1.250.0) The name of the Hybrid Cloud Monitoring metric.
- statistic String
- (Available since v1.250.0) The statistical method of the metric data.
- dimensions
Get
Scaling Rules Rule Hybrid Metric Dimension[] - (Available since v1.250.0) The metric dimensions. You can use this parameter to specify the monitored resources.
- expression string
- (Available since v1.250.0) The metric expression that consists of multiple Hybrid Cloud Monitoring metrics. It calculates a result used to trigger scaling events. The expression is written in Reverse Polish Notation (RPN) format and includes only the following operators: +, -, *, /.
- id string
- (Available since v1.250.0) The reference ID of the metric in the metric expression.
- metric
Name string - (Available since v1.250.0) The name of the Hybrid Cloud Monitoring metric.
- statistic string
- (Available since v1.250.0) The statistical method of the metric data.
- dimensions
Sequence[Get
Scaling Rules Rule Hybrid Metric Dimension] - (Available since v1.250.0) The metric dimensions. You can use this parameter to specify the monitored resources.
- expression str
- (Available since v1.250.0) The metric expression that consists of multiple Hybrid Cloud Monitoring metrics. It calculates a result used to trigger scaling events. The expression is written in Reverse Polish Notation (RPN) format and includes only the following operators: +, -, *, /.
- id str
- (Available since v1.250.0) The reference ID of the metric in the metric expression.
- metric_
name str - (Available since v1.250.0) The name of the Hybrid Cloud Monitoring metric.
- statistic str
- (Available since v1.250.0) The statistical method of the metric data.
- dimensions List<Property Map>
- (Available since v1.250.0) The metric dimensions. You can use this parameter to specify the monitored resources.
- expression String
- (Available since v1.250.0) The metric expression that consists of multiple Hybrid Cloud Monitoring metrics. It calculates a result used to trigger scaling events. The expression is written in Reverse Polish Notation (RPN) format and includes only the following operators: +, -, *, /.
- id String
- (Available since v1.250.0) The reference ID of the metric in the metric expression.
- metric
Name String - (Available since v1.250.0) The name of the Hybrid Cloud Monitoring metric.
- statistic String
- (Available since v1.250.0) The statistical method of the metric data.
GetScalingRulesRuleHybridMetricDimension
- Dimension
Key string - (Available since v1.250.0) The dimension key of the metric.
- Dimension
Value string - (Available since v1.250.0) The dimension value of the metric.
- Dimension
Key string - (Available since v1.250.0) The dimension key of the metric.
- Dimension
Value string - (Available since v1.250.0) The dimension value of the metric.
- dimension
Key String - (Available since v1.250.0) The dimension key of the metric.
- dimension
Value String - (Available since v1.250.0) The dimension value of the metric.
- dimension
Key string - (Available since v1.250.0) The dimension key of the metric.
- dimension
Value string - (Available since v1.250.0) The dimension value of the metric.
- dimension_
key str - (Available since v1.250.0) The dimension key of the metric.
- dimension_
value str - (Available since v1.250.0) The dimension value of the metric.
- dimension
Key String - (Available since v1.250.0) The dimension key of the metric.
- dimension
Value String - (Available since v1.250.0) The dimension value of the metric.
GetScalingRulesRuleStepAdjustment
- Metric
Interval stringLower Bound - (Available since v1.250.0) The lower limit of each step adjustment. Valid values: -9.999999E18 to 9.999999E18.
- Metric
Interval stringUpper Bound - (Available since v1.250.0) The upper limit of each step adjustment. Valid values: -9.999999E18 to 9.999999E18.
- Scaling
Adjustment int - (Available since v1.250.0) The number of instances that are scaled in each step adjustment.
- Metric
Interval stringLower Bound - (Available since v1.250.0) The lower limit of each step adjustment. Valid values: -9.999999E18 to 9.999999E18.
- Metric
Interval stringUpper Bound - (Available since v1.250.0) The upper limit of each step adjustment. Valid values: -9.999999E18 to 9.999999E18.
- Scaling
Adjustment int - (Available since v1.250.0) The number of instances that are scaled in each step adjustment.
- metric
Interval StringLower Bound - (Available since v1.250.0) The lower limit of each step adjustment. Valid values: -9.999999E18 to 9.999999E18.
- metric
Interval StringUpper Bound - (Available since v1.250.0) The upper limit of each step adjustment. Valid values: -9.999999E18 to 9.999999E18.
- scaling
Adjustment Integer - (Available since v1.250.0) The number of instances that are scaled in each step adjustment.
- metric
Interval stringLower Bound - (Available since v1.250.0) The lower limit of each step adjustment. Valid values: -9.999999E18 to 9.999999E18.
- metric
Interval stringUpper Bound - (Available since v1.250.0) The upper limit of each step adjustment. Valid values: -9.999999E18 to 9.999999E18.
- scaling
Adjustment number - (Available since v1.250.0) The number of instances that are scaled in each step adjustment.
- metric_
interval_ strlower_ bound - (Available since v1.250.0) The lower limit of each step adjustment. Valid values: -9.999999E18 to 9.999999E18.
- metric_
interval_ strupper_ bound - (Available since v1.250.0) The upper limit of each step adjustment. Valid values: -9.999999E18 to 9.999999E18.
- scaling_
adjustment int - (Available since v1.250.0) The number of instances that are scaled in each step adjustment.
- metric
Interval StringLower Bound - (Available since v1.250.0) The lower limit of each step adjustment. Valid values: -9.999999E18 to 9.999999E18.
- metric
Interval StringUpper Bound - (Available since v1.250.0) The upper limit of each step adjustment. Valid values: -9.999999E18 to 9.999999E18.
- scaling
Adjustment Number - (Available since v1.250.0) The number of instances that are scaled in each step adjustment.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.