Skip to content

ScalingRule

  • Implements: AlibabaCloud.SDK.ROS.CDK.Ess.datasource.IScalingRule

This class encapsulates and extends the ROS resource type DATASOURCE::ESS::ScalingRule, which is used to query the information about a scaling rule.

Initializers

using AlibabaCloud.SDK.ROS.CDK.Ess;
new ScalingRule(Construct Scope, string Id, ScalingRuleProps Props, bool EnableResourcePropertyConstraint = null);
Name Type Description
Scope AlibabaCloud.SDK.ROS.CDK.Core.Construct No description.
Id string No description.
Props ScalingRuleProps No description.
EnableResourcePropertyConstraint bool No description.

ScopeRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct

IdRequired

  • Type: string

PropsRequired


EnableResourcePropertyConstraintOptional

  • Type: bool

Methods

Name Description
ToString Returns a string representation of this construct.
Synthesize Allows this construct to emit artifacts into the cloud assembly during synthesis.
AddCondition No description.
AddCount No description.
AddDependency No description.
AddResourceDesc No description.
ApplyRemovalPolicy No description.
FetchCondition No description.
FetchDependency No description.
FetchResourceDesc No description.
GetAtt No description.
SetMetadata No description.

ToString

private string ToString()

Returns a string representation of this construct.

Synthesize

private void Synthesize(ISynthesisSession Session)

Allows this construct to emit artifacts into the cloud assembly during synthesis.

This method is usually implemented by framework-level constructs such as Stack and Asset as they participate in synthesizing the cloud assembly.

SessionRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession

The synthesis session.


AddCondition

private void AddCondition(RosCondition Condition)

ConditionRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition

AddCount

private void AddCount(object Count)

CountRequired

  • Type: object

AddDependency

private void AddDependency(Resource Resource)

ResourceRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource

AddResourceDesc

private void AddResourceDesc(string Desc)

DescRequired

  • Type: string

ApplyRemovalPolicy

private void ApplyRemovalPolicy(RemovalPolicy Policy)

PolicyRequired

  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy

FetchCondition

private RosCondition FetchCondition()

FetchDependency

private string[] FetchDependency()

FetchResourceDesc

private string FetchResourceDesc()

GetAtt

private IResolvable GetAtt(string Name)

NameRequired

  • Type: string

SetMetadata

private void SetMetadata(string Key, object Value)

KeyRequired

  • Type: string

ValueRequired

  • Type: object

Static Functions

Name Description
IsConstruct Return whether the given object is a Construct.

IsConstruct

using AlibabaCloud.SDK.ROS.CDK.Ess;
ScalingRule.IsConstruct(object X);

Return whether the given object is a Construct.

XRequired

  • Type: object

Properties

Name Type Description
Node AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode The construct tree node associated with this construct.
Env AlibabaCloud.SDK.ROS.CDK.Core.IResourceEnvironment The environment this resource belongs to.
Ref string No description.
Stack AlibabaCloud.SDK.ROS.CDK.Core.Stack The stack in which this resource is defined.
Resource AlibabaCloud.SDK.ROS.CDK.Core.RosResource No description.
AttrAdjustmentType object Attribute AdjustmentType: The adjustment method of the scaling rule.
AttrAdjustmentValue object Attribute AdjustmentValue: The number of instances that must be scaled based on the scaling rule.
AttrAlarms object Attribute Alarms: The event-triggered tasks that are associated with the scaling rule.
AttrCooldown object Attribute Cooldown: The cooldown period of the scaling rule.
AttrDisableScaleIn object Attribute DisableScaleIn: Indicates whether scale-in is disabled.
AttrEstimatedInstanceWarmup object Attribute EstimatedInstanceWarmup: The warm-up period of instances.
AttrInitialMaxSize object Attribute InitialMaxSize: The maximum number of ECS instances that can be contained in the scaling group.
AttrMaxSize object Attribute MaxSize: The maximum number of ECS instances that can be contained in the scaling group.
AttrMetricName object Attribute MetricName: The name of the metric of the event-triggered task that is associated with the scaling rule.
AttrMinAdjustmentMagnitude object Attribute MinAdjustmentMagnitude: The minimum number of instances that must be scaled.
AttrMinSize object Attribute MinSize: The minimum number of ECS instances that must be contained in the scaling group.
AttrPredictiveScalingMode object Attribute PredictiveScalingMode: The mode of the predictive scaling rule.
AttrPredictiveTaskBufferTime object Attribute PredictiveTaskBufferTime: The amount of buffer time before prediction tasks are executed.
AttrPredictiveValueBehavior object Attribute PredictiveValueBehavior: The action on the predicted maximum value.
AttrPredictiveValueBuffer object Attribute PredictiveValueBuffer: The ratio based on which the predicted value is increased when PredictiveValueBehavior is set to PredictiveValueOverrideMaxWithBuffer.
AttrScaleInEvaluationCount object Attribute ScaleInEvaluationCount: The number of consecutive times that the event-triggered task for scale-in purposes must meet the threshold conditions before an alert is triggered.
AttrScaleOutEvaluationCount object Attribute ScaleOutEvaluationCount: 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.
AttrScalingGroupId object Attribute ScalingGroupId: The ID of the scaling group.
AttrScalingRuleAri object Attribute ScalingRuleAri: The unique identifier of the scaling rule.
AttrScalingRuleId object Attribute ScalingRuleId: The ID of the scaling rule.
AttrScalingRuleName object Attribute ScalingRuleName: The name of the scaling rule.
AttrScalingRuleType object Attribute ScalingRuleType: The type of the scaling rule.
AttrStepAdjustments object Attribute StepAdjustments: The step adjustments of the step scaling rule.
AttrTargetValue object Attribute TargetValue: The target value of the metric.
Props ScalingRuleProps No description.

NodeRequired

public ConstructNode Node { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode

The construct tree node associated with this construct.


EnvRequired

public IResourceEnvironment Env { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.IResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.


RefRequired

public string Ref { get; }
  • Type: string

StackRequired

public Stack Stack { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack

The stack in which this resource is defined.


ResourceOptional

public RosResource Resource { get; }
  • Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource

AttrAdjustmentTypeRequired

public object AttrAdjustmentType { get; }
  • Type: object

Attribute AdjustmentType: The adjustment method of the scaling rule.


AttrAdjustmentValueRequired

public object AttrAdjustmentValue { get; }
  • Type: object

Attribute AdjustmentValue: The number of instances that must be scaled based on the scaling rule.


AttrAlarmsRequired

public object AttrAlarms { get; }
  • Type: object

Attribute Alarms: 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.


AttrCooldownRequired

public object AttrCooldown { get; }
  • Type: object

Attribute Cooldown: The cooldown period of the scaling rule.


AttrDisableScaleInRequired

public object AttrDisableScaleIn { get; }
  • Type: object

Attribute DisableScaleIn: Indicates whether scale-in is disabled.


AttrEstimatedInstanceWarmupRequired

public object AttrEstimatedInstanceWarmup { get; }
  • Type: object

Attribute EstimatedInstanceWarmup: The warm-up period of instances.


AttrInitialMaxSizeRequired

public object AttrInitialMaxSize { get; }
  • Type: object

Attribute InitialMaxSize: The maximum number of ECS instances that can be contained in the scaling group.


AttrMaxSizeRequired

public object AttrMaxSize { get; }
  • Type: object

Attribute MaxSize: The maximum number of ECS instances that can be contained in the scaling group.


AttrMetricNameRequired

public object AttrMetricName { get; }
  • Type: object

Attribute MetricName: The name of the metric of the event-triggered task that is associated with the scaling rule.


AttrMinAdjustmentMagnitudeRequired

public object AttrMinAdjustmentMagnitude { get; }
  • Type: object

Attribute MinAdjustmentMagnitude: The minimum number of instances that must be scaled.


AttrMinSizeRequired

public object AttrMinSize { get; }
  • Type: object

Attribute MinSize: The minimum number of ECS instances that must be contained in the scaling group.


AttrPredictiveScalingModeRequired

public object AttrPredictiveScalingMode { get; }
  • Type: object

Attribute PredictiveScalingMode: The mode of the predictive scaling rule.


AttrPredictiveTaskBufferTimeRequired

public object AttrPredictiveTaskBufferTime { get; }
  • Type: object

Attribute PredictiveTaskBufferTime: The amount of buffer time before prediction tasks are executed.


AttrPredictiveValueBehaviorRequired

public object AttrPredictiveValueBehavior { get; }
  • Type: object

Attribute PredictiveValueBehavior: The action on the predicted maximum value.


AttrPredictiveValueBufferRequired

public object AttrPredictiveValueBuffer { get; }
  • Type: object

Attribute PredictiveValueBuffer: The ratio based on which the predicted value is increased when PredictiveValueBehavior is set to PredictiveValueOverrideMaxWithBuffer.


AttrScaleInEvaluationCountRequired

public object AttrScaleInEvaluationCount { get; }
  • Type: object

Attribute ScaleInEvaluationCount: The number of consecutive times that the event-triggered task for scale-in purposes must meet the threshold conditions before an alert is triggered.


AttrScaleOutEvaluationCountRequired

public object AttrScaleOutEvaluationCount { get; }
  • Type: object

Attribute ScaleOutEvaluationCount: 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.


AttrScalingGroupIdRequired

public object AttrScalingGroupId { get; }
  • Type: object

Attribute ScalingGroupId: The ID of the scaling group.


AttrScalingRuleAriRequired

public object AttrScalingRuleAri { get; }
  • Type: object

Attribute ScalingRuleAri: The unique identifier of the scaling rule.


AttrScalingRuleIdRequired

public object AttrScalingRuleId { get; }
  • Type: object

Attribute ScalingRuleId: The ID of the scaling rule.


AttrScalingRuleNameRequired

public object AttrScalingRuleName { get; }
  • Type: object

Attribute ScalingRuleName: The name of the scaling rule.


AttrScalingRuleTypeRequired

public object AttrScalingRuleType { get; }
  • Type: object

Attribute ScalingRuleType: The type of the scaling rule.


AttrStepAdjustmentsRequired

public object AttrStepAdjustments { get; }
  • Type: object

Attribute StepAdjustments: The step adjustments of the step scaling rule.


AttrTargetValueRequired

public object AttrTargetValue { get; }
  • Type: object

Attribute TargetValue: The target value of the metric.


PropsRequired

public ScalingRuleProps Props { get; }