tencentcloud-sdk-as 3.0.534 → 3.0.536

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d69f21599bdfd3429f3fd9a9902497f74eb1c82
4
- data.tar.gz: 5f798eeb36ebfd9439c3ab8689706015efdb1088
3
+ metadata.gz: 7e13166818fe6bebf83fbf5d2e3f91c0691e656c
4
+ data.tar.gz: 599541f472d5fbdb29ffe4ba116622989dfc32ba
5
5
  SHA512:
6
- metadata.gz: 44ec75d75215367c4e25c5159feb39d05015146312842c16d59b8ec5544b63826c7313d6c08082fb4b038f2b97f1b25eb726424d7fcef37be83b683577b9f806
7
- data.tar.gz: 16f71277c74519f8f2c5a819cc707a445908fad4f2a315f5471e12f02a1f1868d985bb58fe6dcd1db2949a7dba224a1736d62fe98eeda36ebeea071a5d2ea10f
6
+ metadata.gz: 668791277e6b452eb669bd669598c06d3242fbfbc199af84affbb52345314a941d3b10298b9c4444fac58562e0b3d2a2424842eef7880435ae4d47afad167279
7
+ data.tar.gz: c529eda649eb7486f9ce49b3da72b697f1752daa97568a9cba13173861b2e85744261e800de3f9f888d6f5dee5bff0e587c3f49c27072e9f5003acdd3e384345
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.534
1
+ 3.0.536
@@ -894,6 +894,7 @@ module TencentCloud
894
894
 
895
895
  # * 可以根据伸缩策略ID执行伸缩策略。
896
896
  # * 伸缩策略所属伸缩组处于伸缩活动时,会拒绝执行伸缩策略。
897
+ # * 本接口不支持执行目标追踪策略。
897
898
 
898
899
  # @param request: Request instance for ExecuteScalingPolicy.
899
900
  # @type request: :class:`Tencentcloud::as::V20180419::ExecuteScalingPolicyRequest`
@@ -710,7 +710,7 @@ module TencentCloud
710
710
  # @type TerminationPolicies: Array
711
711
  # @param Zones: 可用区列表,基础网络场景下必须指定可用区。多个可用区以填写顺序为优先级,依次进行尝试,直至可以成功创建实例。
712
712
  # @type Zones: Array
713
- # @param RetryPolicy: 重试策略,取值包括 IMMEDIATE_RETRY、 INCREMENTAL_INTERVALS、NO_RETRY,默认取值为 IMMEDIATE_RETRY
713
+ # @param RetryPolicy: 重试策略,取值包括 IMMEDIATE_RETRY、 INCREMENTAL_INTERVALS、NO_RETRY,默认取值为 IMMEDIATE_RETRY。部分成功的伸缩活动判定为一次失败活动。
714
714
  # <br><li> IMMEDIATE_RETRY,立即重试,在较短时间内快速重试,连续失败超过一定次数(5次)后不再重试。
715
715
  # <br><li> INCREMENTAL_INTERVALS,间隔递增重试,随着连续失败次数的增加,重试间隔逐渐增大,重试间隔从秒级到1天不等。
716
716
  # <br><li> NO_RETRY,不进行重试,直到再次收到用户调用或者告警信息后才会重试。
@@ -1192,40 +1192,60 @@ module TencentCloud
1192
1192
  # @type AutoScalingGroupId: String
1193
1193
  # @param ScalingPolicyName: 告警触发策略名称。
1194
1194
  # @type ScalingPolicyName: String
1195
- # @param AdjustmentType: 告警触发后,期望实例数修改方式。取值 :<br><li>CHANGE_IN_CAPACITY:增加或减少若干期望实例数</li><li>EXACT_CAPACITY:调整至指定期望实例数</li> <li>PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数</li>
1195
+ # @param ScalingPolicyType: 告警触发策略类型,默认类型为SIMPLE。取值范围:<br><li>SIMPLE:简单策略</li><li>TARGET_TRACKING:目标追踪策略</li>
1196
+ # @type ScalingPolicyType: String
1197
+ # @param AdjustmentType: 告警触发后,期望实例数修改方式,仅适用于简单策略。取值范围:<br><li>CHANGE_IN_CAPACITY:增加或减少若干期望实例数</li><li>EXACT_CAPACITY:调整至指定期望实例数</li> <li>PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数</li>
1196
1198
  # @type AdjustmentType: String
1197
- # @param AdjustmentValue: 告警触发后,期望实例数的调整值。取值:<br><li>当 AdjustmentType 为 CHANGE_IN_CAPACITY 时,AdjustmentValue 为正数表示告警触发后增加实例,为负数表示告警触发后减少实例 </li> <li> 当 AdjustmentType 为 EXACT_CAPACITY 时,AdjustmentValue 的值即为告警触发后新的期望实例数,需要大于或等于0 </li> <li> 当 AdjustmentType 为 PERCENT_CHANGE_IN_CAPACITY 时,AdjusmentValue 为正数表示告警触发后按百分比增加实例,为负数表示告警触发后按百分比减少实例,单位是:%。
1199
+ # @param AdjustmentValue: 告警触发后,期望实例数的调整值,仅适用于简单策略。<br><li>当 AdjustmentType 为 CHANGE_IN_CAPACITY 时,AdjustmentValue 为正数表示告警触发后增加实例,为负数表示告警触发后减少实例 </li> <li> 当 AdjustmentType 为 EXACT_CAPACITY 时,AdjustmentValue 的值即为告警触发后新的期望实例数,需要大于或等于0 </li> <li> 当 AdjustmentType 为 PERCENT_CHANGE_IN_CAPACITY 时,AdjusmentValue 为正数表示告警触发后按百分比增加实例,为负数表示告警触发后按百分比减少实例,单位是:%。
1198
1200
  # @type AdjustmentValue: Integer
1199
- # @param MetricAlarm: 告警监控指标。
1200
- # @type MetricAlarm: :class:`Tencentcloud::As.v20180419.models.MetricAlarm`
1201
- # @param Cooldown: 冷却时间,单位为秒。默认冷却时间300秒。
1201
+ # @param Cooldown: 冷却时间,单位为秒,仅适用于简单策略。默认冷却时间300秒。
1202
1202
  # @type Cooldown: Integer
1203
+ # @param MetricAlarm: 告警监控指标,仅适用于简单策略。
1204
+ # @type MetricAlarm: :class:`Tencentcloud::As.v20180419.models.MetricAlarm`
1205
+ # @param PredefinedMetricType: 预定义监控项,仅适用于目标追踪策略。取值范围:<br><li>ASG_AVG_CPU_UTILIZATION:平均CPU使用率</li><li>ASG_AVG_LAN_TRAFFIC_OUT:平均内网出带宽</li><li>ASG_AVG_LAN_TRAFFIC_IN:平均内网入带宽</li><li>ASG_AVG_WAN_TRAFFIC_OUT:平均外网出带宽</li><li>ASG_AVG_WAN_TRAFFIC_IN:平均外网出带宽</li>
1206
+ # @type PredefinedMetricType: String
1207
+ # @param TargetValue: 目标值,仅适用于目标追踪策略。<br><li>ASG_AVG_CPU_UTILIZATION:[1, 100),单位:%</li><li>ASG_AVG_LAN_TRAFFIC_OUT:>0,单位:Mbps</li><li>ASG_AVG_LAN_TRAFFIC_IN:>0,单位:Mbps</li><li>ASG_AVG_WAN_TRAFFIC_OUT:>0,单位:Mbps</li><li>ASG_AVG_WAN_TRAFFIC_IN:>0,单位:Mbps</li>
1208
+ # @type TargetValue: Integer
1209
+ # @param EstimatedInstanceWarmup: 实例预热时间,单位为秒,仅适用于目标追踪策略。取值范围为0-3600,默认预热时间300秒。
1210
+ # @type EstimatedInstanceWarmup: Integer
1211
+ # @param DisableScaleIn: 是否禁用缩容,仅适用于目标追踪策略,默认值为 false。取值范围:<br><li>true:目标追踪策略仅触发扩容</li><li>false:目标追踪策略触发扩容和缩容</li>
1212
+ # @type DisableScaleIn: Boolean
1203
1213
  # @param NotificationUserGroupIds: 此参数已不再生效,请使用[创建通知](https://cloud.tencent.com/document/api/377/33185)。
1204
1214
  # 通知组ID,即为用户组ID集合。
1205
1215
  # @type NotificationUserGroupIds: Array
1206
1216
 
1207
- attr_accessor :AutoScalingGroupId, :ScalingPolicyName, :AdjustmentType, :AdjustmentValue, :MetricAlarm, :Cooldown, :NotificationUserGroupIds
1217
+ attr_accessor :AutoScalingGroupId, :ScalingPolicyName, :ScalingPolicyType, :AdjustmentType, :AdjustmentValue, :Cooldown, :MetricAlarm, :PredefinedMetricType, :TargetValue, :EstimatedInstanceWarmup, :DisableScaleIn, :NotificationUserGroupIds
1208
1218
 
1209
- def initialize(autoscalinggroupid=nil, scalingpolicyname=nil, adjustmenttype=nil, adjustmentvalue=nil, metricalarm=nil, cooldown=nil, notificationusergroupids=nil)
1219
+ def initialize(autoscalinggroupid=nil, scalingpolicyname=nil, scalingpolicytype=nil, adjustmenttype=nil, adjustmentvalue=nil, cooldown=nil, metricalarm=nil, predefinedmetrictype=nil, targetvalue=nil, estimatedinstancewarmup=nil, disablescalein=nil, notificationusergroupids=nil)
1210
1220
  @AutoScalingGroupId = autoscalinggroupid
1211
1221
  @ScalingPolicyName = scalingpolicyname
1222
+ @ScalingPolicyType = scalingpolicytype
1212
1223
  @AdjustmentType = adjustmenttype
1213
1224
  @AdjustmentValue = adjustmentvalue
1214
- @MetricAlarm = metricalarm
1215
1225
  @Cooldown = cooldown
1226
+ @MetricAlarm = metricalarm
1227
+ @PredefinedMetricType = predefinedmetrictype
1228
+ @TargetValue = targetvalue
1229
+ @EstimatedInstanceWarmup = estimatedinstancewarmup
1230
+ @DisableScaleIn = disablescalein
1216
1231
  @NotificationUserGroupIds = notificationusergroupids
1217
1232
  end
1218
1233
 
1219
1234
  def deserialize(params)
1220
1235
  @AutoScalingGroupId = params['AutoScalingGroupId']
1221
1236
  @ScalingPolicyName = params['ScalingPolicyName']
1237
+ @ScalingPolicyType = params['ScalingPolicyType']
1222
1238
  @AdjustmentType = params['AdjustmentType']
1223
1239
  @AdjustmentValue = params['AdjustmentValue']
1240
+ @Cooldown = params['Cooldown']
1224
1241
  unless params['MetricAlarm'].nil?
1225
1242
  @MetricAlarm = MetricAlarm.new
1226
1243
  @MetricAlarm.deserialize(params['MetricAlarm'])
1227
1244
  end
1228
- @Cooldown = params['Cooldown']
1245
+ @PredefinedMetricType = params['PredefinedMetricType']
1246
+ @TargetValue = params['TargetValue']
1247
+ @EstimatedInstanceWarmup = params['EstimatedInstanceWarmup']
1248
+ @DisableScaleIn = params['DisableScaleIn']
1229
1249
  @NotificationUserGroupIds = params['NotificationUserGroupIds']
1230
1250
  end
1231
1251
  end
@@ -2121,6 +2141,7 @@ module TencentCloud
2121
2141
  # <li> auto-scaling-policy-id - String - 是否必填:否 -(过滤条件)按照告警策略ID过滤。</li>
2122
2142
  # <li> auto-scaling-group-id - String - 是否必填:否 -(过滤条件)按照伸缩组ID过滤。</li>
2123
2143
  # <li> scaling-policy-name - String - 是否必填:否 -(过滤条件)按照告警策略名称过滤。</li>
2144
+ # <li> scaling-policy-type - String - 是否必填:否 -(过滤条件)按照告警策略类型过滤,取值范围为SIMPLE,TARGET_TRACKING。</li>
2124
2145
  # 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`AutoScalingPolicyIds`和`Filters`。
2125
2146
  # @type Filters: Array
2126
2147
  # @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
@@ -2493,7 +2514,7 @@ module TencentCloud
2493
2514
 
2494
2515
  # ExecuteScalingPolicy请求参数结构体
2495
2516
  class ExecuteScalingPolicyRequest < TencentCloud::Common::AbstractModel
2496
- # @param AutoScalingPolicyId: 告警伸缩策略ID
2517
+ # @param AutoScalingPolicyId: 告警伸缩策略ID,不支持目标追踪策略。
2497
2518
  # @type AutoScalingPolicyId: String
2498
2519
  # @param HonorCooldown: 是否检查伸缩组活动处于冷却时间内,默认值为false
2499
2520
  # @type HonorCooldown: Boolean
@@ -2732,10 +2753,16 @@ module TencentCloud
2732
2753
  # @type VersionNumber: Integer
2733
2754
  # @param AutoScalingGroupName: 伸缩组名称
2734
2755
  # @type AutoScalingGroupName: String
2756
+ # @param WarmupStatus: 预热状态,取值如下:
2757
+ # <li>WAITING_ENTER_WARMUP:等待进入预热
2758
+ # <li>NO_NEED_WARMUP:无需预热
2759
+ # <li>IN_WARMUP:预热中
2760
+ # <li>AFTER_WARMUP:完成预热
2761
+ # @type WarmupStatus: String
2735
2762
 
2736
- attr_accessor :InstanceId, :AutoScalingGroupId, :LaunchConfigurationId, :LaunchConfigurationName, :LifeCycleState, :HealthStatus, :ProtectedFromScaleIn, :Zone, :CreationType, :AddTime, :InstanceType, :VersionNumber, :AutoScalingGroupName
2763
+ attr_accessor :InstanceId, :AutoScalingGroupId, :LaunchConfigurationId, :LaunchConfigurationName, :LifeCycleState, :HealthStatus, :ProtectedFromScaleIn, :Zone, :CreationType, :AddTime, :InstanceType, :VersionNumber, :AutoScalingGroupName, :WarmupStatus
2737
2764
 
2738
- def initialize(instanceid=nil, autoscalinggroupid=nil, launchconfigurationid=nil, launchconfigurationname=nil, lifecyclestate=nil, healthstatus=nil, protectedfromscalein=nil, zone=nil, creationtype=nil, addtime=nil, instancetype=nil, versionnumber=nil, autoscalinggroupname=nil)
2765
+ def initialize(instanceid=nil, autoscalinggroupid=nil, launchconfigurationid=nil, launchconfigurationname=nil, lifecyclestate=nil, healthstatus=nil, protectedfromscalein=nil, zone=nil, creationtype=nil, addtime=nil, instancetype=nil, versionnumber=nil, autoscalinggroupname=nil, warmupstatus=nil)
2739
2766
  @InstanceId = instanceid
2740
2767
  @AutoScalingGroupId = autoscalinggroupid
2741
2768
  @LaunchConfigurationId = launchconfigurationid
@@ -2749,6 +2776,7 @@ module TencentCloud
2749
2776
  @InstanceType = instancetype
2750
2777
  @VersionNumber = versionnumber
2751
2778
  @AutoScalingGroupName = autoscalinggroupname
2779
+ @WarmupStatus = warmupstatus
2752
2780
  end
2753
2781
 
2754
2782
  def deserialize(params)
@@ -2765,6 +2793,7 @@ module TencentCloud
2765
2793
  @InstanceType = params['InstanceType']
2766
2794
  @VersionNumber = params['VersionNumber']
2767
2795
  @AutoScalingGroupName = params['AutoScalingGroupName']
2796
+ @WarmupStatus = params['WarmupStatus']
2768
2797
  end
2769
2798
  end
2770
2799
 
@@ -3324,16 +3353,19 @@ module TencentCloud
3324
3353
  # @type ContinuousTime: Integer
3325
3354
  # @param Statistic: 统计类型,可选字段如下:<br><li>AVERAGE:平均值</li><li>MAXIMUM:最大值<li>MINIMUM:最小值</li><br> 默认取值:AVERAGE
3326
3355
  # @type Statistic: String
3356
+ # @param PreciseThreshold: 精确告警阈值,本参数不作为入参输入,仅用作查询接口出参:<br><li>CPU_UTILIZATION:(0, 100],单位:%</li><li>MEM_UTILIZATION:(0, 100],单位:%</li><li>LAN_TRAFFIC_OUT:>0,单位:Mbps </li><li>LAN_TRAFFIC_IN:>0,单位:Mbps</li><li>WAN_TRAFFIC_OUT:>0,单位:Mbps</li><li>WAN_TRAFFIC_IN:>0,单位:Mbps</li>
3357
+ # @type PreciseThreshold: Float
3327
3358
 
3328
- attr_accessor :ComparisonOperator, :MetricName, :Threshold, :Period, :ContinuousTime, :Statistic
3359
+ attr_accessor :ComparisonOperator, :MetricName, :Threshold, :Period, :ContinuousTime, :Statistic, :PreciseThreshold
3329
3360
 
3330
- def initialize(comparisonoperator=nil, metricname=nil, threshold=nil, period=nil, continuoustime=nil, statistic=nil)
3361
+ def initialize(comparisonoperator=nil, metricname=nil, threshold=nil, period=nil, continuoustime=nil, statistic=nil, precisethreshold=nil)
3331
3362
  @ComparisonOperator = comparisonoperator
3332
3363
  @MetricName = metricname
3333
3364
  @Threshold = threshold
3334
3365
  @Period = period
3335
3366
  @ContinuousTime = continuoustime
3336
3367
  @Statistic = statistic
3368
+ @PreciseThreshold = precisethreshold
3337
3369
  end
3338
3370
 
3339
3371
  def deserialize(params)
@@ -3343,6 +3375,7 @@ module TencentCloud
3343
3375
  @Period = params['Period']
3344
3376
  @ContinuousTime = params['ContinuousTime']
3345
3377
  @Statistic = params['Statistic']
3378
+ @PreciseThreshold = params['PreciseThreshold']
3346
3379
  end
3347
3380
  end
3348
3381
 
@@ -3374,9 +3407,11 @@ module TencentCloud
3374
3407
  # @type VpcId: String
3375
3408
  # @param Zones: 可用区列表
3376
3409
  # @type Zones: Array
3377
- # @param RetryPolicy: 重试策略,取值包括 IMMEDIATE_RETRY、 INCREMENTAL_INTERVALS、NO_RETRY,默认取值为 IMMEDIATE_RETRY
3378
- # <br><li> IMMEDIATE_RETRY,立即重试,在较短时间内快速重试,连续失败超过一定次数(5次)后不再重试。
3379
- # <br><li> INCREMENTAL_INTERVALS,间隔递增重试,随着连续失败次数的增加,重试间隔逐渐增大,重试间隔从秒级到1天不等。
3410
+ # @param RetryPolicy: 重试策略,取值包括 IMMEDIATE_RETRY、 INCREMENTAL_INTERVALS、NO_RETRY,默认取值为 IMMEDIATE_RETRY。部分成功的伸缩活动判定为一次失败活动。
3411
+ # <br><li>
3412
+ # IMMEDIATE_RETRY,立即重试,在较短时间内快速重试,连续失败超过一定次数(5次)后不再重试。
3413
+ # <br><li>
3414
+ # INCREMENTAL_INTERVALS,间隔递增重试,随着连续失败次数的增加,重试间隔逐渐增大,重试间隔从秒级到1天不等。
3380
3415
  # <br><li> NO_RETRY,不进行重试,直到再次收到用户调用或者告警信息后才会重试。
3381
3416
  # @type RetryPolicy: String
3382
3417
  # @param ZonesCheckPolicy: 可用区校验策略,取值包括 ALL 和 ANY,默认取值为ANY。在伸缩组实际变更资源相关字段时(启动配置、可用区、子网)发挥作用。
@@ -3937,27 +3972,39 @@ module TencentCloud
3937
3972
  # @type AutoScalingPolicyId: String
3938
3973
  # @param ScalingPolicyName: 告警策略名称。
3939
3974
  # @type ScalingPolicyName: String
3940
- # @param AdjustmentType: 告警触发后,期望实例数修改方式。取值 :<br><li>CHANGE_IN_CAPACITY:增加或减少若干期望实例数</li><li>EXACT_CAPACITY:调整至指定期望实例数</li> <li>PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数</li>
3975
+ # @param AdjustmentType: 告警触发后,期望实例数修改方式,仅适用于简单策略。取值范围:<br><li>CHANGE_IN_CAPACITY:增加或减少若干期望实例数</li><li>EXACT_CAPACITY:调整至指定期望实例数</li> <li>PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数</li>
3941
3976
  # @type AdjustmentType: String
3942
- # @param AdjustmentValue: 告警触发后,期望实例数的调整值。取值:<br><li>当 AdjustmentType 为 CHANGE_IN_CAPACITY 时,AdjustmentValue 为正数表示告警触发后增加实例,为负数表示告警触发后减少实例 </li> <li> 当 AdjustmentType 为 EXACT_CAPACITY 时,AdjustmentValue 的值即为告警触发后新的期望实例数,需要大于或等于0 </li> <li> 当 AdjustmentType 为 PERCENT_CHANGE_IN_CAPACITY 时,AdjusmentValue 为正数表示告警触发后按百分比增加实例,为负数表示告警触发后按百分比减少实例,单位是:%。
3977
+ # @param AdjustmentValue: 告警触发后,期望实例数的调整值,仅适用于简单策略。<br><li>当 AdjustmentType 为 CHANGE_IN_CAPACITY 时,AdjustmentValue 为正数表示告警触发后增加实例,为负数表示告警触发后减少实例 </li> <li> 当 AdjustmentType 为 EXACT_CAPACITY 时,AdjustmentValue 的值即为告警触发后新的期望实例数,需要大于或等于0 </li> <li> 当 AdjustmentType 为 PERCENT_CHANGE_IN_CAPACITY 时,AdjusmentValue 为正数表示告警触发后按百分比增加实例,为负数表示告警触发后按百分比减少实例,单位是:%。
3943
3978
  # @type AdjustmentValue: Integer
3944
- # @param Cooldown: 冷却时间,单位为秒。
3979
+ # @param Cooldown: 冷却时间,仅适用于简单策略,单位为秒。
3945
3980
  # @type Cooldown: Integer
3946
- # @param MetricAlarm: 告警监控指标。
3981
+ # @param MetricAlarm: 告警监控指标,仅适用于简单策略。
3947
3982
  # @type MetricAlarm: :class:`Tencentcloud::As.v20180419.models.MetricAlarm`
3983
+ # @param PredefinedMetricType: 预定义监控项,仅适用于目标追踪策略。取值范围:<br><li>ASG_AVG_CPU_UTILIZATION:平均CPU使用率</li><li>ASG_AVG_LAN_TRAFFIC_OUT:平均内网出带宽</li><li>ASG_AVG_LAN_TRAFFIC_IN:平均内网入带宽</li><li>ASG_AVG_WAN_TRAFFIC_OUT:平均外网出带宽</li><li>ASG_AVG_WAN_TRAFFIC_IN:平均外网出带宽</li>
3984
+ # @type PredefinedMetricType: String
3985
+ # @param TargetValue: 目标值,仅适用于目标追踪策略。<br><li>ASG_AVG_CPU_UTILIZATION:[1, 100),单位:%</li><li>ASG_AVG_LAN_TRAFFIC_OUT:>0,单位:Mbps</li><li>ASG_AVG_LAN_TRAFFIC_IN:>0,单位:Mbps</li><li>ASG_AVG_WAN_TRAFFIC_OUT:>0,单位:Mbps</li><li>ASG_AVG_WAN_TRAFFIC_IN:>0,单位:Mbps</li>
3986
+ # @type TargetValue: Integer
3987
+ # @param EstimatedInstanceWarmup: 实例预热时间,单位为秒,仅适用于目标追踪策略。取值范围为0-3600。
3988
+ # @type EstimatedInstanceWarmup: Integer
3989
+ # @param DisableScaleIn: 是否禁用缩容,仅适用于目标追踪策略。取值范围:<br><li>true:目标追踪策略仅触发扩容</li><li>false:目标追踪策略触发扩容和缩容</li>
3990
+ # @type DisableScaleIn: Boolean
3948
3991
  # @param NotificationUserGroupIds: 通知组ID,即为用户组ID集合,用户组ID可以通过[ListGroups](https://cloud.tencent.com/document/product/598/34589)查询。
3949
3992
  # 如果需要清空通知用户组,需要在列表中传入特定字符串 "NULL"。
3950
3993
  # @type NotificationUserGroupIds: Array
3951
3994
 
3952
- attr_accessor :AutoScalingPolicyId, :ScalingPolicyName, :AdjustmentType, :AdjustmentValue, :Cooldown, :MetricAlarm, :NotificationUserGroupIds
3995
+ attr_accessor :AutoScalingPolicyId, :ScalingPolicyName, :AdjustmentType, :AdjustmentValue, :Cooldown, :MetricAlarm, :PredefinedMetricType, :TargetValue, :EstimatedInstanceWarmup, :DisableScaleIn, :NotificationUserGroupIds
3953
3996
 
3954
- def initialize(autoscalingpolicyid=nil, scalingpolicyname=nil, adjustmenttype=nil, adjustmentvalue=nil, cooldown=nil, metricalarm=nil, notificationusergroupids=nil)
3997
+ def initialize(autoscalingpolicyid=nil, scalingpolicyname=nil, adjustmenttype=nil, adjustmentvalue=nil, cooldown=nil, metricalarm=nil, predefinedmetrictype=nil, targetvalue=nil, estimatedinstancewarmup=nil, disablescalein=nil, notificationusergroupids=nil)
3955
3998
  @AutoScalingPolicyId = autoscalingpolicyid
3956
3999
  @ScalingPolicyName = scalingpolicyname
3957
4000
  @AdjustmentType = adjustmenttype
3958
4001
  @AdjustmentValue = adjustmentvalue
3959
4002
  @Cooldown = cooldown
3960
4003
  @MetricAlarm = metricalarm
4004
+ @PredefinedMetricType = predefinedmetrictype
4005
+ @TargetValue = targetvalue
4006
+ @EstimatedInstanceWarmup = estimatedinstancewarmup
4007
+ @DisableScaleIn = disablescalein
3961
4008
  @NotificationUserGroupIds = notificationusergroupids
3962
4009
  end
3963
4010
 
@@ -3971,6 +4018,10 @@ module TencentCloud
3971
4018
  @MetricAlarm = MetricAlarm.new
3972
4019
  @MetricAlarm.deserialize(params['MetricAlarm'])
3973
4020
  end
4021
+ @PredefinedMetricType = params['PredefinedMetricType']
4022
+ @TargetValue = params['TargetValue']
4023
+ @EstimatedInstanceWarmup = params['EstimatedInstanceWarmup']
4024
+ @DisableScaleIn = params['DisableScaleIn']
3974
4025
  @NotificationUserGroupIds = params['NotificationUserGroupIds']
3975
4026
  end
3976
4027
  end
@@ -4256,35 +4307,61 @@ module TencentCloud
4256
4307
  # @type AutoScalingGroupId: String
4257
4308
  # @param AutoScalingPolicyId: 告警触发策略ID。
4258
4309
  # @type AutoScalingPolicyId: String
4310
+ # @param ScalingPolicyType: 告警触发策略类型。取值:
4311
+ # - SIMPLE:简单策略
4312
+ # - TARGET_TRACKING:目标追踪策略
4313
+ # @type ScalingPolicyType: String
4259
4314
  # @param ScalingPolicyName: 告警触发策略名称。
4260
4315
  # @type ScalingPolicyName: String
4261
- # @param AdjustmentType: 告警触发后,期望实例数修改方式。取值 :<br><li>CHANGE_IN_CAPACITY:增加或减少若干期望实例数</li><li>EXACT_CAPACITY:调整至指定期望实例数</li> <li>PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数</li>
4316
+ # @param AdjustmentType: 告警触发后,期望实例数修改方式,仅适用于简单策略。取值范围:<br><li>CHANGE_IN_CAPACITY:增加或减少若干期望实例数</li><li>EXACT_CAPACITY:调整至指定期望实例数</li> <li>PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数</li>
4262
4317
  # @type AdjustmentType: String
4263
- # @param AdjustmentValue: 告警触发后,期望实例数的调整值。
4318
+ # @param AdjustmentValue: 告警触发后,期望实例数的调整值,仅适用于简单策略。
4264
4319
  # @type AdjustmentValue: Integer
4265
- # @param Cooldown: 冷却时间。
4320
+ # @param Cooldown: 冷却时间,仅适用于简单策略。
4266
4321
  # @type Cooldown: Integer
4267
- # @param MetricAlarm: 告警监控指标。
4322
+ # @param MetricAlarm: 简单告警触发策略告警监控指标,仅适用于简单策略。
4268
4323
  # @type MetricAlarm: :class:`Tencentcloud::As.v20180419.models.MetricAlarm`
4324
+ # @param PredefinedMetricType: 预定义监控项,仅适用于目标追踪策略。取值范围:<br><li>ASG_AVG_CPU_UTILIZATION:平均CPU使用率</li><li>ASG_AVG_LAN_TRAFFIC_OUT:平均内网出带宽</li><li>ASG_AVG_LAN_TRAFFIC_IN:平均内网入带宽</li><li>ASG_AVG_WAN_TRAFFIC_OUT:平均外网出带宽</li><li>ASG_AVG_WAN_TRAFFIC_IN:平均外网出带宽</li>
4325
+ # 注意:此字段可能返回 null,表示取不到有效值。
4326
+ # @type PredefinedMetricType: String
4327
+ # @param TargetValue: 目标值,仅适用于目标追踪策略。<br><li>ASG_AVG_CPU_UTILIZATION:[1, 100),单位:%</li><li>ASG_AVG_LAN_TRAFFIC_OUT:>0,单位:Mbps</li><li>ASG_AVG_LAN_TRAFFIC_IN:>0,单位:Mbps</li><li>ASG_AVG_WAN_TRAFFIC_OUT:>0,单位:Mbps</li><li>ASG_AVG_WAN_TRAFFIC_IN:>0,单位:Mbps</li>
4328
+ # 注意:此字段可能返回 null,表示取不到有效值。
4329
+ # @type TargetValue: Integer
4330
+ # @param EstimatedInstanceWarmup: 实例预热时间,单位为秒,仅适用于目标追踪策略。取值范围为0-3600。
4331
+ # 注意:此字段可能返回 null,表示取不到有效值。
4332
+ # @type EstimatedInstanceWarmup: Integer
4333
+ # @param DisableScaleIn: 是否禁用缩容,仅适用于目标追踪策略。取值范围:<br><li>true:目标追踪策略仅触发扩容</li><li>false:目标追踪策略触发扩容和缩容</li>
4334
+ # 注意:此字段可能返回 null,表示取不到有效值。
4335
+ # @type DisableScaleIn: Boolean
4336
+ # @param MetricAlarms: 告警监控指标列表,仅适用于目标追踪策略。
4337
+ # 注意:此字段可能返回 null,表示取不到有效值。
4338
+ # @type MetricAlarms: Array
4269
4339
  # @param NotificationUserGroupIds: 通知组ID,即为用户组ID集合。
4270
4340
  # @type NotificationUserGroupIds: Array
4271
4341
 
4272
- attr_accessor :AutoScalingGroupId, :AutoScalingPolicyId, :ScalingPolicyName, :AdjustmentType, :AdjustmentValue, :Cooldown, :MetricAlarm, :NotificationUserGroupIds
4342
+ attr_accessor :AutoScalingGroupId, :AutoScalingPolicyId, :ScalingPolicyType, :ScalingPolicyName, :AdjustmentType, :AdjustmentValue, :Cooldown, :MetricAlarm, :PredefinedMetricType, :TargetValue, :EstimatedInstanceWarmup, :DisableScaleIn, :MetricAlarms, :NotificationUserGroupIds
4273
4343
 
4274
- def initialize(autoscalinggroupid=nil, autoscalingpolicyid=nil, scalingpolicyname=nil, adjustmenttype=nil, adjustmentvalue=nil, cooldown=nil, metricalarm=nil, notificationusergroupids=nil)
4344
+ def initialize(autoscalinggroupid=nil, autoscalingpolicyid=nil, scalingpolicytype=nil, scalingpolicyname=nil, adjustmenttype=nil, adjustmentvalue=nil, cooldown=nil, metricalarm=nil, predefinedmetrictype=nil, targetvalue=nil, estimatedinstancewarmup=nil, disablescalein=nil, metricalarms=nil, notificationusergroupids=nil)
4275
4345
  @AutoScalingGroupId = autoscalinggroupid
4276
4346
  @AutoScalingPolicyId = autoscalingpolicyid
4347
+ @ScalingPolicyType = scalingpolicytype
4277
4348
  @ScalingPolicyName = scalingpolicyname
4278
4349
  @AdjustmentType = adjustmenttype
4279
4350
  @AdjustmentValue = adjustmentvalue
4280
4351
  @Cooldown = cooldown
4281
4352
  @MetricAlarm = metricalarm
4353
+ @PredefinedMetricType = predefinedmetrictype
4354
+ @TargetValue = targetvalue
4355
+ @EstimatedInstanceWarmup = estimatedinstancewarmup
4356
+ @DisableScaleIn = disablescalein
4357
+ @MetricAlarms = metricalarms
4282
4358
  @NotificationUserGroupIds = notificationusergroupids
4283
4359
  end
4284
4360
 
4285
4361
  def deserialize(params)
4286
4362
  @AutoScalingGroupId = params['AutoScalingGroupId']
4287
4363
  @AutoScalingPolicyId = params['AutoScalingPolicyId']
4364
+ @ScalingPolicyType = params['ScalingPolicyType']
4288
4365
  @ScalingPolicyName = params['ScalingPolicyName']
4289
4366
  @AdjustmentType = params['AdjustmentType']
4290
4367
  @AdjustmentValue = params['AdjustmentValue']
@@ -4293,6 +4370,18 @@ module TencentCloud
4293
4370
  @MetricAlarm = MetricAlarm.new
4294
4371
  @MetricAlarm.deserialize(params['MetricAlarm'])
4295
4372
  end
4373
+ @PredefinedMetricType = params['PredefinedMetricType']
4374
+ @TargetValue = params['TargetValue']
4375
+ @EstimatedInstanceWarmup = params['EstimatedInstanceWarmup']
4376
+ @DisableScaleIn = params['DisableScaleIn']
4377
+ unless params['MetricAlarms'].nil?
4378
+ @MetricAlarms = []
4379
+ params['MetricAlarms'].each do |i|
4380
+ metricalarm_tmp = MetricAlarm.new
4381
+ metricalarm_tmp.deserialize(i)
4382
+ @MetricAlarms << metricalarm_tmp
4383
+ end
4384
+ end
4296
4385
  @NotificationUserGroupIds = params['NotificationUserGroupIds']
4297
4386
  end
4298
4387
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-as
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.534
4
+ version: 3.0.536
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-21 00:00:00.000000000 Z
11
+ date: 2023-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common