tencentcloud-sdk-as 3.0.535 → 3.0.537

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: dcb11b1b5dd97ffa5204114b3d3f0a3024e0bebe
4
- data.tar.gz: ae05f0005637f57ac8da4e4488f0a336f743fc8b
3
+ metadata.gz: 9e32c577fee2884a9886cd47a3ab855359d6f2cc
4
+ data.tar.gz: 17e6c11efac6b8a08a5ef9964711c779af799802
5
5
  SHA512:
6
- metadata.gz: 70477264b037e109bcc90864577b995a7ccf71bd1092acda38319ecda85d65460a6cd1ea6e482dcb918a3a01fb426624fd5e13c5228ed4dfeb332e46adb5c712
7
- data.tar.gz: 74b52c9e3cb8f2e01c9772c7620d891b245b94abcd005d9a4f3e6bd49bb01d8860f69d3eec3ecf50be08158ec5bf80574438a7374581bff959ee16e616f6883e
6
+ metadata.gz: d68433eee33ef100d5f68a83286476508291673c820390bdced937b0ea64b8eeef4fc78065a865a06520b67a34d1e20f1d5bb14c7b80789fa99ebe31682b4309
7
+ data.tar.gz: 4f007818ba94e06f0f530f25a9d64aed469760599a4582037f0d75855146469f8f62588f46e2f539c1866f363a03706a6a41723eab975e64d5b7ced49b72a0a4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.535
1
+ 3.0.537
@@ -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`
@@ -546,14 +546,18 @@ module TencentCloud
546
546
  # @param ClearInstanceNameSettings: 是否清空云服务器实例名相关设置信息,非必填,默认为 false。
547
547
  # 填 true 代表清空主机名设置信息,清空后基于此新创建的云主机将按照“as-{{ 伸缩组AutoScalingGroupName }}”进行设置。
548
548
  # @type ClearInstanceNameSettings: Boolean
549
+ # @param ClearDisasterRecoverGroupIds: 是否清空置放群组信息,非必填,默认为 false。
550
+ # 填 true 代表清空置放群组信息,清空后基于此新创建的云主机将不指定任何置放群组。
551
+ # @type ClearDisasterRecoverGroupIds: Boolean
549
552
 
550
- attr_accessor :LaunchConfigurationId, :ClearDataDisks, :ClearHostNameSettings, :ClearInstanceNameSettings
553
+ attr_accessor :LaunchConfigurationId, :ClearDataDisks, :ClearHostNameSettings, :ClearInstanceNameSettings, :ClearDisasterRecoverGroupIds
551
554
 
552
- def initialize(launchconfigurationid=nil, cleardatadisks=nil, clearhostnamesettings=nil, clearinstancenamesettings=nil)
555
+ def initialize(launchconfigurationid=nil, cleardatadisks=nil, clearhostnamesettings=nil, clearinstancenamesettings=nil, cleardisasterrecovergroupids=nil)
553
556
  @LaunchConfigurationId = launchconfigurationid
554
557
  @ClearDataDisks = cleardatadisks
555
558
  @ClearHostNameSettings = clearhostnamesettings
556
559
  @ClearInstanceNameSettings = clearinstancenamesettings
560
+ @ClearDisasterRecoverGroupIds = cleardisasterrecovergroupids
557
561
  end
558
562
 
559
563
  def deserialize(params)
@@ -561,6 +565,7 @@ module TencentCloud
561
565
  @ClearDataDisks = params['ClearDataDisks']
562
566
  @ClearHostNameSettings = params['ClearHostNameSettings']
563
567
  @ClearInstanceNameSettings = params['ClearInstanceNameSettings']
568
+ @ClearDisasterRecoverGroupIds = params['ClearDisasterRecoverGroupIds']
564
569
  end
565
570
  end
566
571
 
@@ -710,7 +715,7 @@ module TencentCloud
710
715
  # @type TerminationPolicies: Array
711
716
  # @param Zones: 可用区列表,基础网络场景下必须指定可用区。多个可用区以填写顺序为优先级,依次进行尝试,直至可以成功创建实例。
712
717
  # @type Zones: Array
713
- # @param RetryPolicy: 重试策略,取值包括 IMMEDIATE_RETRY、 INCREMENTAL_INTERVALS、NO_RETRY,默认取值为 IMMEDIATE_RETRY
718
+ # @param RetryPolicy: 重试策略,取值包括 IMMEDIATE_RETRY、 INCREMENTAL_INTERVALS、NO_RETRY,默认取值为 IMMEDIATE_RETRY。部分成功的伸缩活动判定为一次失败活动。
714
719
  # <br><li> IMMEDIATE_RETRY,立即重试,在较短时间内快速重试,连续失败超过一定次数(5次)后不再重试。
715
720
  # <br><li> INCREMENTAL_INTERVALS,间隔递增重试,随着连续失败次数的增加,重试间隔逐渐增大,重试间隔从秒级到1天不等。
716
721
  # <br><li> NO_RETRY,不进行重试,直到再次收到用户调用或者告警信息后才会重试。
@@ -917,10 +922,12 @@ module TencentCloud
917
922
  # @type HpcClusterId: String
918
923
  # @param IPv6InternetAccessible: IPv6公网带宽相关信息设置。若新建实例包含IPv6地址,该参数可为新建实例的IPv6地址分配公网带宽。关联启动配置的伸缩组Ipv6AddressCount参数为0时,该参数不会生效。
919
924
  # @type IPv6InternetAccessible: :class:`Tencentcloud::As.v20180419.models.IPv6InternetAccessible`
925
+ # @param DisasterRecoverGroupIds: 置放群组id,仅支持指定一个。
926
+ # @type DisasterRecoverGroupIds: Array
920
927
 
921
- attr_accessor :LaunchConfigurationName, :ImageId, :ProjectId, :InstanceType, :SystemDisk, :DataDisks, :InternetAccessible, :LoginSettings, :SecurityGroupIds, :EnhancedService, :UserData, :InstanceChargeType, :InstanceMarketOptions, :InstanceTypes, :CamRoleName, :InstanceTypesCheckPolicy, :InstanceTags, :Tags, :HostNameSettings, :InstanceNameSettings, :InstanceChargePrepaid, :DiskTypePolicy, :HpcClusterId, :IPv6InternetAccessible
928
+ attr_accessor :LaunchConfigurationName, :ImageId, :ProjectId, :InstanceType, :SystemDisk, :DataDisks, :InternetAccessible, :LoginSettings, :SecurityGroupIds, :EnhancedService, :UserData, :InstanceChargeType, :InstanceMarketOptions, :InstanceTypes, :CamRoleName, :InstanceTypesCheckPolicy, :InstanceTags, :Tags, :HostNameSettings, :InstanceNameSettings, :InstanceChargePrepaid, :DiskTypePolicy, :HpcClusterId, :IPv6InternetAccessible, :DisasterRecoverGroupIds
922
929
 
923
- def initialize(launchconfigurationname=nil, imageid=nil, projectid=nil, instancetype=nil, systemdisk=nil, datadisks=nil, internetaccessible=nil, loginsettings=nil, securitygroupids=nil, enhancedservice=nil, userdata=nil, instancechargetype=nil, instancemarketoptions=nil, instancetypes=nil, camrolename=nil, instancetypescheckpolicy=nil, instancetags=nil, tags=nil, hostnamesettings=nil, instancenamesettings=nil, instancechargeprepaid=nil, disktypepolicy=nil, hpcclusterid=nil, ipv6internetaccessible=nil)
930
+ def initialize(launchconfigurationname=nil, imageid=nil, projectid=nil, instancetype=nil, systemdisk=nil, datadisks=nil, internetaccessible=nil, loginsettings=nil, securitygroupids=nil, enhancedservice=nil, userdata=nil, instancechargetype=nil, instancemarketoptions=nil, instancetypes=nil, camrolename=nil, instancetypescheckpolicy=nil, instancetags=nil, tags=nil, hostnamesettings=nil, instancenamesettings=nil, instancechargeprepaid=nil, disktypepolicy=nil, hpcclusterid=nil, ipv6internetaccessible=nil, disasterrecovergroupids=nil)
924
931
  @LaunchConfigurationName = launchconfigurationname
925
932
  @ImageId = imageid
926
933
  @ProjectId = projectid
@@ -945,6 +952,7 @@ module TencentCloud
945
952
  @DiskTypePolicy = disktypepolicy
946
953
  @HpcClusterId = hpcclusterid
947
954
  @IPv6InternetAccessible = ipv6internetaccessible
955
+ @DisasterRecoverGroupIds = disasterrecovergroupids
948
956
  end
949
957
 
950
958
  def deserialize(params)
@@ -1020,6 +1028,7 @@ module TencentCloud
1020
1028
  @IPv6InternetAccessible = IPv6InternetAccessible.new
1021
1029
  @IPv6InternetAccessible.deserialize(params['IPv6InternetAccessible'])
1022
1030
  end
1031
+ @DisasterRecoverGroupIds = params['DisasterRecoverGroupIds']
1023
1032
  end
1024
1033
  end
1025
1034
 
@@ -1192,40 +1201,60 @@ module TencentCloud
1192
1201
  # @type AutoScalingGroupId: String
1193
1202
  # @param ScalingPolicyName: 告警触发策略名称。
1194
1203
  # @type ScalingPolicyName: String
1195
- # @param AdjustmentType: 告警触发后,期望实例数修改方式。取值 :<br><li>CHANGE_IN_CAPACITY:增加或减少若干期望实例数</li><li>EXACT_CAPACITY:调整至指定期望实例数</li> <li>PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数</li>
1204
+ # @param ScalingPolicyType: 告警触发策略类型,默认类型为SIMPLE。取值范围:<br><li>SIMPLE:简单策略</li><li>TARGET_TRACKING:目标追踪策略</li>
1205
+ # @type ScalingPolicyType: String
1206
+ # @param AdjustmentType: 告警触发后,期望实例数修改方式,仅适用于简单策略。取值范围:<br><li>CHANGE_IN_CAPACITY:增加或减少若干期望实例数</li><li>EXACT_CAPACITY:调整至指定期望实例数</li> <li>PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数</li>
1196
1207
  # @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 为正数表示告警触发后按百分比增加实例,为负数表示告警触发后按百分比减少实例,单位是:%。
1208
+ # @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
1209
  # @type AdjustmentValue: Integer
1199
- # @param MetricAlarm: 告警监控指标。
1200
- # @type MetricAlarm: :class:`Tencentcloud::As.v20180419.models.MetricAlarm`
1201
- # @param Cooldown: 冷却时间,单位为秒。默认冷却时间300秒。
1210
+ # @param Cooldown: 冷却时间,单位为秒,仅适用于简单策略。默认冷却时间300秒。
1202
1211
  # @type Cooldown: Integer
1212
+ # @param MetricAlarm: 告警监控指标,仅适用于简单策略。
1213
+ # @type MetricAlarm: :class:`Tencentcloud::As.v20180419.models.MetricAlarm`
1214
+ # @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>
1215
+ # @type PredefinedMetricType: String
1216
+ # @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>
1217
+ # @type TargetValue: Integer
1218
+ # @param EstimatedInstanceWarmup: 实例预热时间,单位为秒,仅适用于目标追踪策略。取值范围为0-3600,默认预热时间300秒。
1219
+ # @type EstimatedInstanceWarmup: Integer
1220
+ # @param DisableScaleIn: 是否禁用缩容,仅适用于目标追踪策略,默认值为 false。取值范围:<br><li>true:目标追踪策略仅触发扩容</li><li>false:目标追踪策略触发扩容和缩容</li>
1221
+ # @type DisableScaleIn: Boolean
1203
1222
  # @param NotificationUserGroupIds: 此参数已不再生效,请使用[创建通知](https://cloud.tencent.com/document/api/377/33185)。
1204
1223
  # 通知组ID,即为用户组ID集合。
1205
1224
  # @type NotificationUserGroupIds: Array
1206
1225
 
1207
- attr_accessor :AutoScalingGroupId, :ScalingPolicyName, :AdjustmentType, :AdjustmentValue, :MetricAlarm, :Cooldown, :NotificationUserGroupIds
1226
+ attr_accessor :AutoScalingGroupId, :ScalingPolicyName, :ScalingPolicyType, :AdjustmentType, :AdjustmentValue, :Cooldown, :MetricAlarm, :PredefinedMetricType, :TargetValue, :EstimatedInstanceWarmup, :DisableScaleIn, :NotificationUserGroupIds
1208
1227
 
1209
- def initialize(autoscalinggroupid=nil, scalingpolicyname=nil, adjustmenttype=nil, adjustmentvalue=nil, metricalarm=nil, cooldown=nil, notificationusergroupids=nil)
1228
+ 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
1229
  @AutoScalingGroupId = autoscalinggroupid
1211
1230
  @ScalingPolicyName = scalingpolicyname
1231
+ @ScalingPolicyType = scalingpolicytype
1212
1232
  @AdjustmentType = adjustmenttype
1213
1233
  @AdjustmentValue = adjustmentvalue
1214
- @MetricAlarm = metricalarm
1215
1234
  @Cooldown = cooldown
1235
+ @MetricAlarm = metricalarm
1236
+ @PredefinedMetricType = predefinedmetrictype
1237
+ @TargetValue = targetvalue
1238
+ @EstimatedInstanceWarmup = estimatedinstancewarmup
1239
+ @DisableScaleIn = disablescalein
1216
1240
  @NotificationUserGroupIds = notificationusergroupids
1217
1241
  end
1218
1242
 
1219
1243
  def deserialize(params)
1220
1244
  @AutoScalingGroupId = params['AutoScalingGroupId']
1221
1245
  @ScalingPolicyName = params['ScalingPolicyName']
1246
+ @ScalingPolicyType = params['ScalingPolicyType']
1222
1247
  @AdjustmentType = params['AdjustmentType']
1223
1248
  @AdjustmentValue = params['AdjustmentValue']
1249
+ @Cooldown = params['Cooldown']
1224
1250
  unless params['MetricAlarm'].nil?
1225
1251
  @MetricAlarm = MetricAlarm.new
1226
1252
  @MetricAlarm.deserialize(params['MetricAlarm'])
1227
1253
  end
1228
- @Cooldown = params['Cooldown']
1254
+ @PredefinedMetricType = params['PredefinedMetricType']
1255
+ @TargetValue = params['TargetValue']
1256
+ @EstimatedInstanceWarmup = params['EstimatedInstanceWarmup']
1257
+ @DisableScaleIn = params['DisableScaleIn']
1229
1258
  @NotificationUserGroupIds = params['NotificationUserGroupIds']
1230
1259
  end
1231
1260
  end
@@ -2121,6 +2150,7 @@ module TencentCloud
2121
2150
  # <li> auto-scaling-policy-id - String - 是否必填:否 -(过滤条件)按照告警策略ID过滤。</li>
2122
2151
  # <li> auto-scaling-group-id - String - 是否必填:否 -(过滤条件)按照伸缩组ID过滤。</li>
2123
2152
  # <li> scaling-policy-name - String - 是否必填:否 -(过滤条件)按照告警策略名称过滤。</li>
2153
+ # <li> scaling-policy-type - String - 是否必填:否 -(过滤条件)按照告警策略类型过滤,取值范围为SIMPLE,TARGET_TRACKING。</li>
2124
2154
  # 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`AutoScalingPolicyIds`和`Filters`。
2125
2155
  # @type Filters: Array
2126
2156
  # @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
@@ -2493,7 +2523,7 @@ module TencentCloud
2493
2523
 
2494
2524
  # ExecuteScalingPolicy请求参数结构体
2495
2525
  class ExecuteScalingPolicyRequest < TencentCloud::Common::AbstractModel
2496
- # @param AutoScalingPolicyId: 告警伸缩策略ID
2526
+ # @param AutoScalingPolicyId: 告警伸缩策略ID,不支持目标追踪策略。
2497
2527
  # @type AutoScalingPolicyId: String
2498
2528
  # @param HonorCooldown: 是否检查伸缩组活动处于冷却时间内,默认值为false
2499
2529
  # @type HonorCooldown: Boolean
@@ -2732,10 +2762,19 @@ module TencentCloud
2732
2762
  # @type VersionNumber: Integer
2733
2763
  # @param AutoScalingGroupName: 伸缩组名称
2734
2764
  # @type AutoScalingGroupName: String
2765
+ # @param WarmupStatus: 预热状态,取值如下:
2766
+ # <li>WAITING_ENTER_WARMUP:等待进入预热
2767
+ # <li>NO_NEED_WARMUP:无需预热
2768
+ # <li>IN_WARMUP:预热中
2769
+ # <li>AFTER_WARMUP:完成预热
2770
+ # @type WarmupStatus: String
2771
+ # @param DisasterRecoverGroupIds: 置放群组id,仅支持指定一个。
2772
+ # 注意:此字段可能返回 null,表示取不到有效值。
2773
+ # @type DisasterRecoverGroupIds: Array
2735
2774
 
2736
- attr_accessor :InstanceId, :AutoScalingGroupId, :LaunchConfigurationId, :LaunchConfigurationName, :LifeCycleState, :HealthStatus, :ProtectedFromScaleIn, :Zone, :CreationType, :AddTime, :InstanceType, :VersionNumber, :AutoScalingGroupName
2775
+ attr_accessor :InstanceId, :AutoScalingGroupId, :LaunchConfigurationId, :LaunchConfigurationName, :LifeCycleState, :HealthStatus, :ProtectedFromScaleIn, :Zone, :CreationType, :AddTime, :InstanceType, :VersionNumber, :AutoScalingGroupName, :WarmupStatus, :DisasterRecoverGroupIds
2737
2776
 
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)
2777
+ 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, disasterrecovergroupids=nil)
2739
2778
  @InstanceId = instanceid
2740
2779
  @AutoScalingGroupId = autoscalinggroupid
2741
2780
  @LaunchConfigurationId = launchconfigurationid
@@ -2749,6 +2788,8 @@ module TencentCloud
2749
2788
  @InstanceType = instancetype
2750
2789
  @VersionNumber = versionnumber
2751
2790
  @AutoScalingGroupName = autoscalinggroupname
2791
+ @WarmupStatus = warmupstatus
2792
+ @DisasterRecoverGroupIds = disasterrecovergroupids
2752
2793
  end
2753
2794
 
2754
2795
  def deserialize(params)
@@ -2765,6 +2806,8 @@ module TencentCloud
2765
2806
  @InstanceType = params['InstanceType']
2766
2807
  @VersionNumber = params['VersionNumber']
2767
2808
  @AutoScalingGroupName = params['AutoScalingGroupName']
2809
+ @WarmupStatus = params['WarmupStatus']
2810
+ @DisasterRecoverGroupIds = params['DisasterRecoverGroupIds']
2768
2811
  end
2769
2812
  end
2770
2813
 
@@ -3324,16 +3367,19 @@ module TencentCloud
3324
3367
  # @type ContinuousTime: Integer
3325
3368
  # @param Statistic: 统计类型,可选字段如下:<br><li>AVERAGE:平均值</li><li>MAXIMUM:最大值<li>MINIMUM:最小值</li><br> 默认取值:AVERAGE
3326
3369
  # @type Statistic: String
3370
+ # @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>
3371
+ # @type PreciseThreshold: Float
3327
3372
 
3328
- attr_accessor :ComparisonOperator, :MetricName, :Threshold, :Period, :ContinuousTime, :Statistic
3373
+ attr_accessor :ComparisonOperator, :MetricName, :Threshold, :Period, :ContinuousTime, :Statistic, :PreciseThreshold
3329
3374
 
3330
- def initialize(comparisonoperator=nil, metricname=nil, threshold=nil, period=nil, continuoustime=nil, statistic=nil)
3375
+ def initialize(comparisonoperator=nil, metricname=nil, threshold=nil, period=nil, continuoustime=nil, statistic=nil, precisethreshold=nil)
3331
3376
  @ComparisonOperator = comparisonoperator
3332
3377
  @MetricName = metricname
3333
3378
  @Threshold = threshold
3334
3379
  @Period = period
3335
3380
  @ContinuousTime = continuoustime
3336
3381
  @Statistic = statistic
3382
+ @PreciseThreshold = precisethreshold
3337
3383
  end
3338
3384
 
3339
3385
  def deserialize(params)
@@ -3343,6 +3389,7 @@ module TencentCloud
3343
3389
  @Period = params['Period']
3344
3390
  @ContinuousTime = params['ContinuousTime']
3345
3391
  @Statistic = params['Statistic']
3392
+ @PreciseThreshold = params['PreciseThreshold']
3346
3393
  end
3347
3394
  end
3348
3395
 
@@ -3374,9 +3421,11 @@ module TencentCloud
3374
3421
  # @type VpcId: String
3375
3422
  # @param Zones: 可用区列表
3376
3423
  # @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天不等。
3424
+ # @param RetryPolicy: 重试策略,取值包括 IMMEDIATE_RETRY、 INCREMENTAL_INTERVALS、NO_RETRY,默认取值为 IMMEDIATE_RETRY。部分成功的伸缩活动判定为一次失败活动。
3425
+ # <br><li>
3426
+ # IMMEDIATE_RETRY,立即重试,在较短时间内快速重试,连续失败超过一定次数(5次)后不再重试。
3427
+ # <br><li>
3428
+ # INCREMENTAL_INTERVALS,间隔递增重试,随着连续失败次数的增加,重试间隔逐渐增大,重试间隔从秒级到1天不等。
3380
3429
  # <br><li> NO_RETRY,不进行重试,直到再次收到用户调用或者告警信息后才会重试。
3381
3430
  # @type RetryPolicy: String
3382
3431
  # @param ZonesCheckPolicy: 可用区校验策略,取值包括 ALL 和 ANY,默认取值为ANY。在伸缩组实际变更资源相关字段时(启动配置、可用区、子网)发挥作用。
@@ -3602,10 +3651,12 @@ module TencentCloud
3602
3651
  # @type HpcClusterId: String
3603
3652
  # @param IPv6InternetAccessible: IPv6公网带宽相关信息设置。若新建实例包含IPv6地址,该参数可为新建实例的IPv6地址分配公网带宽。关联启动配置的伸缩组Ipv6AddressCount参数为0时,该参数不会生效。
3604
3653
  # @type IPv6InternetAccessible: :class:`Tencentcloud::As.v20180419.models.IPv6InternetAccessible`
3654
+ # @param DisasterRecoverGroupIds: 置放群组id,仅支持指定一个。
3655
+ # @type DisasterRecoverGroupIds: Array
3605
3656
 
3606
- attr_accessor :LaunchConfigurationId, :ImageId, :InstanceTypes, :InstanceTypesCheckPolicy, :LaunchConfigurationName, :UserData, :SecurityGroupIds, :InternetAccessible, :InstanceChargeType, :InstanceChargePrepaid, :InstanceMarketOptions, :DiskTypePolicy, :SystemDisk, :DataDisks, :HostNameSettings, :InstanceNameSettings, :EnhancedService, :CamRoleName, :HpcClusterId, :IPv6InternetAccessible
3657
+ attr_accessor :LaunchConfigurationId, :ImageId, :InstanceTypes, :InstanceTypesCheckPolicy, :LaunchConfigurationName, :UserData, :SecurityGroupIds, :InternetAccessible, :InstanceChargeType, :InstanceChargePrepaid, :InstanceMarketOptions, :DiskTypePolicy, :SystemDisk, :DataDisks, :HostNameSettings, :InstanceNameSettings, :EnhancedService, :CamRoleName, :HpcClusterId, :IPv6InternetAccessible, :DisasterRecoverGroupIds
3607
3658
 
3608
- def initialize(launchconfigurationid=nil, imageid=nil, instancetypes=nil, instancetypescheckpolicy=nil, launchconfigurationname=nil, userdata=nil, securitygroupids=nil, internetaccessible=nil, instancechargetype=nil, instancechargeprepaid=nil, instancemarketoptions=nil, disktypepolicy=nil, systemdisk=nil, datadisks=nil, hostnamesettings=nil, instancenamesettings=nil, enhancedservice=nil, camrolename=nil, hpcclusterid=nil, ipv6internetaccessible=nil)
3659
+ def initialize(launchconfigurationid=nil, imageid=nil, instancetypes=nil, instancetypescheckpolicy=nil, launchconfigurationname=nil, userdata=nil, securitygroupids=nil, internetaccessible=nil, instancechargetype=nil, instancechargeprepaid=nil, instancemarketoptions=nil, disktypepolicy=nil, systemdisk=nil, datadisks=nil, hostnamesettings=nil, instancenamesettings=nil, enhancedservice=nil, camrolename=nil, hpcclusterid=nil, ipv6internetaccessible=nil, disasterrecovergroupids=nil)
3609
3660
  @LaunchConfigurationId = launchconfigurationid
3610
3661
  @ImageId = imageid
3611
3662
  @InstanceTypes = instancetypes
@@ -3626,6 +3677,7 @@ module TencentCloud
3626
3677
  @CamRoleName = camrolename
3627
3678
  @HpcClusterId = hpcclusterid
3628
3679
  @IPv6InternetAccessible = ipv6internetaccessible
3680
+ @DisasterRecoverGroupIds = disasterrecovergroupids
3629
3681
  end
3630
3682
 
3631
3683
  def deserialize(params)
@@ -3680,6 +3732,7 @@ module TencentCloud
3680
3732
  @IPv6InternetAccessible = IPv6InternetAccessible.new
3681
3733
  @IPv6InternetAccessible.deserialize(params['IPv6InternetAccessible'])
3682
3734
  end
3735
+ @DisasterRecoverGroupIds = params['DisasterRecoverGroupIds']
3683
3736
  end
3684
3737
  end
3685
3738
 
@@ -3937,27 +3990,39 @@ module TencentCloud
3937
3990
  # @type AutoScalingPolicyId: String
3938
3991
  # @param ScalingPolicyName: 告警策略名称。
3939
3992
  # @type ScalingPolicyName: String
3940
- # @param AdjustmentType: 告警触发后,期望实例数修改方式。取值 :<br><li>CHANGE_IN_CAPACITY:增加或减少若干期望实例数</li><li>EXACT_CAPACITY:调整至指定期望实例数</li> <li>PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数</li>
3993
+ # @param AdjustmentType: 告警触发后,期望实例数修改方式,仅适用于简单策略。取值范围:<br><li>CHANGE_IN_CAPACITY:增加或减少若干期望实例数</li><li>EXACT_CAPACITY:调整至指定期望实例数</li> <li>PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数</li>
3941
3994
  # @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 为正数表示告警触发后按百分比增加实例,为负数表示告警触发后按百分比减少实例,单位是:%。
3995
+ # @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
3996
  # @type AdjustmentValue: Integer
3944
- # @param Cooldown: 冷却时间,单位为秒。
3997
+ # @param Cooldown: 冷却时间,仅适用于简单策略,单位为秒。
3945
3998
  # @type Cooldown: Integer
3946
- # @param MetricAlarm: 告警监控指标。
3999
+ # @param MetricAlarm: 告警监控指标,仅适用于简单策略。
3947
4000
  # @type MetricAlarm: :class:`Tencentcloud::As.v20180419.models.MetricAlarm`
4001
+ # @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>
4002
+ # @type PredefinedMetricType: String
4003
+ # @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>
4004
+ # @type TargetValue: Integer
4005
+ # @param EstimatedInstanceWarmup: 实例预热时间,单位为秒,仅适用于目标追踪策略。取值范围为0-3600。
4006
+ # @type EstimatedInstanceWarmup: Integer
4007
+ # @param DisableScaleIn: 是否禁用缩容,仅适用于目标追踪策略。取值范围:<br><li>true:目标追踪策略仅触发扩容</li><li>false:目标追踪策略触发扩容和缩容</li>
4008
+ # @type DisableScaleIn: Boolean
3948
4009
  # @param NotificationUserGroupIds: 通知组ID,即为用户组ID集合,用户组ID可以通过[ListGroups](https://cloud.tencent.com/document/product/598/34589)查询。
3949
4010
  # 如果需要清空通知用户组,需要在列表中传入特定字符串 "NULL"。
3950
4011
  # @type NotificationUserGroupIds: Array
3951
4012
 
3952
- attr_accessor :AutoScalingPolicyId, :ScalingPolicyName, :AdjustmentType, :AdjustmentValue, :Cooldown, :MetricAlarm, :NotificationUserGroupIds
4013
+ attr_accessor :AutoScalingPolicyId, :ScalingPolicyName, :AdjustmentType, :AdjustmentValue, :Cooldown, :MetricAlarm, :PredefinedMetricType, :TargetValue, :EstimatedInstanceWarmup, :DisableScaleIn, :NotificationUserGroupIds
3953
4014
 
3954
- def initialize(autoscalingpolicyid=nil, scalingpolicyname=nil, adjustmenttype=nil, adjustmentvalue=nil, cooldown=nil, metricalarm=nil, notificationusergroupids=nil)
4015
+ 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
4016
  @AutoScalingPolicyId = autoscalingpolicyid
3956
4017
  @ScalingPolicyName = scalingpolicyname
3957
4018
  @AdjustmentType = adjustmenttype
3958
4019
  @AdjustmentValue = adjustmentvalue
3959
4020
  @Cooldown = cooldown
3960
4021
  @MetricAlarm = metricalarm
4022
+ @PredefinedMetricType = predefinedmetrictype
4023
+ @TargetValue = targetvalue
4024
+ @EstimatedInstanceWarmup = estimatedinstancewarmup
4025
+ @DisableScaleIn = disablescalein
3961
4026
  @NotificationUserGroupIds = notificationusergroupids
3962
4027
  end
3963
4028
 
@@ -3971,6 +4036,10 @@ module TencentCloud
3971
4036
  @MetricAlarm = MetricAlarm.new
3972
4037
  @MetricAlarm.deserialize(params['MetricAlarm'])
3973
4038
  end
4039
+ @PredefinedMetricType = params['PredefinedMetricType']
4040
+ @TargetValue = params['TargetValue']
4041
+ @EstimatedInstanceWarmup = params['EstimatedInstanceWarmup']
4042
+ @DisableScaleIn = params['DisableScaleIn']
3974
4043
  @NotificationUserGroupIds = params['NotificationUserGroupIds']
3975
4044
  end
3976
4045
  end
@@ -4256,35 +4325,61 @@ module TencentCloud
4256
4325
  # @type AutoScalingGroupId: String
4257
4326
  # @param AutoScalingPolicyId: 告警触发策略ID。
4258
4327
  # @type AutoScalingPolicyId: String
4328
+ # @param ScalingPolicyType: 告警触发策略类型。取值:
4329
+ # - SIMPLE:简单策略
4330
+ # - TARGET_TRACKING:目标追踪策略
4331
+ # @type ScalingPolicyType: String
4259
4332
  # @param ScalingPolicyName: 告警触发策略名称。
4260
4333
  # @type ScalingPolicyName: String
4261
- # @param AdjustmentType: 告警触发后,期望实例数修改方式。取值 :<br><li>CHANGE_IN_CAPACITY:增加或减少若干期望实例数</li><li>EXACT_CAPACITY:调整至指定期望实例数</li> <li>PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数</li>
4334
+ # @param AdjustmentType: 告警触发后,期望实例数修改方式,仅适用于简单策略。取值范围:<br><li>CHANGE_IN_CAPACITY:增加或减少若干期望实例数</li><li>EXACT_CAPACITY:调整至指定期望实例数</li> <li>PERCENT_CHANGE_IN_CAPACITY:按百分比调整期望实例数</li>
4262
4335
  # @type AdjustmentType: String
4263
- # @param AdjustmentValue: 告警触发后,期望实例数的调整值。
4336
+ # @param AdjustmentValue: 告警触发后,期望实例数的调整值,仅适用于简单策略。
4264
4337
  # @type AdjustmentValue: Integer
4265
- # @param Cooldown: 冷却时间。
4338
+ # @param Cooldown: 冷却时间,仅适用于简单策略。
4266
4339
  # @type Cooldown: Integer
4267
- # @param MetricAlarm: 告警监控指标。
4340
+ # @param MetricAlarm: 简单告警触发策略告警监控指标,仅适用于简单策略。
4268
4341
  # @type MetricAlarm: :class:`Tencentcloud::As.v20180419.models.MetricAlarm`
4342
+ # @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>
4343
+ # 注意:此字段可能返回 null,表示取不到有效值。
4344
+ # @type PredefinedMetricType: String
4345
+ # @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>
4346
+ # 注意:此字段可能返回 null,表示取不到有效值。
4347
+ # @type TargetValue: Integer
4348
+ # @param EstimatedInstanceWarmup: 实例预热时间,单位为秒,仅适用于目标追踪策略。取值范围为0-3600。
4349
+ # 注意:此字段可能返回 null,表示取不到有效值。
4350
+ # @type EstimatedInstanceWarmup: Integer
4351
+ # @param DisableScaleIn: 是否禁用缩容,仅适用于目标追踪策略。取值范围:<br><li>true:目标追踪策略仅触发扩容</li><li>false:目标追踪策略触发扩容和缩容</li>
4352
+ # 注意:此字段可能返回 null,表示取不到有效值。
4353
+ # @type DisableScaleIn: Boolean
4354
+ # @param MetricAlarms: 告警监控指标列表,仅适用于目标追踪策略。
4355
+ # 注意:此字段可能返回 null,表示取不到有效值。
4356
+ # @type MetricAlarms: Array
4269
4357
  # @param NotificationUserGroupIds: 通知组ID,即为用户组ID集合。
4270
4358
  # @type NotificationUserGroupIds: Array
4271
4359
 
4272
- attr_accessor :AutoScalingGroupId, :AutoScalingPolicyId, :ScalingPolicyName, :AdjustmentType, :AdjustmentValue, :Cooldown, :MetricAlarm, :NotificationUserGroupIds
4360
+ attr_accessor :AutoScalingGroupId, :AutoScalingPolicyId, :ScalingPolicyType, :ScalingPolicyName, :AdjustmentType, :AdjustmentValue, :Cooldown, :MetricAlarm, :PredefinedMetricType, :TargetValue, :EstimatedInstanceWarmup, :DisableScaleIn, :MetricAlarms, :NotificationUserGroupIds
4273
4361
 
4274
- def initialize(autoscalinggroupid=nil, autoscalingpolicyid=nil, scalingpolicyname=nil, adjustmenttype=nil, adjustmentvalue=nil, cooldown=nil, metricalarm=nil, notificationusergroupids=nil)
4362
+ 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
4363
  @AutoScalingGroupId = autoscalinggroupid
4276
4364
  @AutoScalingPolicyId = autoscalingpolicyid
4365
+ @ScalingPolicyType = scalingpolicytype
4277
4366
  @ScalingPolicyName = scalingpolicyname
4278
4367
  @AdjustmentType = adjustmenttype
4279
4368
  @AdjustmentValue = adjustmentvalue
4280
4369
  @Cooldown = cooldown
4281
4370
  @MetricAlarm = metricalarm
4371
+ @PredefinedMetricType = predefinedmetrictype
4372
+ @TargetValue = targetvalue
4373
+ @EstimatedInstanceWarmup = estimatedinstancewarmup
4374
+ @DisableScaleIn = disablescalein
4375
+ @MetricAlarms = metricalarms
4282
4376
  @NotificationUserGroupIds = notificationusergroupids
4283
4377
  end
4284
4378
 
4285
4379
  def deserialize(params)
4286
4380
  @AutoScalingGroupId = params['AutoScalingGroupId']
4287
4381
  @AutoScalingPolicyId = params['AutoScalingPolicyId']
4382
+ @ScalingPolicyType = params['ScalingPolicyType']
4288
4383
  @ScalingPolicyName = params['ScalingPolicyName']
4289
4384
  @AdjustmentType = params['AdjustmentType']
4290
4385
  @AdjustmentValue = params['AdjustmentValue']
@@ -4293,6 +4388,18 @@ module TencentCloud
4293
4388
  @MetricAlarm = MetricAlarm.new
4294
4389
  @MetricAlarm.deserialize(params['MetricAlarm'])
4295
4390
  end
4391
+ @PredefinedMetricType = params['PredefinedMetricType']
4392
+ @TargetValue = params['TargetValue']
4393
+ @EstimatedInstanceWarmup = params['EstimatedInstanceWarmup']
4394
+ @DisableScaleIn = params['DisableScaleIn']
4395
+ unless params['MetricAlarms'].nil?
4396
+ @MetricAlarms = []
4397
+ params['MetricAlarms'].each do |i|
4398
+ metricalarm_tmp = MetricAlarm.new
4399
+ metricalarm_tmp.deserialize(i)
4400
+ @MetricAlarms << metricalarm_tmp
4401
+ end
4402
+ end
4296
4403
  @NotificationUserGroupIds = params['NotificationUserGroupIds']
4297
4404
  end
4298
4405
  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.535
4
+ version: 3.0.537
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-22 00:00:00.000000000 Z
11
+ date: 2023-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common