Show / Hide Table of Contents

Class ScalingRule

Inheritance
System.Object
Resource
CustomResource
ScalingRule
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.AliCloud.Ess
Assembly: Pulumi.AliCloud.dll
Syntax
public class ScalingRule : CustomResource

Constructors

View Source

ScalingRule(String, ScalingRuleArgs, CustomResourceOptions)

Create a ScalingRule resource with the given unique name, arguments, and options.

Declaration
public ScalingRule(string name, ScalingRuleArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ScalingRuleArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

AdjustmentType

Adjustment mode of a scaling rule. Optional values:

  • QuantityChangeInCapacity: It is used to increase or decrease a specified number of ECS instances.
  • PercentChangeInCapacity: It is used to increase or decrease a specified proportion of ECS instances.
  • TotalCapacity: It is used to adjust the quantity of ECS instances in the current scaling group to a specified value.
Declaration
public Output<string> AdjustmentType { get; }
Property Value
Type Description
Output<System.String>
View Source

AdjustmentValue

Adjusted value of a scaling rule. Value range:

  • QuantityChangeInCapacity:(0, 500] U (-500, 0]
  • PercentChangeInCapacity:[0, 10000] U [-100, 0]
  • TotalCapacity:[0, 1000]
Declaration
public Output<int?> AdjustmentValue { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

Ari

Declaration
public Output<string> Ari { get; }
Property Value
Type Description
Output<System.String>
View Source

Cooldown

Cool-down time of a scaling rule. Value range: [0, 86,400], in seconds. The default value is empty,if not set, the return value will be 0, which is the default value of integer.

Declaration
public Output<int?> Cooldown { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

DisableScaleIn

Indicates whether scale in by the target tracking policy is disabled. Default to false.

Declaration
public Output<bool?> DisableScaleIn { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

EstimatedInstanceWarmup

The estimated time, in seconds, until a newly launched instance will contribute CloudMonitor metrics. Default to 300.

Declaration
public Output<int> EstimatedInstanceWarmup { get; }
Property Value
Type Description
Output<System.Int32>
View Source

MetricName

A CloudMonitor metric name.

Declaration
public Output<string> MetricName { get; }
Property Value
Type Description
Output<System.String>
View Source

ScalingGroupId

ID of the scaling group of a scaling rule.

Declaration
public Output<string> ScalingGroupId { get; }
Property Value
Type Description
Output<System.String>
View Source

ScalingRuleName

Name shown for the scaling rule, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain number, underscores _, hypens -, and decimal point .. If this parameter value is not specified, the default value is scaling rule id.

Declaration
public Output<string> ScalingRuleName { get; }
Property Value
Type Description
Output<System.String>
View Source

ScalingRuleType

The scaling rule type, either "SimpleScalingRule", "TargetTrackingScalingRule", "StepScalingRule". Default to "SimpleScalingRule".

Declaration
public Output<string> ScalingRuleType { get; }
Property Value
Type Description
Output<System.String>
View Source

StepAdjustments

Steps for StepScalingRule. See Block stepAdjustment below for details.

Declaration
public Output<ImmutableArray<ScalingRuleStepAdjustment>> StepAdjustments { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableArray<ScalingRuleStepAdjustment>>
View Source

TargetValue

The target value for the metric.

Declaration
public Output<double?> TargetValue { get; }
Property Value
Type Description
Output<System.Nullable<System.Double>>

Methods

View Source

Get(String, Input<String>, ScalingRuleState, CustomResourceOptions)

Get an existing ScalingRule resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ScalingRule Get(string name, Input<string> id, ScalingRuleState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ScalingRuleState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ScalingRule
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.