|
|
@@ -76,20 +76,28 @@ func (client *Client) ModifyScalingRuleWithCallback(request *ModifyScalingRuleRe
|
|
|
// ModifyScalingRuleRequest is the request struct for api ModifyScalingRule
|
|
|
type ModifyScalingRuleRequest struct {
|
|
|
*requests.RpcRequest
|
|
|
- ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
|
|
|
- ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"`
|
|
|
- AdjustmentValue requests.Integer `position:"Query" name:"AdjustmentValue"`
|
|
|
- EstimatedInstanceWarmup requests.Integer `position:"Query" name:"EstimatedInstanceWarmup"`
|
|
|
- OwnerAccount string `position:"Query" name:"OwnerAccount"`
|
|
|
- AdjustmentType string `position:"Query" name:"AdjustmentType"`
|
|
|
- DisableScaleIn requests.Boolean `position:"Query" name:"DisableScaleIn"`
|
|
|
- OwnerId requests.Integer `position:"Query" name:"OwnerId"`
|
|
|
- ScalingRuleId string `position:"Query" name:"ScalingRuleId"`
|
|
|
- ScalingRuleName string `position:"Query" name:"ScalingRuleName"`
|
|
|
- Cooldown requests.Integer `position:"Query" name:"Cooldown"`
|
|
|
- MinAdjustmentMagnitude requests.Integer `position:"Query" name:"MinAdjustmentMagnitude"`
|
|
|
- TargetValue requests.Float `position:"Query" name:"TargetValue"`
|
|
|
- MetricName string `position:"Query" name:"MetricName"`
|
|
|
+ ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
|
|
|
+ ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"`
|
|
|
+ AdjustmentValue requests.Integer `position:"Query" name:"AdjustmentValue"`
|
|
|
+ StepAdjustment *[]ModifyScalingRuleStepAdjustment `position:"Query" name:"StepAdjustment" type:"Repeated"`
|
|
|
+ EstimatedInstanceWarmup requests.Integer `position:"Query" name:"EstimatedInstanceWarmup"`
|
|
|
+ OwnerAccount string `position:"Query" name:"OwnerAccount"`
|
|
|
+ AdjustmentType string `position:"Query" name:"AdjustmentType"`
|
|
|
+ DisableScaleIn requests.Boolean `position:"Query" name:"DisableScaleIn"`
|
|
|
+ OwnerId requests.Integer `position:"Query" name:"OwnerId"`
|
|
|
+ ScalingRuleId string `position:"Query" name:"ScalingRuleId"`
|
|
|
+ ScalingRuleName string `position:"Query" name:"ScalingRuleName"`
|
|
|
+ Cooldown requests.Integer `position:"Query" name:"Cooldown"`
|
|
|
+ MinAdjustmentMagnitude requests.Integer `position:"Query" name:"MinAdjustmentMagnitude"`
|
|
|
+ TargetValue requests.Float `position:"Query" name:"TargetValue"`
|
|
|
+ MetricName string `position:"Query" name:"MetricName"`
|
|
|
+}
|
|
|
+
|
|
|
+// ModifyScalingRuleStepAdjustment is a repeated param struct in ModifyScalingRuleRequest
|
|
|
+type ModifyScalingRuleStepAdjustment struct {
|
|
|
+ MetricIntervalLowerBound string `name:"MetricIntervalLowerBound"`
|
|
|
+ MetricIntervalUpperBound string `name:"MetricIntervalUpperBound"`
|
|
|
+ ScalingAdjustment string `name:"ScalingAdjustment"`
|
|
|
}
|
|
|
|
|
|
// ModifyScalingRuleResponse is the response struct for api ModifyScalingRule
|