ScalingRule
This class encapsulates and extends the ROS resource type DATASOURCE::ESS::ScalingRule
.
Initializers
import { datasource } from '@alicloud/ros-cdk-ess'
new datasource.ScalingRule(scope: Construct, id: string, props: ScalingRuleProps, enableResourcePropertyConstraint?: boolean)
Name | Type | Description |
---|---|---|
scope |
@alicloud/ros-cdk-core.Construct |
No description. |
id |
string |
No description. |
props |
ScalingRuleProps |
No description. |
enableResourcePropertyConstraint |
boolean |
No description. |
scope
Required
- Type: @alicloud/ros-cdk-core.Construct
id
Required
- Type: string
props
Required
- Type: ScalingRuleProps
enableResourcePropertyConstraint
Optional
- Type: boolean
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
public toString(): string
Returns a string representation of this construct.
synthesize
public synthesize(session: ISynthesisSession): void
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: @alicloud/ros-cdk-core.ISynthesisSession
The synthesis session.
addCondition
public addCondition(condition: RosCondition): void
- Type: @alicloud/ros-cdk-core.RosCondition
addCount
public addCount(count: number | IResolvable): void
- Type: number | @alicloud/ros-cdk-core.IResolvable
addDependency
public addDependency(resource: Resource): void
- Type: @alicloud/ros-cdk-core.Resource
addResourceDesc
public addResourceDesc(desc: string): void
- Type: string
applyRemovalPolicy
public applyRemovalPolicy(policy: RemovalPolicy): void
- Type: @alicloud/ros-cdk-core.RemovalPolicy
getAtt
public getAtt(name: string): IResolvable
- Type: string
setMetadata
public setMetadata(key: string, value: any): void
- Type: string
- Type: any
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import { datasource } from '@alicloud/ros-cdk-ess'
datasource.ScalingRule.isConstruct(x: any)
Return whether the given object is a Construct.
- Type: any
Properties
Name | Type | Description |
---|---|---|
node |
@alicloud/ros-cdk-core.ConstructNode |
The construct tree node associated with this construct. |
ref |
string |
No description. |
stack |
@alicloud/ros-cdk-core.Stack |
The stack in which this resource is defined. |
resource |
@alicloud/ros-cdk-core.RosResource |
No description. |
attrAdjustmentType |
@alicloud/ros-cdk-core.IResolvable |
Attribute AdjustmentType: The adjustment method of the scaling rule. |
attrAdjustmentValue |
@alicloud/ros-cdk-core.IResolvable |
Attribute AdjustmentValue: The number of instances that must be scaled based on the scaling rule. |
attrAlarms |
@alicloud/ros-cdk-core.IResolvable |
Attribute Alarms: The event-triggered tasks that are associated with the scaling rule. |
attrCooldown |
@alicloud/ros-cdk-core.IResolvable |
Attribute Cooldown: The cooldown period of the scaling rule. |
attrDisableScaleIn |
@alicloud/ros-cdk-core.IResolvable |
Attribute DisableScaleIn: Indicates whether scale-in is disabled. |
attrEstimatedInstanceWarmup |
@alicloud/ros-cdk-core.IResolvable |
Attribute EstimatedInstanceWarmup: The warm-up period of instances. |
attrInitialMaxSize |
@alicloud/ros-cdk-core.IResolvable |
Attribute InitialMaxSize: The maximum number of ECS instances that can be contained in the scaling group. |
attrMaxSize |
@alicloud/ros-cdk-core.IResolvable |
Attribute MaxSize: The maximum number of ECS instances that can be contained in the scaling group. |
attrMetricName |
@alicloud/ros-cdk-core.IResolvable |
Attribute MetricName: The name of the metric of the event-triggered task that is associated with the scaling rule. |
attrMinAdjustmentMagnitude |
@alicloud/ros-cdk-core.IResolvable |
Attribute MinAdjustmentMagnitude: The minimum number of instances that must be scaled. |
attrMinSize |
@alicloud/ros-cdk-core.IResolvable |
Attribute MinSize: The minimum number of ECS instances that must be contained in the scaling group. |
attrPredictiveScalingMode |
@alicloud/ros-cdk-core.IResolvable |
Attribute PredictiveScalingMode: The mode of the predictive scaling rule. |
attrPredictiveTaskBufferTime |
@alicloud/ros-cdk-core.IResolvable |
Attribute PredictiveTaskBufferTime: The amount of buffer time before prediction tasks are executed. |
attrPredictiveValueBehavior |
@alicloud/ros-cdk-core.IResolvable |
Attribute PredictiveValueBehavior: The action on the predicted maximum value. |
attrPredictiveValueBuffer |
@alicloud/ros-cdk-core.IResolvable |
Attribute PredictiveValueBuffer: The ratio based on which the predicted value is increased when PredictiveValueBehavior is set to PredictiveValueOverrideMaxWithBuffer. |
attrScaleInEvaluationCount |
@alicloud/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 |
@alicloud/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 |
@alicloud/ros-cdk-core.IResolvable |
Attribute ScalingGroupId: The ID of the scaling group. |
attrScalingRuleAri |
@alicloud/ros-cdk-core.IResolvable |
Attribute ScalingRuleAri: The unique identifier of the scaling rule. |
attrScalingRuleId |
@alicloud/ros-cdk-core.IResolvable |
Attribute ScalingRuleId: The ID of the scaling rule. |
attrScalingRuleName |
@alicloud/ros-cdk-core.IResolvable |
Attribute ScalingRuleName: The name of the scaling rule. |
attrScalingRuleType |
@alicloud/ros-cdk-core.IResolvable |
Attribute ScalingRuleType: The type of the scaling rule. |
attrStepAdjustments |
@alicloud/ros-cdk-core.IResolvable |
Attribute StepAdjustments: The step adjustments of the step scaling rule. |
attrTargetValue |
@alicloud/ros-cdk-core.IResolvable |
Attribute TargetValue: The target value of the metric. |
node
Required
public readonly node: ConstructNode;
- Type: @alicloud/ros-cdk-core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public readonly ref: string;
- Type: string
stack
Required
public readonly stack: Stack;
- Type: @alicloud/ros-cdk-core.Stack
The stack in which this resource is defined.
resource
Optional
public readonly resource: RosResource;
- Type: @alicloud/ros-cdk-core.RosResource
attrAdjustmentType
Required
public readonly attrAdjustmentType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute AdjustmentType: The adjustment method of the scaling rule.
attrAdjustmentValue
Required
public readonly attrAdjustmentValue: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute AdjustmentValue: The number of instances that must be scaled based on the scaling rule.
attrAlarms
Required
public readonly attrAlarms: IResolvable;
- Type: @alicloud/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 readonly attrCooldown: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute Cooldown: The cooldown period of the scaling rule.
attrDisableScaleIn
Required
public readonly attrDisableScaleIn: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute DisableScaleIn: Indicates whether scale-in is disabled.
attrEstimatedInstanceWarmup
Required
public readonly attrEstimatedInstanceWarmup: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute EstimatedInstanceWarmup: The warm-up period of instances.
attrInitialMaxSize
Required
public readonly attrInitialMaxSize: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute InitialMaxSize: The maximum number of ECS instances that can be contained in the scaling group.
attrMaxSize
Required
public readonly attrMaxSize: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute MaxSize: The maximum number of ECS instances that can be contained in the scaling group.
attrMetricName
Required
public readonly attrMetricName: IResolvable;
- Type: @alicloud/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 readonly attrMinAdjustmentMagnitude: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute MinAdjustmentMagnitude: The minimum number of instances that must be scaled.
attrMinSize
Required
public readonly attrMinSize: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute MinSize: The minimum number of ECS instances that must be contained in the scaling group.
attrPredictiveScalingMode
Required
public readonly attrPredictiveScalingMode: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PredictiveScalingMode: The mode of the predictive scaling rule.
attrPredictiveTaskBufferTime
Required
public readonly attrPredictiveTaskBufferTime: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PredictiveTaskBufferTime: The amount of buffer time before prediction tasks are executed.
attrPredictiveValueBehavior
Required
public readonly attrPredictiveValueBehavior: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute PredictiveValueBehavior: The action on the predicted maximum value.
attrPredictiveValueBuffer
Required
public readonly attrPredictiveValueBuffer: IResolvable;
- Type: @alicloud/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 readonly attrScaleInEvaluationCount: IResolvable;
- Type: @alicloud/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 readonly attrScaleOutEvaluationCount: IResolvable;
- Type: @alicloud/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 readonly attrScalingGroupId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ScalingGroupId: The ID of the scaling group.
attrScalingRuleAri
Required
public readonly attrScalingRuleAri: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ScalingRuleAri: The unique identifier of the scaling rule.
attrScalingRuleId
Required
public readonly attrScalingRuleId: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ScalingRuleId: The ID of the scaling rule.
attrScalingRuleName
Required
public readonly attrScalingRuleName: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ScalingRuleName: The name of the scaling rule.
attrScalingRuleType
Required
public readonly attrScalingRuleType: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute ScalingRuleType: The type of the scaling rule.
attrStepAdjustments
Required
public readonly attrStepAdjustments: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute StepAdjustments: The step adjustments of the step scaling rule.
attrTargetValue
Required
public readonly attrTargetValue: IResolvable;
- Type: @alicloud/ros-cdk-core.IResolvable
Attribute TargetValue: The target value of the metric.