ScalingRule
This class encapsulates and extends the ROS resource type DATASOURCE::ESS::ScalingRule
.
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. |
Scope
Required
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct
Id
Required
- Type: string
Props
Required
- Type: ScalingRuleProps
EnableResourcePropertyConstraint
Optional
- 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. |
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.
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ISynthesisSession
The synthesis session.
AddCondition
private void AddCondition(RosCondition Condition)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosCondition
AddCount
private void AddCount(object Count)
- Type: object
AddDependency
private void AddDependency(Resource Resource)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Resource
AddResourceDesc
private void AddResourceDesc(string Desc)
- Type: string
ApplyRemovalPolicy
private void ApplyRemovalPolicy(RemovalPolicy Policy)
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RemovalPolicy
GetAtt
private IResolvable GetAtt(string Name)
- Type: string
SetMetadata
private void SetMetadata(string Key, object Value)
- Type: string
- 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.
- Type: object
Properties
Name | Type | Description |
---|---|---|
Node |
AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode |
The construct tree node associated with this construct. |
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 |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute AdjustmentType: The adjustment method of the scaling rule. |
AttrAdjustmentValue |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute AdjustmentValue: The number of instances that must be scaled based on the scaling rule. |
AttrAlarms |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute Alarms: The event-triggered tasks that are associated with the scaling rule. |
AttrCooldown |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute Cooldown: The cooldown period of the scaling rule. |
AttrDisableScaleIn |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute DisableScaleIn: Indicates whether scale-in is disabled. |
AttrEstimatedInstanceWarmup |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute EstimatedInstanceWarmup: The warm-up period of instances. |
AttrInitialMaxSize |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute InitialMaxSize: The maximum number of ECS instances that can be contained in the scaling group. |
AttrMaxSize |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute MaxSize: The maximum number of ECS instances that can be contained in the scaling group. |
AttrMetricName |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute MetricName: The name of the metric of the event-triggered task that is associated with the scaling rule. |
AttrMinAdjustmentMagnitude |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute MinAdjustmentMagnitude: The minimum number of instances that must be scaled. |
AttrMinSize |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute MinSize: The minimum number of ECS instances that must be contained in the scaling group. |
AttrPredictiveScalingMode |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute PredictiveScalingMode: The mode of the predictive scaling rule. |
AttrPredictiveTaskBufferTime |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute PredictiveTaskBufferTime: The amount of buffer time before prediction tasks are executed. |
AttrPredictiveValueBehavior |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute PredictiveValueBehavior: The action on the predicted maximum value. |
AttrPredictiveValueBuffer |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute PredictiveValueBuffer: The ratio based on which the predicted value is increased when PredictiveValueBehavior is set to PredictiveValueOverrideMaxWithBuffer. |
AttrScaleInEvaluationCount |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
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 |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
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 |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute ScalingGroupId: The ID of the scaling group. |
AttrScalingRuleAri |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute ScalingRuleAri: The unique identifier of the scaling rule. |
AttrScalingRuleId |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute ScalingRuleId: The ID of the scaling rule. |
AttrScalingRuleName |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute ScalingRuleName: The name of the scaling rule. |
AttrScalingRuleType |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute ScalingRuleType: The type of the scaling rule. |
AttrStepAdjustments |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute StepAdjustments: The step adjustments of the step scaling rule. |
AttrTargetValue |
AlibabaCloud.SDK.ROS.CDK.Core.IResolvable |
Attribute TargetValue: The target value of the metric. |
Node
Required
public ConstructNode Node { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode
The construct tree node associated with this construct.
Ref
Required
public string Ref { get; }
- Type: string
Stack
Required
public Stack Stack { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Stack
The stack in which this resource is defined.
Resource
Optional
public RosResource Resource { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.RosResource
AttrAdjustmentType
Required
public IResolvable AttrAdjustmentType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute AdjustmentType: The adjustment method of the scaling rule.
AttrAdjustmentValue
Required
public IResolvable AttrAdjustmentValue { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute AdjustmentValue: The number of instances that must be scaled based on the scaling rule.
AttrAlarms
Required
public IResolvable AttrAlarms { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
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.
AttrCooldown
Required
public IResolvable AttrCooldown { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Cooldown: The cooldown period of the scaling rule.
AttrDisableScaleIn
Required
public IResolvable AttrDisableScaleIn { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute DisableScaleIn: Indicates whether scale-in is disabled.
AttrEstimatedInstanceWarmup
Required
public IResolvable AttrEstimatedInstanceWarmup { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute EstimatedInstanceWarmup: The warm-up period of instances.
AttrInitialMaxSize
Required
public IResolvable AttrInitialMaxSize { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute InitialMaxSize: The maximum number of ECS instances that can be contained in the scaling group.
AttrMaxSize
Required
public IResolvable AttrMaxSize { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute MaxSize: The maximum number of ECS instances that can be contained in the scaling group.
AttrMetricName
Required
public IResolvable AttrMetricName { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute MetricName: The name of the metric of the event-triggered task that is associated with the scaling rule.
AttrMinAdjustmentMagnitude
Required
public IResolvable AttrMinAdjustmentMagnitude { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute MinAdjustmentMagnitude: The minimum number of instances that must be scaled.
AttrMinSize
Required
public IResolvable AttrMinSize { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute MinSize: The minimum number of ECS instances that must be contained in the scaling group.
AttrPredictiveScalingMode
Required
public IResolvable AttrPredictiveScalingMode { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PredictiveScalingMode: The mode of the predictive scaling rule.
AttrPredictiveTaskBufferTime
Required
public IResolvable AttrPredictiveTaskBufferTime { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PredictiveTaskBufferTime: The amount of buffer time before prediction tasks are executed.
AttrPredictiveValueBehavior
Required
public IResolvable AttrPredictiveValueBehavior { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PredictiveValueBehavior: The action on the predicted maximum value.
AttrPredictiveValueBuffer
Required
public IResolvable AttrPredictiveValueBuffer { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PredictiveValueBuffer: The ratio based on which the predicted value is increased when PredictiveValueBehavior is set to PredictiveValueOverrideMaxWithBuffer.
AttrScaleInEvaluationCount
Required
public IResolvable AttrScaleInEvaluationCount { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
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
Required
public IResolvable AttrScaleOutEvaluationCount { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
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
Required
public IResolvable AttrScalingGroupId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ScalingGroupId: The ID of the scaling group.
AttrScalingRuleAri
Required
public IResolvable AttrScalingRuleAri { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ScalingRuleAri: The unique identifier of the scaling rule.
AttrScalingRuleId
Required
public IResolvable AttrScalingRuleId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ScalingRuleId: The ID of the scaling rule.
AttrScalingRuleName
Required
public IResolvable AttrScalingRuleName { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ScalingRuleName: The name of the scaling rule.
AttrScalingRuleType
Required
public IResolvable AttrScalingRuleType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ScalingRuleType: The type of the scaling rule.
AttrStepAdjustments
Required
public IResolvable AttrStepAdjustments { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute StepAdjustments: The step adjustments of the step scaling rule.
AttrTargetValue
Required
public IResolvable AttrTargetValue { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute TargetValue: The target value of the metric.