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. |
ScopeRequired
- Type: AlibabaCloud.SDK.ROS.CDK.Core.Construct
IdRequired
- Type: string
PropsRequired
- Type: ScalingRuleProps
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. |
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. |
NodeRequired
public ConstructNode Node { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.ConstructNode
The construct tree node associated with this construct.
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 IResolvable AttrAdjustmentType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute AdjustmentType: The adjustment method of the scaling rule.
AttrAdjustmentValueRequired
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.
AttrAlarmsRequired
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.
AttrCooldownRequired
public IResolvable AttrCooldown { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute Cooldown: The cooldown period of the scaling rule.
AttrDisableScaleInRequired
public IResolvable AttrDisableScaleIn { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute DisableScaleIn: Indicates whether scale-in is disabled.
AttrEstimatedInstanceWarmupRequired
public IResolvable AttrEstimatedInstanceWarmup { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute EstimatedInstanceWarmup: The warm-up period of instances.
AttrInitialMaxSizeRequired
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.
AttrMaxSizeRequired
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.
AttrMetricNameRequired
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.
AttrMinAdjustmentMagnitudeRequired
public IResolvable AttrMinAdjustmentMagnitude { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute MinAdjustmentMagnitude: The minimum number of instances that must be scaled.
AttrMinSizeRequired
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.
AttrPredictiveScalingModeRequired
public IResolvable AttrPredictiveScalingMode { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PredictiveScalingMode: The mode of the predictive scaling rule.
AttrPredictiveTaskBufferTimeRequired
public IResolvable AttrPredictiveTaskBufferTime { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PredictiveTaskBufferTime: The amount of buffer time before prediction tasks are executed.
AttrPredictiveValueBehaviorRequired
public IResolvable AttrPredictiveValueBehavior { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute PredictiveValueBehavior: The action on the predicted maximum value.
AttrPredictiveValueBufferRequired
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.
AttrScaleInEvaluationCountRequired
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.
AttrScaleOutEvaluationCountRequired
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.
AttrScalingGroupIdRequired
public IResolvable AttrScalingGroupId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ScalingGroupId: The ID of the scaling group.
AttrScalingRuleAriRequired
public IResolvable AttrScalingRuleAri { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ScalingRuleAri: The unique identifier of the scaling rule.
AttrScalingRuleIdRequired
public IResolvable AttrScalingRuleId { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ScalingRuleId: The ID of the scaling rule.
AttrScalingRuleNameRequired
public IResolvable AttrScalingRuleName { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ScalingRuleName: The name of the scaling rule.
AttrScalingRuleTypeRequired
public IResolvable AttrScalingRuleType { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute ScalingRuleType: The type of the scaling rule.
AttrStepAdjustmentsRequired
public IResolvable AttrStepAdjustments { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute StepAdjustments: The step adjustments of the step scaling rule.
AttrTargetValueRequired
public IResolvable AttrTargetValue { get; }
- Type: AlibabaCloud.SDK.ROS.CDK.Core.IResolvable
Attribute TargetValue: The target value of the metric.