ScalingRule
This class encapsulates and extends the ROS resource type DATASOURCE::ESS::ScalingRule
.
Initializers
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkess/datasource"
datasource.NewScalingRule(scope Construct, id *string, props ScalingRuleProps, enableResourcePropertyConstraint *bool) ScalingRule
Name | Type | Description |
---|---|---|
scope |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Construct |
No description. |
id |
*string |
No description. |
props |
ScalingRuleProps |
No description. |
enableResourcePropertyConstraint |
*bool |
No description. |
scope
Required
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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
func ToString() *string
Returns a string representation of this construct.
Synthesize
func Synthesize(session ISynthesisSession)
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: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ISynthesisSession
The synthesis session.
AddCondition
func AddCondition(condition RosCondition)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosCondition
AddCount
func AddCount(count interface{})
- Type: interface{}
AddDependency
func AddDependency(resource Resource)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Resource
AddResourceDesc
func AddResourceDesc(desc *string)
- Type: *string
ApplyRemovalPolicy
func ApplyRemovalPolicy(policy RemovalPolicy)
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RemovalPolicy
GetAtt
func GetAtt(name *string) IResolvable
- Type: *string
SetMetadata
func SetMetadata(key *string, value interface{})
- Type: *string
- Type: interface{}
Static Functions
Name | Description |
---|---|
IsConstruct |
Return whether the given object is a Construct. |
IsConstruct
import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkess/datasource"
datasource.ScalingRule_IsConstruct(x interface{}) *bool
Return whether the given object is a Construct.
- Type: interface{}
Properties
Name | Type | Description |
---|---|---|
Node |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode |
The construct tree node associated with this construct. |
Ref |
*string |
No description. |
Stack |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack |
The stack in which this resource is defined. |
Resource |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource |
No description. |
AttrAdjustmentType |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute AdjustmentType: The adjustment method of the scaling rule. |
AttrAdjustmentValue |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute AdjustmentValue: The number of instances that must be scaled based on the scaling rule. |
AttrAlarms |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Alarms: The event-triggered tasks that are associated with the scaling rule. |
AttrCooldown |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute Cooldown: The cooldown period of the scaling rule. |
AttrDisableScaleIn |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute DisableScaleIn: Indicates whether scale-in is disabled. |
AttrEstimatedInstanceWarmup |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute EstimatedInstanceWarmup: The warm-up period of instances. |
AttrInitialMaxSize |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute InitialMaxSize: The maximum number of ECS instances that can be contained in the scaling group. |
AttrMaxSize |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute MaxSize: The maximum number of ECS instances that can be contained in the scaling group. |
AttrMetricName |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute MetricName: The name of the metric of the event-triggered task that is associated with the scaling rule. |
AttrMinAdjustmentMagnitude |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute MinAdjustmentMagnitude: The minimum number of instances that must be scaled. |
AttrMinSize |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute MinSize: The minimum number of ECS instances that must be contained in the scaling group. |
AttrPredictiveScalingMode |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute PredictiveScalingMode: The mode of the predictive scaling rule. |
AttrPredictiveTaskBufferTime |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute PredictiveTaskBufferTime: The amount of buffer time before prediction tasks are executed. |
AttrPredictiveValueBehavior |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute PredictiveValueBehavior: The action on the predicted maximum value. |
AttrPredictiveValueBuffer |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute PredictiveValueBuffer: The ratio based on which the predicted value is increased when PredictiveValueBehavior is set to PredictiveValueOverrideMaxWithBuffer. |
AttrScaleInEvaluationCount |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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 |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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 |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ScalingGroupId: The ID of the scaling group. |
AttrScalingRuleAri |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ScalingRuleAri: The unique identifier of the scaling rule. |
AttrScalingRuleId |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ScalingRuleId: The ID of the scaling rule. |
AttrScalingRuleName |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ScalingRuleName: The name of the scaling rule. |
AttrScalingRuleType |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute ScalingRuleType: The type of the scaling rule. |
AttrStepAdjustments |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute StepAdjustments: The step adjustments of the step scaling rule. |
AttrTargetValue |
github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable |
Attribute TargetValue: The target value of the metric. |
Node
Required
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node associated with this construct.
Ref
Required
func Ref() *string
- Type: *string
Stack
Required
func Stack() Stack
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack
The stack in which this resource is defined.
Resource
Optional
func Resource() RosResource
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource
AttrAdjustmentType
Required
func AttrAdjustmentType() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute AdjustmentType: The adjustment method of the scaling rule.
AttrAdjustmentValue
Required
func AttrAdjustmentValue() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute AdjustmentValue: The number of instances that must be scaled based on the scaling rule.
AttrAlarms
Required
func AttrAlarms() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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
func AttrCooldown() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Cooldown: The cooldown period of the scaling rule.
AttrDisableScaleIn
Required
func AttrDisableScaleIn() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute DisableScaleIn: Indicates whether scale-in is disabled.
AttrEstimatedInstanceWarmup
Required
func AttrEstimatedInstanceWarmup() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute EstimatedInstanceWarmup: The warm-up period of instances.
AttrInitialMaxSize
Required
func AttrInitialMaxSize() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute InitialMaxSize: The maximum number of ECS instances that can be contained in the scaling group.
AttrMaxSize
Required
func AttrMaxSize() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute MaxSize: The maximum number of ECS instances that can be contained in the scaling group.
AttrMetricName
Required
func AttrMetricName() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute MetricName: The name of the metric of the event-triggered task that is associated with the scaling rule.
AttrMinAdjustmentMagnitude
Required
func AttrMinAdjustmentMagnitude() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute MinAdjustmentMagnitude: The minimum number of instances that must be scaled.
AttrMinSize
Required
func AttrMinSize() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute MinSize: The minimum number of ECS instances that must be contained in the scaling group.
AttrPredictiveScalingMode
Required
func AttrPredictiveScalingMode() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute PredictiveScalingMode: The mode of the predictive scaling rule.
AttrPredictiveTaskBufferTime
Required
func AttrPredictiveTaskBufferTime() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute PredictiveTaskBufferTime: The amount of buffer time before prediction tasks are executed.
AttrPredictiveValueBehavior
Required
func AttrPredictiveValueBehavior() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute PredictiveValueBehavior: The action on the predicted maximum value.
AttrPredictiveValueBuffer
Required
func AttrPredictiveValueBuffer() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute PredictiveValueBuffer: The ratio based on which the predicted value is increased when PredictiveValueBehavior is set to PredictiveValueOverrideMaxWithBuffer.
AttrScaleInEvaluationCount
Required
func AttrScaleInEvaluationCount() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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
func AttrScaleOutEvaluationCount() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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
func AttrScalingGroupId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ScalingGroupId: The ID of the scaling group.
AttrScalingRuleAri
Required
func AttrScalingRuleAri() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ScalingRuleAri: The unique identifier of the scaling rule.
AttrScalingRuleId
Required
func AttrScalingRuleId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ScalingRuleId: The ID of the scaling rule.
AttrScalingRuleName
Required
func AttrScalingRuleName() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ScalingRuleName: The name of the scaling rule.
AttrScalingRuleType
Required
func AttrScalingRuleType() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ScalingRuleType: The type of the scaling rule.
AttrStepAdjustments
Required
func AttrStepAdjustments() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute StepAdjustments: The step adjustments of the step scaling rule.
AttrTargetValue
Required
func AttrTargetValue() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute TargetValue: The target value of the metric.