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. |
scopeRequired
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.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
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. |
NodeRequired
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node associated with this construct.
RefRequired
func Ref() *string
- Type: *string
StackRequired
func Stack() Stack
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.Stack
The stack in which this resource is defined.
ResourceOptional
func Resource() RosResource
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.RosResource
AttrAdjustmentTypeRequired
func AttrAdjustmentType() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute AdjustmentType: The adjustment method of the scaling rule.
AttrAdjustmentValueRequired
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.
AttrAlarmsRequired
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.
AttrCooldownRequired
func AttrCooldown() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute Cooldown: The cooldown period of the scaling rule.
AttrDisableScaleInRequired
func AttrDisableScaleIn() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute DisableScaleIn: Indicates whether scale-in is disabled.
AttrEstimatedInstanceWarmupRequired
func AttrEstimatedInstanceWarmup() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute EstimatedInstanceWarmup: The warm-up period of instances.
AttrInitialMaxSizeRequired
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.
AttrMaxSizeRequired
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.
AttrMetricNameRequired
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.
AttrMinAdjustmentMagnitudeRequired
func AttrMinAdjustmentMagnitude() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute MinAdjustmentMagnitude: The minimum number of instances that must be scaled.
AttrMinSizeRequired
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.
AttrPredictiveScalingModeRequired
func AttrPredictiveScalingMode() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute PredictiveScalingMode: The mode of the predictive scaling rule.
AttrPredictiveTaskBufferTimeRequired
func AttrPredictiveTaskBufferTime() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute PredictiveTaskBufferTime: The amount of buffer time before prediction tasks are executed.
AttrPredictiveValueBehaviorRequired
func AttrPredictiveValueBehavior() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute PredictiveValueBehavior: The action on the predicted maximum value.
AttrPredictiveValueBufferRequired
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.
AttrScaleInEvaluationCountRequired
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.
AttrScaleOutEvaluationCountRequired
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.
AttrScalingGroupIdRequired
func AttrScalingGroupId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ScalingGroupId: The ID of the scaling group.
AttrScalingRuleAriRequired
func AttrScalingRuleAri() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ScalingRuleAri: The unique identifier of the scaling rule.
AttrScalingRuleIdRequired
func AttrScalingRuleId() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ScalingRuleId: The ID of the scaling rule.
AttrScalingRuleNameRequired
func AttrScalingRuleName() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ScalingRuleName: The name of the scaling rule.
AttrScalingRuleTypeRequired
func AttrScalingRuleType() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute ScalingRuleType: The type of the scaling rule.
AttrStepAdjustmentsRequired
func AttrStepAdjustments() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute StepAdjustments: The step adjustments of the step scaling rule.
AttrTargetValueRequired
func AttrTargetValue() IResolvable
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResolvable
Attribute TargetValue: The target value of the metric.