ScalingRule
- Implements: github.com/alibabacloud-go/ros-cdk/alicloudroscdkess.datasource.IScalingRule
This class encapsulates and extends the ROS resource type DATASOURCE::ESS::ScalingRule, which is used to query the information about a scaling rule.
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. |
FetchCondition | No description. |
FetchDependency | No description. |
FetchResourceDesc | 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
FetchCondition
func FetchCondition() RosCondition
FetchDependency
func FetchDependency() *[]*string
FetchResourceDesc
func FetchResourceDesc() *string
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. |
Env | github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment | The environment this resource belongs to. |
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 | interface{} | Attribute AdjustmentType: The adjustment method of the scaling rule. |
AttrAdjustmentValue | interface{} | Attribute AdjustmentValue: The number of instances that must be scaled based on the scaling rule. |
AttrAlarms | interface{} | Attribute Alarms: The event-triggered tasks that are associated with the scaling rule. |
AttrCooldown | interface{} | Attribute Cooldown: The cooldown period of the scaling rule. |
AttrDisableScaleIn | interface{} | Attribute DisableScaleIn: Indicates whether scale-in is disabled. |
AttrEstimatedInstanceWarmup | interface{} | Attribute EstimatedInstanceWarmup: The warm-up period of instances. |
AttrInitialMaxSize | interface{} | Attribute InitialMaxSize: The maximum number of ECS instances that can be contained in the scaling group. |
AttrMaxSize | interface{} | Attribute MaxSize: The maximum number of ECS instances that can be contained in the scaling group. |
AttrMetricName | interface{} | Attribute MetricName: The name of the metric of the event-triggered task that is associated with the scaling rule. |
AttrMinAdjustmentMagnitude | interface{} | Attribute MinAdjustmentMagnitude: The minimum number of instances that must be scaled. |
AttrMinSize | interface{} | Attribute MinSize: The minimum number of ECS instances that must be contained in the scaling group. |
AttrPredictiveScalingMode | interface{} | Attribute PredictiveScalingMode: The mode of the predictive scaling rule. |
AttrPredictiveTaskBufferTime | interface{} | Attribute PredictiveTaskBufferTime: The amount of buffer time before prediction tasks are executed. |
AttrPredictiveValueBehavior | interface{} | Attribute PredictiveValueBehavior: The action on the predicted maximum value. |
AttrPredictiveValueBuffer | interface{} | Attribute PredictiveValueBuffer: The ratio based on which the predicted value is increased when PredictiveValueBehavior is set to PredictiveValueOverrideMaxWithBuffer. |
AttrScaleInEvaluationCount | interface{} | 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 | interface{} | 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 | interface{} | Attribute ScalingGroupId: The ID of the scaling group. |
AttrScalingRuleAri | interface{} | Attribute ScalingRuleAri: The unique identifier of the scaling rule. |
AttrScalingRuleId | interface{} | Attribute ScalingRuleId: The ID of the scaling rule. |
AttrScalingRuleName | interface{} | Attribute ScalingRuleName: The name of the scaling rule. |
AttrScalingRuleType | interface{} | Attribute ScalingRuleType: The type of the scaling rule. |
AttrStepAdjustments | interface{} | Attribute StepAdjustments: The step adjustments of the step scaling rule. |
AttrTargetValue | interface{} | Attribute TargetValue: The target value of the metric. |
Props | ScalingRuleProps | No description. |
NodeRequired
func Node() ConstructNode
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.ConstructNode
The construct tree node associated with this construct.
EnvRequired
func Env() IResourceEnvironment
- Type: github.com/alibabacloud-go/ros-cdk/alicloudroscdkcore.IResourceEnvironment
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
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() interface{}
- Type: interface{}
Attribute AdjustmentType: The adjustment method of the scaling rule.
AttrAdjustmentValueRequired
func AttrAdjustmentValue() interface{}
- Type: interface{}
Attribute AdjustmentValue: The number of instances that must be scaled based on the scaling rule.
AttrAlarmsRequired
func AttrAlarms() interface{}
- Type: interface{}
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() interface{}
- Type: interface{}
Attribute Cooldown: The cooldown period of the scaling rule.
AttrDisableScaleInRequired
func AttrDisableScaleIn() interface{}
- Type: interface{}
Attribute DisableScaleIn: Indicates whether scale-in is disabled.
AttrEstimatedInstanceWarmupRequired
func AttrEstimatedInstanceWarmup() interface{}
- Type: interface{}
Attribute EstimatedInstanceWarmup: The warm-up period of instances.
AttrInitialMaxSizeRequired
func AttrInitialMaxSize() interface{}
- Type: interface{}
Attribute InitialMaxSize: The maximum number of ECS instances that can be contained in the scaling group.
AttrMaxSizeRequired
func AttrMaxSize() interface{}
- Type: interface{}
Attribute MaxSize: The maximum number of ECS instances that can be contained in the scaling group.
AttrMetricNameRequired
func AttrMetricName() interface{}
- Type: interface{}
Attribute MetricName: The name of the metric of the event-triggered task that is associated with the scaling rule.
AttrMinAdjustmentMagnitudeRequired
func AttrMinAdjustmentMagnitude() interface{}
- Type: interface{}
Attribute MinAdjustmentMagnitude: The minimum number of instances that must be scaled.
AttrMinSizeRequired
func AttrMinSize() interface{}
- Type: interface{}
Attribute MinSize: The minimum number of ECS instances that must be contained in the scaling group.
AttrPredictiveScalingModeRequired
func AttrPredictiveScalingMode() interface{}
- Type: interface{}
Attribute PredictiveScalingMode: The mode of the predictive scaling rule.
AttrPredictiveTaskBufferTimeRequired
func AttrPredictiveTaskBufferTime() interface{}
- Type: interface{}
Attribute PredictiveTaskBufferTime: The amount of buffer time before prediction tasks are executed.
AttrPredictiveValueBehaviorRequired
func AttrPredictiveValueBehavior() interface{}
- Type: interface{}
Attribute PredictiveValueBehavior: The action on the predicted maximum value.
AttrPredictiveValueBufferRequired
func AttrPredictiveValueBuffer() interface{}
- Type: interface{}
Attribute PredictiveValueBuffer: The ratio based on which the predicted value is increased when PredictiveValueBehavior is set to PredictiveValueOverrideMaxWithBuffer.
AttrScaleInEvaluationCountRequired
func AttrScaleInEvaluationCount() interface{}
- Type: interface{}
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() interface{}
- Type: interface{}
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() interface{}
- Type: interface{}
Attribute ScalingGroupId: The ID of the scaling group.
AttrScalingRuleAriRequired
func AttrScalingRuleAri() interface{}
- Type: interface{}
Attribute ScalingRuleAri: The unique identifier of the scaling rule.
AttrScalingRuleIdRequired
func AttrScalingRuleId() interface{}
- Type: interface{}
Attribute ScalingRuleId: The ID of the scaling rule.
AttrScalingRuleNameRequired
func AttrScalingRuleName() interface{}
- Type: interface{}
Attribute ScalingRuleName: The name of the scaling rule.
AttrScalingRuleTypeRequired
func AttrScalingRuleType() interface{}
- Type: interface{}
Attribute ScalingRuleType: The type of the scaling rule.
AttrStepAdjustmentsRequired
func AttrStepAdjustments() interface{}
- Type: interface{}
Attribute StepAdjustments: The step adjustments of the step scaling rule.
AttrTargetValueRequired
func AttrTargetValue() interface{}
- Type: interface{}
Attribute TargetValue: The target value of the metric.
PropsRequired
func Props() ScalingRuleProps
- Type: ScalingRuleProps