tencentcloud-sdk-emr 3.0.851 → 3.0.853
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190103/models.rb +349 -17
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 733a8c2b11fb9aa5360ad3281e4d138e6bbdfd8a
|
4
|
+
data.tar.gz: 693fa1aeb5f0e9d33e4a3906859a3fd5f475f294
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 036b923a91cf2153b83accf9e02ea71965e62ebef5004c3a03f7c8232a19ec053aba5a288c10a19fb0cfe3211389f05a1aa5ac5bc80bcbe82f7caeab64be3006
|
7
|
+
data.tar.gz: 1e751d2e28183121f59a4acab059fda68aa1257c0dd5dcf09fe524458cdfa0e760b3a0c5f432ba58a696f3c04baec912b71158fdc11040aadaef10c8d9b8f25d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.853
|
data/lib/v20190103/models.rb
CHANGED
@@ -21,22 +21,29 @@ module TencentCloud
|
|
21
21
|
class AddMetricScaleStrategyRequest < TencentCloud::Common::AbstractModel
|
22
22
|
# @param InstanceId: 实例ID。
|
23
23
|
# @type InstanceId: String
|
24
|
-
# @param StrategyType: 1表示按负载规则扩容,2
|
24
|
+
# @param StrategyType: 1表示按负载规则扩容,2表示按时间规则扩容。必须填写,并且和下面的规则策略匹配
|
25
25
|
# @type StrategyType: Integer
|
26
|
+
# @param LoadAutoScaleStrategy: 按负载扩容的规则。
|
27
|
+
# @type LoadAutoScaleStrategy: :class:`Tencentcloud::Emr.v20190103.models.LoadAutoScaleStrategy`
|
26
28
|
# @param TimeAutoScaleStrategy: 按时间扩缩容的规则。
|
27
29
|
# @type TimeAutoScaleStrategy: :class:`Tencentcloud::Emr.v20190103.models.TimeAutoScaleStrategy`
|
28
30
|
|
29
|
-
attr_accessor :InstanceId, :StrategyType, :TimeAutoScaleStrategy
|
31
|
+
attr_accessor :InstanceId, :StrategyType, :LoadAutoScaleStrategy, :TimeAutoScaleStrategy
|
30
32
|
|
31
|
-
def initialize(instanceid=nil, strategytype=nil, timeautoscalestrategy=nil)
|
33
|
+
def initialize(instanceid=nil, strategytype=nil, loadautoscalestrategy=nil, timeautoscalestrategy=nil)
|
32
34
|
@InstanceId = instanceid
|
33
35
|
@StrategyType = strategytype
|
36
|
+
@LoadAutoScaleStrategy = loadautoscalestrategy
|
34
37
|
@TimeAutoScaleStrategy = timeautoscalestrategy
|
35
38
|
end
|
36
39
|
|
37
40
|
def deserialize(params)
|
38
41
|
@InstanceId = params['InstanceId']
|
39
42
|
@StrategyType = params['StrategyType']
|
43
|
+
unless params['LoadAutoScaleStrategy'].nil?
|
44
|
+
@LoadAutoScaleStrategy = LoadAutoScaleStrategy.new
|
45
|
+
@LoadAutoScaleStrategy.deserialize(params['LoadAutoScaleStrategy'])
|
46
|
+
end
|
40
47
|
unless params['TimeAutoScaleStrategy'].nil?
|
41
48
|
@TimeAutoScaleStrategy = TimeAutoScaleStrategy.new
|
42
49
|
@TimeAutoScaleStrategy.deserialize(params['TimeAutoScaleStrategy'])
|
@@ -275,10 +282,16 @@ module TencentCloud
|
|
275
282
|
# @param RetryInfo: 重试信息
|
276
283
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
277
284
|
# @type RetryInfo: String
|
285
|
+
# @param RetryEnReason: 重试英文描述
|
286
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
287
|
+
# @type RetryEnReason: String
|
288
|
+
# @param RetryReason: 重试描述
|
289
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
290
|
+
# @type RetryReason: String
|
278
291
|
|
279
|
-
attr_accessor :StrategyName, :ScaleAction, :ActionStatus, :ActionTime, :ScaleInfo, :ExpectScaleNum, :EndTime, :StrategyType, :SpecInfo, :CompensateFlag, :CompensateCount, :RetryCount, :RetryInfo
|
292
|
+
attr_accessor :StrategyName, :ScaleAction, :ActionStatus, :ActionTime, :ScaleInfo, :ExpectScaleNum, :EndTime, :StrategyType, :SpecInfo, :CompensateFlag, :CompensateCount, :RetryCount, :RetryInfo, :RetryEnReason, :RetryReason
|
280
293
|
|
281
|
-
def initialize(strategyname=nil, scaleaction=nil, actionstatus=nil, actiontime=nil, scaleinfo=nil, expectscalenum=nil, endtime=nil, strategytype=nil, specinfo=nil, compensateflag=nil, compensatecount=nil, retrycount=nil, retryinfo=nil)
|
294
|
+
def initialize(strategyname=nil, scaleaction=nil, actionstatus=nil, actiontime=nil, scaleinfo=nil, expectscalenum=nil, endtime=nil, strategytype=nil, specinfo=nil, compensateflag=nil, compensatecount=nil, retrycount=nil, retryinfo=nil, retryenreason=nil, retryreason=nil)
|
282
295
|
@StrategyName = strategyname
|
283
296
|
@ScaleAction = scaleaction
|
284
297
|
@ActionStatus = actionstatus
|
@@ -292,6 +305,8 @@ module TencentCloud
|
|
292
305
|
@CompensateCount = compensatecount
|
293
306
|
@RetryCount = retrycount
|
294
307
|
@RetryInfo = retryinfo
|
308
|
+
@RetryEnReason = retryenreason
|
309
|
+
@RetryReason = retryreason
|
295
310
|
end
|
296
311
|
|
297
312
|
def deserialize(params)
|
@@ -308,6 +323,8 @@ module TencentCloud
|
|
308
323
|
@CompensateCount = params['CompensateCount']
|
309
324
|
@RetryCount = params['RetryCount']
|
310
325
|
@RetryInfo = params['RetryInfo']
|
326
|
+
@RetryEnReason = params['RetryEnReason']
|
327
|
+
@RetryReason = params['RetryReason']
|
311
328
|
end
|
312
329
|
end
|
313
330
|
|
@@ -330,10 +347,37 @@ module TencentCloud
|
|
330
347
|
# @param GraceDownFlag: 优雅缩容开关
|
331
348
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
332
349
|
# @type GraceDownFlag: Boolean
|
350
|
+
# @param HardwareType: "CVM"表示规格全部使用CVM相关类型,"POD"表示规格使用容器相关类型,默认为"CVM"。
|
351
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
352
|
+
# @type HardwareType: String
|
353
|
+
# @param PayMode: "POSTPAY"表示只使用按量计费,"SPOT_FIRST"表示竞价实例优先,只有HardwareType为"HOST"时支持竞价实例优先,"POD"只支持纯按量计费。
|
354
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
355
|
+
# @type PayMode: String
|
356
|
+
# @param PostPayPercentMin: 竞价实例优先的场景下,按量计费资源数量的最低百分比,整数
|
357
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
358
|
+
# @type PostPayPercentMin: Integer
|
359
|
+
# @param ChangeToPod: 预设资源类型为HOST时,支持勾选“资源不足时切换POD”;支持取消勾选;默认不勾选(0),勾选(1)
|
360
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
361
|
+
# @type ChangeToPod: Integer
|
362
|
+
# @param GroupName: 伸缩组名
|
363
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
364
|
+
# @type GroupName: String
|
365
|
+
# @param YarnNodeLabel: 标签
|
366
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
367
|
+
# @type YarnNodeLabel: String
|
368
|
+
# @param GroupStatus: 伸缩组状态
|
369
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
370
|
+
# @type GroupStatus: Integer
|
371
|
+
# @param Parallel: 并行伸缩 0关闭;1开启
|
372
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
373
|
+
# @type Parallel: Integer
|
374
|
+
# @param EnableMNode: 是否支持MNode
|
375
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
376
|
+
# @type EnableMNode: Integer
|
333
377
|
|
334
|
-
attr_accessor :Id, :ClusterId, :ScaleLowerBound, :ScaleUpperBound, :StrategyType, :NextTimeCanScale, :GraceDownFlag
|
378
|
+
attr_accessor :Id, :ClusterId, :ScaleLowerBound, :ScaleUpperBound, :StrategyType, :NextTimeCanScale, :GraceDownFlag, :HardwareType, :PayMode, :PostPayPercentMin, :ChangeToPod, :GroupName, :YarnNodeLabel, :GroupStatus, :Parallel, :EnableMNode
|
335
379
|
|
336
|
-
def initialize(id=nil, clusterid=nil, scalelowerbound=nil, scaleupperbound=nil, strategytype=nil, nexttimecanscale=nil, gracedownflag=nil)
|
380
|
+
def initialize(id=nil, clusterid=nil, scalelowerbound=nil, scaleupperbound=nil, strategytype=nil, nexttimecanscale=nil, gracedownflag=nil, hardwaretype=nil, paymode=nil, postpaypercentmin=nil, changetopod=nil, groupname=nil, yarnnodelabel=nil, groupstatus=nil, parallel=nil, enablemnode=nil)
|
337
381
|
@Id = id
|
338
382
|
@ClusterId = clusterid
|
339
383
|
@ScaleLowerBound = scalelowerbound
|
@@ -341,6 +385,15 @@ module TencentCloud
|
|
341
385
|
@StrategyType = strategytype
|
342
386
|
@NextTimeCanScale = nexttimecanscale
|
343
387
|
@GraceDownFlag = gracedownflag
|
388
|
+
@HardwareType = hardwaretype
|
389
|
+
@PayMode = paymode
|
390
|
+
@PostPayPercentMin = postpaypercentmin
|
391
|
+
@ChangeToPod = changetopod
|
392
|
+
@GroupName = groupname
|
393
|
+
@YarnNodeLabel = yarnnodelabel
|
394
|
+
@GroupStatus = groupstatus
|
395
|
+
@Parallel = parallel
|
396
|
+
@EnableMNode = enablemnode
|
344
397
|
end
|
345
398
|
|
346
399
|
def deserialize(params)
|
@@ -351,6 +404,15 @@ module TencentCloud
|
|
351
404
|
@StrategyType = params['StrategyType']
|
352
405
|
@NextTimeCanScale = params['NextTimeCanScale']
|
353
406
|
@GraceDownFlag = params['GraceDownFlag']
|
407
|
+
@HardwareType = params['HardwareType']
|
408
|
+
@PayMode = params['PayMode']
|
409
|
+
@PostPayPercentMin = params['PostPayPercentMin']
|
410
|
+
@ChangeToPod = params['ChangeToPod']
|
411
|
+
@GroupName = params['GroupName']
|
412
|
+
@YarnNodeLabel = params['YarnNodeLabel']
|
413
|
+
@GroupStatus = params['GroupStatus']
|
414
|
+
@Parallel = params['Parallel']
|
415
|
+
@EnableMNode = params['EnableMNode']
|
354
416
|
end
|
355
417
|
end
|
356
418
|
|
@@ -1664,14 +1726,17 @@ module TencentCloud
|
|
1664
1726
|
# @type Offset: Integer
|
1665
1727
|
# @param Limit: 分页参数。最大支持100
|
1666
1728
|
# @type Limit: Integer
|
1729
|
+
# @param RecordSource: 表示是自动(0)还是托管伸缩(1)
|
1730
|
+
# @type RecordSource: Integer
|
1667
1731
|
|
1668
|
-
attr_accessor :InstanceId, :Filters, :Offset, :Limit
|
1732
|
+
attr_accessor :InstanceId, :Filters, :Offset, :Limit, :RecordSource
|
1669
1733
|
|
1670
|
-
def initialize(instanceid=nil, filters=nil, offset=nil, limit=nil)
|
1734
|
+
def initialize(instanceid=nil, filters=nil, offset=nil, limit=nil, recordsource=nil)
|
1671
1735
|
@InstanceId = instanceid
|
1672
1736
|
@Filters = filters
|
1673
1737
|
@Offset = offset
|
1674
1738
|
@Limit = limit
|
1739
|
+
@RecordSource = recordsource
|
1675
1740
|
end
|
1676
1741
|
|
1677
1742
|
def deserialize(params)
|
@@ -1686,6 +1751,7 @@ module TencentCloud
|
|
1686
1751
|
end
|
1687
1752
|
@Offset = params['Offset']
|
1688
1753
|
@Limit = params['Limit']
|
1754
|
+
@RecordSource = params['RecordSource']
|
1689
1755
|
end
|
1690
1756
|
end
|
1691
1757
|
|
@@ -1742,20 +1808,32 @@ module TencentCloud
|
|
1742
1808
|
|
1743
1809
|
# DescribeAutoScaleStrategies返回参数结构体
|
1744
1810
|
class DescribeAutoScaleStrategiesResponse < TencentCloud::Common::AbstractModel
|
1811
|
+
# @param LoadAutoScaleStrategies: 按负载伸缩规则
|
1812
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1813
|
+
# @type LoadAutoScaleStrategies: Array
|
1745
1814
|
# @param TimeBasedAutoScaleStrategies: 按时间伸缩规则
|
1746
1815
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1747
1816
|
# @type TimeBasedAutoScaleStrategies: Array
|
1748
1817
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1749
1818
|
# @type RequestId: String
|
1750
1819
|
|
1751
|
-
attr_accessor :TimeBasedAutoScaleStrategies, :RequestId
|
1820
|
+
attr_accessor :LoadAutoScaleStrategies, :TimeBasedAutoScaleStrategies, :RequestId
|
1752
1821
|
|
1753
|
-
def initialize(timebasedautoscalestrategies=nil, requestid=nil)
|
1822
|
+
def initialize(loadautoscalestrategies=nil, timebasedautoscalestrategies=nil, requestid=nil)
|
1823
|
+
@LoadAutoScaleStrategies = loadautoscalestrategies
|
1754
1824
|
@TimeBasedAutoScaleStrategies = timebasedautoscalestrategies
|
1755
1825
|
@RequestId = requestid
|
1756
1826
|
end
|
1757
1827
|
|
1758
1828
|
def deserialize(params)
|
1829
|
+
unless params['LoadAutoScaleStrategies'].nil?
|
1830
|
+
@LoadAutoScaleStrategies = []
|
1831
|
+
params['LoadAutoScaleStrategies'].each do |i|
|
1832
|
+
loadautoscalestrategy_tmp = LoadAutoScaleStrategy.new
|
1833
|
+
loadautoscalestrategy_tmp.deserialize(i)
|
1834
|
+
@LoadAutoScaleStrategies << loadautoscalestrategy_tmp
|
1835
|
+
end
|
1836
|
+
end
|
1759
1837
|
unless params['TimeBasedAutoScaleStrategies'].nil?
|
1760
1838
|
@TimeBasedAutoScaleStrategies = []
|
1761
1839
|
params['TimeBasedAutoScaleStrategies'].each do |i|
|
@@ -4776,6 +4854,204 @@ module TencentCloud
|
|
4776
4854
|
end
|
4777
4855
|
end
|
4778
4856
|
|
4857
|
+
# 自动扩缩容基于负载指标的规则
|
4858
|
+
class LoadAutoScaleStrategy < TencentCloud::Common::AbstractModel
|
4859
|
+
# @param StrategyId: 规则ID。
|
4860
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4861
|
+
# @type StrategyId: Integer
|
4862
|
+
# @param StrategyName: 规则名称。
|
4863
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4864
|
+
# @type StrategyName: String
|
4865
|
+
# @param CalmDownTime: 规则生效冷却时间。
|
4866
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4867
|
+
# @type CalmDownTime: Integer
|
4868
|
+
# @param ScaleAction: 扩缩容动作,1表示扩容,2表示缩容。
|
4869
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4870
|
+
# @type ScaleAction: Integer
|
4871
|
+
# @param ScaleNum: 每次规则生效时的扩缩容数量。
|
4872
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4873
|
+
# @type ScaleNum: Integer
|
4874
|
+
# @param LoadMetrics: 扩缩容负载指标。
|
4875
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4876
|
+
# @type LoadMetrics: String
|
4877
|
+
# @param MetricId: 规则元数据记录ID。
|
4878
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4879
|
+
# @type MetricId: Integer
|
4880
|
+
# @param StatisticPeriod: 规则统计周期,提供300s,600s,900s
|
4881
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4882
|
+
# @type StatisticPeriod: Integer
|
4883
|
+
# @param ProcessMethod: 指标处理方法,1表示MAX,2表示MIN,3表示AVG。
|
4884
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4885
|
+
# @type ProcessMethod: Integer
|
4886
|
+
# @param TriggerThreshold: 触发次数,当连续触发超过TriggerThreshold次后才开始扩缩容。
|
4887
|
+
# @type TriggerThreshold: Integer
|
4888
|
+
# @param TriggerConditions: 条件触发数组。
|
4889
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4890
|
+
# @type TriggerConditions: :class:`Tencentcloud::Emr.v20190103.models.TriggerConditions`
|
4891
|
+
# @param Priority: 规则优先级,添加时无效,默认为自增。
|
4892
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4893
|
+
# @type Priority: Integer
|
4894
|
+
# @param StrategyStatus: 规则状态,1表示启动,3表示禁用。
|
4895
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4896
|
+
# @type StrategyStatus: Integer
|
4897
|
+
# @param YarnNodeLabel: 规则扩容指定 yarn node label
|
4898
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4899
|
+
# @type YarnNodeLabel: String
|
4900
|
+
# @param PeriodValid: 规则生效的有效时间
|
4901
|
+
# @type PeriodValid: String
|
4902
|
+
# @param GraceDownFlag: 优雅缩容开关
|
4903
|
+
# @type GraceDownFlag: Boolean
|
4904
|
+
# @param GraceDownTime: 优雅缩容等待时间
|
4905
|
+
# @type GraceDownTime: Integer
|
4906
|
+
# @param Tags: 绑定标签列表
|
4907
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4908
|
+
# @type Tags: Array
|
4909
|
+
# @param ConfigGroupAssigned: 预设配置组
|
4910
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4911
|
+
# @type ConfigGroupAssigned: String
|
4912
|
+
# @param MeasureMethod: 扩容资源计算方法,"DEFAULT","INSTANCE", "CPU", "MEMORYGB"。
|
4913
|
+
# "DEFAULT"表示默认方式,与"INSTANCE"意义相同。
|
4914
|
+
# "INSTANCE"表示按照节点计算,默认方式。
|
4915
|
+
# "CPU"表示按照机器的核数计算。
|
4916
|
+
# "MEMORYGB"表示按照机器内存数计算。
|
4917
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4918
|
+
# @type MeasureMethod: String
|
4919
|
+
# @param LoadMetricsConditions: 多指标触发条件
|
4920
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4921
|
+
# @type LoadMetricsConditions: :class:`Tencentcloud::Emr.v20190103.models.LoadMetricsConditions`
|
4922
|
+
|
4923
|
+
attr_accessor :StrategyId, :StrategyName, :CalmDownTime, :ScaleAction, :ScaleNum, :LoadMetrics, :MetricId, :StatisticPeriod, :ProcessMethod, :TriggerThreshold, :TriggerConditions, :Priority, :StrategyStatus, :YarnNodeLabel, :PeriodValid, :GraceDownFlag, :GraceDownTime, :Tags, :ConfigGroupAssigned, :MeasureMethod, :LoadMetricsConditions
|
4924
|
+
|
4925
|
+
def initialize(strategyid=nil, strategyname=nil, calmdowntime=nil, scaleaction=nil, scalenum=nil, loadmetrics=nil, metricid=nil, statisticperiod=nil, processmethod=nil, triggerthreshold=nil, triggerconditions=nil, priority=nil, strategystatus=nil, yarnnodelabel=nil, periodvalid=nil, gracedownflag=nil, gracedowntime=nil, tags=nil, configgroupassigned=nil, measuremethod=nil, loadmetricsconditions=nil)
|
4926
|
+
@StrategyId = strategyid
|
4927
|
+
@StrategyName = strategyname
|
4928
|
+
@CalmDownTime = calmdowntime
|
4929
|
+
@ScaleAction = scaleaction
|
4930
|
+
@ScaleNum = scalenum
|
4931
|
+
@LoadMetrics = loadmetrics
|
4932
|
+
@MetricId = metricid
|
4933
|
+
@StatisticPeriod = statisticperiod
|
4934
|
+
@ProcessMethod = processmethod
|
4935
|
+
@TriggerThreshold = triggerthreshold
|
4936
|
+
@TriggerConditions = triggerconditions
|
4937
|
+
@Priority = priority
|
4938
|
+
@StrategyStatus = strategystatus
|
4939
|
+
@YarnNodeLabel = yarnnodelabel
|
4940
|
+
@PeriodValid = periodvalid
|
4941
|
+
@GraceDownFlag = gracedownflag
|
4942
|
+
@GraceDownTime = gracedowntime
|
4943
|
+
@Tags = tags
|
4944
|
+
@ConfigGroupAssigned = configgroupassigned
|
4945
|
+
@MeasureMethod = measuremethod
|
4946
|
+
@LoadMetricsConditions = loadmetricsconditions
|
4947
|
+
end
|
4948
|
+
|
4949
|
+
def deserialize(params)
|
4950
|
+
@StrategyId = params['StrategyId']
|
4951
|
+
@StrategyName = params['StrategyName']
|
4952
|
+
@CalmDownTime = params['CalmDownTime']
|
4953
|
+
@ScaleAction = params['ScaleAction']
|
4954
|
+
@ScaleNum = params['ScaleNum']
|
4955
|
+
@LoadMetrics = params['LoadMetrics']
|
4956
|
+
@MetricId = params['MetricId']
|
4957
|
+
@StatisticPeriod = params['StatisticPeriod']
|
4958
|
+
@ProcessMethod = params['ProcessMethod']
|
4959
|
+
@TriggerThreshold = params['TriggerThreshold']
|
4960
|
+
unless params['TriggerConditions'].nil?
|
4961
|
+
@TriggerConditions = TriggerConditions.new
|
4962
|
+
@TriggerConditions.deserialize(params['TriggerConditions'])
|
4963
|
+
end
|
4964
|
+
@Priority = params['Priority']
|
4965
|
+
@StrategyStatus = params['StrategyStatus']
|
4966
|
+
@YarnNodeLabel = params['YarnNodeLabel']
|
4967
|
+
@PeriodValid = params['PeriodValid']
|
4968
|
+
@GraceDownFlag = params['GraceDownFlag']
|
4969
|
+
@GraceDownTime = params['GraceDownTime']
|
4970
|
+
unless params['Tags'].nil?
|
4971
|
+
@Tags = []
|
4972
|
+
params['Tags'].each do |i|
|
4973
|
+
tag_tmp = Tag.new
|
4974
|
+
tag_tmp.deserialize(i)
|
4975
|
+
@Tags << tag_tmp
|
4976
|
+
end
|
4977
|
+
end
|
4978
|
+
@ConfigGroupAssigned = params['ConfigGroupAssigned']
|
4979
|
+
@MeasureMethod = params['MeasureMethod']
|
4980
|
+
unless params['LoadMetricsConditions'].nil?
|
4981
|
+
@LoadMetricsConditions = LoadMetricsConditions.new
|
4982
|
+
@LoadMetricsConditions.deserialize(params['LoadMetricsConditions'])
|
4983
|
+
end
|
4984
|
+
end
|
4985
|
+
end
|
4986
|
+
|
4987
|
+
# 负载指标条件
|
4988
|
+
class LoadMetricsCondition < TencentCloud::Common::AbstractModel
|
4989
|
+
# @param StatisticPeriod: 规则统计周期,提供1min,3min,5min。
|
4990
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4991
|
+
# @type StatisticPeriod: Integer
|
4992
|
+
# @param TriggerThreshold: 触发次数,当连续触发超过TriggerThreshold次后才开始扩缩容。
|
4993
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4994
|
+
# @type TriggerThreshold: Integer
|
4995
|
+
# @param LoadMetrics: 扩缩容负载指标。
|
4996
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4997
|
+
# @type LoadMetrics: String
|
4998
|
+
# @param MetricId: 规则元数据记录ID。
|
4999
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5000
|
+
# @type MetricId: Integer
|
5001
|
+
# @param Conditions: 触发条件
|
5002
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5003
|
+
# @type Conditions: Array
|
5004
|
+
|
5005
|
+
attr_accessor :StatisticPeriod, :TriggerThreshold, :LoadMetrics, :MetricId, :Conditions
|
5006
|
+
|
5007
|
+
def initialize(statisticperiod=nil, triggerthreshold=nil, loadmetrics=nil, metricid=nil, conditions=nil)
|
5008
|
+
@StatisticPeriod = statisticperiod
|
5009
|
+
@TriggerThreshold = triggerthreshold
|
5010
|
+
@LoadMetrics = loadmetrics
|
5011
|
+
@MetricId = metricid
|
5012
|
+
@Conditions = conditions
|
5013
|
+
end
|
5014
|
+
|
5015
|
+
def deserialize(params)
|
5016
|
+
@StatisticPeriod = params['StatisticPeriod']
|
5017
|
+
@TriggerThreshold = params['TriggerThreshold']
|
5018
|
+
@LoadMetrics = params['LoadMetrics']
|
5019
|
+
@MetricId = params['MetricId']
|
5020
|
+
unless params['Conditions'].nil?
|
5021
|
+
@Conditions = []
|
5022
|
+
params['Conditions'].each do |i|
|
5023
|
+
triggercondition_tmp = TriggerCondition.new
|
5024
|
+
triggercondition_tmp.deserialize(i)
|
5025
|
+
@Conditions << triggercondition_tmp
|
5026
|
+
end
|
5027
|
+
end
|
5028
|
+
end
|
5029
|
+
end
|
5030
|
+
|
5031
|
+
# 负载指标
|
5032
|
+
class LoadMetricsConditions < TencentCloud::Common::AbstractModel
|
5033
|
+
# @param LoadMetrics: 触发规则条件
|
5034
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5035
|
+
# @type LoadMetrics: Array
|
5036
|
+
|
5037
|
+
attr_accessor :LoadMetrics
|
5038
|
+
|
5039
|
+
def initialize(loadmetrics=nil)
|
5040
|
+
@LoadMetrics = loadmetrics
|
5041
|
+
end
|
5042
|
+
|
5043
|
+
def deserialize(params)
|
5044
|
+
unless params['LoadMetrics'].nil?
|
5045
|
+
@LoadMetrics = []
|
5046
|
+
params['LoadMetrics'].each do |i|
|
5047
|
+
loadmetricscondition_tmp = LoadMetricsCondition.new
|
5048
|
+
loadmetricscondition_tmp.deserialize(i)
|
5049
|
+
@LoadMetrics << loadmetricscondition_tmp
|
5050
|
+
end
|
5051
|
+
end
|
5052
|
+
end
|
5053
|
+
end
|
5054
|
+
|
4779
5055
|
# 登录设置
|
4780
5056
|
class LoginSettings < TencentCloud::Common::AbstractModel
|
4781
5057
|
# @param Password: 实例登录密码,8-16个字符,包含大写字母、小写字母、数字和特殊字符四种,特殊符号仅支持!@%^*,密码第一位不能为特殊字符
|
@@ -4851,16 +5127,19 @@ module TencentCloud
|
|
4851
5127
|
# @type InstanceId: String
|
4852
5128
|
# @param StrategyType: 自动扩缩容规则类型,1表示按负载指标扩缩容,2表示按时间扩缩容。
|
4853
5129
|
# @type StrategyType: Integer
|
5130
|
+
# @param LoadAutoScaleStrategies: 按负载扩缩容的指标。
|
5131
|
+
# @type LoadAutoScaleStrategies: Array
|
4854
5132
|
# @param TimeAutoScaleStrategies: 按时间扩缩容的规则。
|
4855
5133
|
# @type TimeAutoScaleStrategies: Array
|
4856
5134
|
# @param GroupId: 伸缩组Id
|
4857
5135
|
# @type GroupId: Integer
|
4858
5136
|
|
4859
|
-
attr_accessor :InstanceId, :StrategyType, :TimeAutoScaleStrategies, :GroupId
|
5137
|
+
attr_accessor :InstanceId, :StrategyType, :LoadAutoScaleStrategies, :TimeAutoScaleStrategies, :GroupId
|
4860
5138
|
|
4861
|
-
def initialize(instanceid=nil, strategytype=nil, timeautoscalestrategies=nil, groupid=nil)
|
5139
|
+
def initialize(instanceid=nil, strategytype=nil, loadautoscalestrategies=nil, timeautoscalestrategies=nil, groupid=nil)
|
4862
5140
|
@InstanceId = instanceid
|
4863
5141
|
@StrategyType = strategytype
|
5142
|
+
@LoadAutoScaleStrategies = loadautoscalestrategies
|
4864
5143
|
@TimeAutoScaleStrategies = timeautoscalestrategies
|
4865
5144
|
@GroupId = groupid
|
4866
5145
|
end
|
@@ -4868,6 +5147,14 @@ module TencentCloud
|
|
4868
5147
|
def deserialize(params)
|
4869
5148
|
@InstanceId = params['InstanceId']
|
4870
5149
|
@StrategyType = params['StrategyType']
|
5150
|
+
unless params['LoadAutoScaleStrategies'].nil?
|
5151
|
+
@LoadAutoScaleStrategies = []
|
5152
|
+
params['LoadAutoScaleStrategies'].each do |i|
|
5153
|
+
loadautoscalestrategy_tmp = LoadAutoScaleStrategy.new
|
5154
|
+
loadautoscalestrategy_tmp.deserialize(i)
|
5155
|
+
@LoadAutoScaleStrategies << loadautoscalestrategy_tmp
|
5156
|
+
end
|
5157
|
+
end
|
4871
5158
|
unless params['TimeAutoScaleStrategies'].nil?
|
4872
5159
|
@TimeAutoScaleStrategies = []
|
4873
5160
|
params['TimeAutoScaleStrategies'].each do |i|
|
@@ -6846,7 +7133,7 @@ module TencentCloud
|
|
6846
7133
|
|
6847
7134
|
# 定时伸缩任务策略
|
6848
7135
|
class RepeatStrategy < TencentCloud::Common::AbstractModel
|
6849
|
-
# @param RepeatType: 取值范围"DAY","DOW","DOM","NONE"
|
7136
|
+
# @param RepeatType: 取值范围"DAY","DOW","DOM","NONE",分别表示按天重复、按周重复、按月重复和一次执行。必须填写
|
6850
7137
|
# @type RepeatType: String
|
6851
7138
|
# @param DayRepeat: 按天重复规则,当RepeatType为"DAY"时有效
|
6852
7139
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
@@ -6860,7 +7147,7 @@ module TencentCloud
|
|
6860
7147
|
# @param NotRepeat: 一次执行规则,当RepeatType为"NONE"时有效
|
6861
7148
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6862
7149
|
# @type NotRepeat: :class:`Tencentcloud::Emr.v20190103.models.NotRepeatStrategy`
|
6863
|
-
# @param Expire: 规则过期时间,超过该时间后,规则将自动置为暂停状态,形式为"2020-07-23 00:00:00"
|
7150
|
+
# @param Expire: 规则过期时间,超过该时间后,规则将自动置为暂停状态,形式为"2020-07-23 00:00:00"。必须填写
|
6864
7151
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
6865
7152
|
# @type Expire: String
|
6866
7153
|
|
@@ -8243,7 +8530,7 @@ module TencentCloud
|
|
8243
8530
|
# @param ScaleNum: 扩缩容数量。
|
8244
8531
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
8245
8532
|
# @type ScaleNum: Integer
|
8246
|
-
# @param StrategyStatus: 规则状态,1表示有效,2表示无效,3
|
8533
|
+
# @param StrategyStatus: 规则状态,1表示有效,2表示无效,3表示暂停。必须填写
|
8247
8534
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
8248
8535
|
# @type StrategyStatus: Integer
|
8249
8536
|
# @param Priority: 规则优先级,越小越高。
|
@@ -8283,7 +8570,7 @@ module TencentCloud
|
|
8283
8570
|
# @param MaxUse: 最长使用时间, 秒数,最短1小时,最长24小时
|
8284
8571
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
8285
8572
|
# @type MaxUse: Integer
|
8286
|
-
# @param SoftDeployInfo:
|
8573
|
+
# @param SoftDeployInfo: 节点部署服务列表。部署服务仅填写HDFS、YARN。[组件名对应的映射关系表](https://cloud.tencent.com/document/product/589/98760)
|
8287
8574
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
8288
8575
|
# @type SoftDeployInfo: Array
|
8289
8576
|
# @param ServiceNodeInfo: 启动进程列表。
|
@@ -8401,6 +8688,51 @@ module TencentCloud
|
|
8401
8688
|
end
|
8402
8689
|
end
|
8403
8690
|
|
8691
|
+
# 规则触发条件
|
8692
|
+
class TriggerCondition < TencentCloud::Common::AbstractModel
|
8693
|
+
# @param CompareMethod: 条件比较方法,1表示大于,2表示小于,3表示大于等于,4表示小于等于。
|
8694
|
+
# @type CompareMethod: Integer
|
8695
|
+
# @param Threshold: 条件阈值。
|
8696
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8697
|
+
# @type Threshold: Float
|
8698
|
+
|
8699
|
+
attr_accessor :CompareMethod, :Threshold
|
8700
|
+
|
8701
|
+
def initialize(comparemethod=nil, threshold=nil)
|
8702
|
+
@CompareMethod = comparemethod
|
8703
|
+
@Threshold = threshold
|
8704
|
+
end
|
8705
|
+
|
8706
|
+
def deserialize(params)
|
8707
|
+
@CompareMethod = params['CompareMethod']
|
8708
|
+
@Threshold = params['Threshold']
|
8709
|
+
end
|
8710
|
+
end
|
8711
|
+
|
8712
|
+
# 规则触发条件数组
|
8713
|
+
class TriggerConditions < TencentCloud::Common::AbstractModel
|
8714
|
+
# @param Conditions: 规则触发条件数组。
|
8715
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8716
|
+
# @type Conditions: Array
|
8717
|
+
|
8718
|
+
attr_accessor :Conditions
|
8719
|
+
|
8720
|
+
def initialize(conditions=nil)
|
8721
|
+
@Conditions = conditions
|
8722
|
+
end
|
8723
|
+
|
8724
|
+
def deserialize(params)
|
8725
|
+
unless params['Conditions'].nil?
|
8726
|
+
@Conditions = []
|
8727
|
+
params['Conditions'].each do |i|
|
8728
|
+
triggercondition_tmp = TriggerCondition.new
|
8729
|
+
triggercondition_tmp.deserialize(i)
|
8730
|
+
@Conditions << triggercondition_tmp
|
8731
|
+
end
|
8732
|
+
end
|
8733
|
+
end
|
8734
|
+
end
|
8735
|
+
|
8404
8736
|
# 变配资源规格
|
8405
8737
|
class UpdateInstanceSettings < TencentCloud::Common::AbstractModel
|
8406
8738
|
# @param Memory: 内存容量,单位为G
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-emr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.853
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|