tencentcloud-sdk-python 3.0.1177__py2.py3-none-any.whl → 3.0.1178__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tencentcloud/__init__.py +1 -1
- tencentcloud/aiart/v20221229/aiart_client.py +24 -0
- tencentcloud/aiart/v20221229/models.py +163 -0
- tencentcloud/cls/v20201016/models.py +29 -0
- tencentcloud/cwp/v20180228/cwp_client.py +0 -25
- tencentcloud/cwp/v20180228/models.py +0 -118
- tencentcloud/emr/v20190103/models.py +727 -5
- tencentcloud/ess/v20201111/models.py +9 -0
- tencentcloud/essbasic/v20210526/models.py +2 -1
- tencentcloud/ims/v20201229/ims_client.py +2 -2
- tencentcloud/ioa/v20220601/models.py +168 -142
- tencentcloud/mps/v20190612/models.py +96 -25
- tencentcloud/ocr/v20181119/models.py +24 -0
- tencentcloud/ssl/v20191205/models.py +124 -0
- tencentcloud/ssl/v20191205/ssl_client.py +23 -0
- tencentcloud/tdmq/v20200217/models.py +182 -1
- tencentcloud/vclm/__init__.py +0 -0
- tencentcloud/vclm/v20240523/__init__.py +0 -0
- tencentcloud/vclm/v20240523/errorcodes.py +198 -0
- tencentcloud/vclm/v20240523/models.py +1028 -0
- tencentcloud/vclm/v20240523/vclm_client.py +187 -0
- tencentcloud/vdb/v20230616/models.py +26 -0
- {tencentcloud_sdk_python-3.0.1177.dist-info → tencentcloud_sdk_python-3.0.1178.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1177.dist-info → tencentcloud_sdk_python-3.0.1178.dist-info}/RECORD +27 -22
- {tencentcloud_sdk_python-3.0.1177.dist-info → tencentcloud_sdk_python-3.0.1178.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1177.dist-info → tencentcloud_sdk_python-3.0.1178.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1177.dist-info → tencentcloud_sdk_python-3.0.1178.dist-info}/top_level.txt +0 -0
@@ -27,13 +27,16 @@ class AddMetricScaleStrategyRequest(AbstractModel):
|
|
27
27
|
r"""
|
28
28
|
:param _InstanceId: 实例ID。
|
29
29
|
:type InstanceId: str
|
30
|
-
:param _StrategyType: 1表示按负载规则扩容,2
|
30
|
+
:param _StrategyType: 1表示按负载规则扩容,2表示按时间规则扩容。必须填写,并且和下面的规则策略匹配
|
31
31
|
:type StrategyType: int
|
32
|
+
:param _LoadAutoScaleStrategy: 按负载扩容的规则。
|
33
|
+
:type LoadAutoScaleStrategy: :class:`tencentcloud.emr.v20190103.models.LoadAutoScaleStrategy`
|
32
34
|
:param _TimeAutoScaleStrategy: 按时间扩缩容的规则。
|
33
35
|
:type TimeAutoScaleStrategy: :class:`tencentcloud.emr.v20190103.models.TimeAutoScaleStrategy`
|
34
36
|
"""
|
35
37
|
self._InstanceId = None
|
36
38
|
self._StrategyType = None
|
39
|
+
self._LoadAutoScaleStrategy = None
|
37
40
|
self._TimeAutoScaleStrategy = None
|
38
41
|
|
39
42
|
@property
|
@@ -52,6 +55,14 @@ class AddMetricScaleStrategyRequest(AbstractModel):
|
|
52
55
|
def StrategyType(self, StrategyType):
|
53
56
|
self._StrategyType = StrategyType
|
54
57
|
|
58
|
+
@property
|
59
|
+
def LoadAutoScaleStrategy(self):
|
60
|
+
return self._LoadAutoScaleStrategy
|
61
|
+
|
62
|
+
@LoadAutoScaleStrategy.setter
|
63
|
+
def LoadAutoScaleStrategy(self, LoadAutoScaleStrategy):
|
64
|
+
self._LoadAutoScaleStrategy = LoadAutoScaleStrategy
|
65
|
+
|
55
66
|
@property
|
56
67
|
def TimeAutoScaleStrategy(self):
|
57
68
|
return self._TimeAutoScaleStrategy
|
@@ -64,6 +75,9 @@ class AddMetricScaleStrategyRequest(AbstractModel):
|
|
64
75
|
def _deserialize(self, params):
|
65
76
|
self._InstanceId = params.get("InstanceId")
|
66
77
|
self._StrategyType = params.get("StrategyType")
|
78
|
+
if params.get("LoadAutoScaleStrategy") is not None:
|
79
|
+
self._LoadAutoScaleStrategy = LoadAutoScaleStrategy()
|
80
|
+
self._LoadAutoScaleStrategy._deserialize(params.get("LoadAutoScaleStrategy"))
|
67
81
|
if params.get("TimeAutoScaleStrategy") is not None:
|
68
82
|
self._TimeAutoScaleStrategy = TimeAutoScaleStrategy()
|
69
83
|
self._TimeAutoScaleStrategy._deserialize(params.get("TimeAutoScaleStrategy"))
|
@@ -537,6 +551,12 @@ class AutoScaleRecord(AbstractModel):
|
|
537
551
|
:param _RetryInfo: 重试信息
|
538
552
|
注意:此字段可能返回 null,表示取不到有效值。
|
539
553
|
:type RetryInfo: str
|
554
|
+
:param _RetryEnReason: 重试英文描述
|
555
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
556
|
+
:type RetryEnReason: str
|
557
|
+
:param _RetryReason: 重试描述
|
558
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
559
|
+
:type RetryReason: str
|
540
560
|
"""
|
541
561
|
self._StrategyName = None
|
542
562
|
self._ScaleAction = None
|
@@ -551,6 +571,8 @@ class AutoScaleRecord(AbstractModel):
|
|
551
571
|
self._CompensateCount = None
|
552
572
|
self._RetryCount = None
|
553
573
|
self._RetryInfo = None
|
574
|
+
self._RetryEnReason = None
|
575
|
+
self._RetryReason = None
|
554
576
|
|
555
577
|
@property
|
556
578
|
def StrategyName(self):
|
@@ -656,6 +678,22 @@ class AutoScaleRecord(AbstractModel):
|
|
656
678
|
def RetryInfo(self, RetryInfo):
|
657
679
|
self._RetryInfo = RetryInfo
|
658
680
|
|
681
|
+
@property
|
682
|
+
def RetryEnReason(self):
|
683
|
+
return self._RetryEnReason
|
684
|
+
|
685
|
+
@RetryEnReason.setter
|
686
|
+
def RetryEnReason(self, RetryEnReason):
|
687
|
+
self._RetryEnReason = RetryEnReason
|
688
|
+
|
689
|
+
@property
|
690
|
+
def RetryReason(self):
|
691
|
+
return self._RetryReason
|
692
|
+
|
693
|
+
@RetryReason.setter
|
694
|
+
def RetryReason(self, RetryReason):
|
695
|
+
self._RetryReason = RetryReason
|
696
|
+
|
659
697
|
|
660
698
|
def _deserialize(self, params):
|
661
699
|
self._StrategyName = params.get("StrategyName")
|
@@ -671,6 +709,8 @@ class AutoScaleRecord(AbstractModel):
|
|
671
709
|
self._CompensateCount = params.get("CompensateCount")
|
672
710
|
self._RetryCount = params.get("RetryCount")
|
673
711
|
self._RetryInfo = params.get("RetryInfo")
|
712
|
+
self._RetryEnReason = params.get("RetryEnReason")
|
713
|
+
self._RetryReason = params.get("RetryReason")
|
674
714
|
memeber_set = set(params.keys())
|
675
715
|
for name, value in vars(self).items():
|
676
716
|
property_name = name[1:]
|
@@ -705,6 +745,33 @@ class AutoScaleResourceConf(AbstractModel):
|
|
705
745
|
:param _GraceDownFlag: 优雅缩容开关
|
706
746
|
注意:此字段可能返回 null,表示取不到有效值。
|
707
747
|
:type GraceDownFlag: bool
|
748
|
+
:param _HardwareType: "CVM"表示规格全部使用CVM相关类型,"POD"表示规格使用容器相关类型,默认为"CVM"。
|
749
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
750
|
+
:type HardwareType: str
|
751
|
+
:param _PayMode: "POSTPAY"表示只使用按量计费,"SPOT_FIRST"表示竞价实例优先,只有HardwareType为"HOST"时支持竞价实例优先,"POD"只支持纯按量计费。
|
752
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
753
|
+
:type PayMode: str
|
754
|
+
:param _PostPayPercentMin: 竞价实例优先的场景下,按量计费资源数量的最低百分比,整数
|
755
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
756
|
+
:type PostPayPercentMin: int
|
757
|
+
:param _ChangeToPod: 预设资源类型为HOST时,支持勾选“资源不足时切换POD”;支持取消勾选;默认不勾选(0),勾选(1)
|
758
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
759
|
+
:type ChangeToPod: int
|
760
|
+
:param _GroupName: 伸缩组名
|
761
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
762
|
+
:type GroupName: str
|
763
|
+
:param _YarnNodeLabel: 标签
|
764
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
765
|
+
:type YarnNodeLabel: str
|
766
|
+
:param _GroupStatus: 伸缩组状态
|
767
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
768
|
+
:type GroupStatus: int
|
769
|
+
:param _Parallel: 并行伸缩 0关闭;1开启
|
770
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
771
|
+
:type Parallel: int
|
772
|
+
:param _EnableMNode: 是否支持MNode
|
773
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
774
|
+
:type EnableMNode: int
|
708
775
|
"""
|
709
776
|
self._Id = None
|
710
777
|
self._ClusterId = None
|
@@ -713,6 +780,15 @@ class AutoScaleResourceConf(AbstractModel):
|
|
713
780
|
self._StrategyType = None
|
714
781
|
self._NextTimeCanScale = None
|
715
782
|
self._GraceDownFlag = None
|
783
|
+
self._HardwareType = None
|
784
|
+
self._PayMode = None
|
785
|
+
self._PostPayPercentMin = None
|
786
|
+
self._ChangeToPod = None
|
787
|
+
self._GroupName = None
|
788
|
+
self._YarnNodeLabel = None
|
789
|
+
self._GroupStatus = None
|
790
|
+
self._Parallel = None
|
791
|
+
self._EnableMNode = None
|
716
792
|
|
717
793
|
@property
|
718
794
|
def Id(self):
|
@@ -770,6 +846,78 @@ class AutoScaleResourceConf(AbstractModel):
|
|
770
846
|
def GraceDownFlag(self, GraceDownFlag):
|
771
847
|
self._GraceDownFlag = GraceDownFlag
|
772
848
|
|
849
|
+
@property
|
850
|
+
def HardwareType(self):
|
851
|
+
return self._HardwareType
|
852
|
+
|
853
|
+
@HardwareType.setter
|
854
|
+
def HardwareType(self, HardwareType):
|
855
|
+
self._HardwareType = HardwareType
|
856
|
+
|
857
|
+
@property
|
858
|
+
def PayMode(self):
|
859
|
+
return self._PayMode
|
860
|
+
|
861
|
+
@PayMode.setter
|
862
|
+
def PayMode(self, PayMode):
|
863
|
+
self._PayMode = PayMode
|
864
|
+
|
865
|
+
@property
|
866
|
+
def PostPayPercentMin(self):
|
867
|
+
return self._PostPayPercentMin
|
868
|
+
|
869
|
+
@PostPayPercentMin.setter
|
870
|
+
def PostPayPercentMin(self, PostPayPercentMin):
|
871
|
+
self._PostPayPercentMin = PostPayPercentMin
|
872
|
+
|
873
|
+
@property
|
874
|
+
def ChangeToPod(self):
|
875
|
+
return self._ChangeToPod
|
876
|
+
|
877
|
+
@ChangeToPod.setter
|
878
|
+
def ChangeToPod(self, ChangeToPod):
|
879
|
+
self._ChangeToPod = ChangeToPod
|
880
|
+
|
881
|
+
@property
|
882
|
+
def GroupName(self):
|
883
|
+
return self._GroupName
|
884
|
+
|
885
|
+
@GroupName.setter
|
886
|
+
def GroupName(self, GroupName):
|
887
|
+
self._GroupName = GroupName
|
888
|
+
|
889
|
+
@property
|
890
|
+
def YarnNodeLabel(self):
|
891
|
+
return self._YarnNodeLabel
|
892
|
+
|
893
|
+
@YarnNodeLabel.setter
|
894
|
+
def YarnNodeLabel(self, YarnNodeLabel):
|
895
|
+
self._YarnNodeLabel = YarnNodeLabel
|
896
|
+
|
897
|
+
@property
|
898
|
+
def GroupStatus(self):
|
899
|
+
return self._GroupStatus
|
900
|
+
|
901
|
+
@GroupStatus.setter
|
902
|
+
def GroupStatus(self, GroupStatus):
|
903
|
+
self._GroupStatus = GroupStatus
|
904
|
+
|
905
|
+
@property
|
906
|
+
def Parallel(self):
|
907
|
+
return self._Parallel
|
908
|
+
|
909
|
+
@Parallel.setter
|
910
|
+
def Parallel(self, Parallel):
|
911
|
+
self._Parallel = Parallel
|
912
|
+
|
913
|
+
@property
|
914
|
+
def EnableMNode(self):
|
915
|
+
return self._EnableMNode
|
916
|
+
|
917
|
+
@EnableMNode.setter
|
918
|
+
def EnableMNode(self, EnableMNode):
|
919
|
+
self._EnableMNode = EnableMNode
|
920
|
+
|
773
921
|
|
774
922
|
def _deserialize(self, params):
|
775
923
|
self._Id = params.get("Id")
|
@@ -779,6 +927,15 @@ class AutoScaleResourceConf(AbstractModel):
|
|
779
927
|
self._StrategyType = params.get("StrategyType")
|
780
928
|
self._NextTimeCanScale = params.get("NextTimeCanScale")
|
781
929
|
self._GraceDownFlag = params.get("GraceDownFlag")
|
930
|
+
self._HardwareType = params.get("HardwareType")
|
931
|
+
self._PayMode = params.get("PayMode")
|
932
|
+
self._PostPayPercentMin = params.get("PostPayPercentMin")
|
933
|
+
self._ChangeToPod = params.get("ChangeToPod")
|
934
|
+
self._GroupName = params.get("GroupName")
|
935
|
+
self._YarnNodeLabel = params.get("YarnNodeLabel")
|
936
|
+
self._GroupStatus = params.get("GroupStatus")
|
937
|
+
self._Parallel = params.get("Parallel")
|
938
|
+
self._EnableMNode = params.get("EnableMNode")
|
782
939
|
memeber_set = set(params.keys())
|
783
940
|
for name, value in vars(self).items():
|
784
941
|
property_name = name[1:]
|
@@ -3631,11 +3788,14 @@ class DescribeAutoScaleRecordsRequest(AbstractModel):
|
|
3631
3788
|
:type Offset: int
|
3632
3789
|
:param _Limit: 分页参数。最大支持100
|
3633
3790
|
:type Limit: int
|
3791
|
+
:param _RecordSource: 表示是自动(0)还是托管伸缩(1)
|
3792
|
+
:type RecordSource: int
|
3634
3793
|
"""
|
3635
3794
|
self._InstanceId = None
|
3636
3795
|
self._Filters = None
|
3637
3796
|
self._Offset = None
|
3638
3797
|
self._Limit = None
|
3798
|
+
self._RecordSource = None
|
3639
3799
|
|
3640
3800
|
@property
|
3641
3801
|
def InstanceId(self):
|
@@ -3669,6 +3829,14 @@ class DescribeAutoScaleRecordsRequest(AbstractModel):
|
|
3669
3829
|
def Limit(self, Limit):
|
3670
3830
|
self._Limit = Limit
|
3671
3831
|
|
3832
|
+
@property
|
3833
|
+
def RecordSource(self):
|
3834
|
+
return self._RecordSource
|
3835
|
+
|
3836
|
+
@RecordSource.setter
|
3837
|
+
def RecordSource(self, RecordSource):
|
3838
|
+
self._RecordSource = RecordSource
|
3839
|
+
|
3672
3840
|
|
3673
3841
|
def _deserialize(self, params):
|
3674
3842
|
self._InstanceId = params.get("InstanceId")
|
@@ -3680,6 +3848,7 @@ class DescribeAutoScaleRecordsRequest(AbstractModel):
|
|
3680
3848
|
self._Filters.append(obj)
|
3681
3849
|
self._Offset = params.get("Offset")
|
3682
3850
|
self._Limit = params.get("Limit")
|
3851
|
+
self._RecordSource = params.get("RecordSource")
|
3683
3852
|
memeber_set = set(params.keys())
|
3684
3853
|
for name, value in vars(self).items():
|
3685
3854
|
property_name = name[1:]
|
@@ -3796,15 +3965,27 @@ class DescribeAutoScaleStrategiesResponse(AbstractModel):
|
|
3796
3965
|
|
3797
3966
|
def __init__(self):
|
3798
3967
|
r"""
|
3968
|
+
:param _LoadAutoScaleStrategies: 按负载伸缩规则
|
3969
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3970
|
+
:type LoadAutoScaleStrategies: list of LoadAutoScaleStrategy
|
3799
3971
|
:param _TimeBasedAutoScaleStrategies: 按时间伸缩规则
|
3800
3972
|
注意:此字段可能返回 null,表示取不到有效值。
|
3801
3973
|
:type TimeBasedAutoScaleStrategies: list of TimeAutoScaleStrategy
|
3802
3974
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3803
3975
|
:type RequestId: str
|
3804
3976
|
"""
|
3977
|
+
self._LoadAutoScaleStrategies = None
|
3805
3978
|
self._TimeBasedAutoScaleStrategies = None
|
3806
3979
|
self._RequestId = None
|
3807
3980
|
|
3981
|
+
@property
|
3982
|
+
def LoadAutoScaleStrategies(self):
|
3983
|
+
return self._LoadAutoScaleStrategies
|
3984
|
+
|
3985
|
+
@LoadAutoScaleStrategies.setter
|
3986
|
+
def LoadAutoScaleStrategies(self, LoadAutoScaleStrategies):
|
3987
|
+
self._LoadAutoScaleStrategies = LoadAutoScaleStrategies
|
3988
|
+
|
3808
3989
|
@property
|
3809
3990
|
def TimeBasedAutoScaleStrategies(self):
|
3810
3991
|
return self._TimeBasedAutoScaleStrategies
|
@@ -3823,6 +4004,12 @@ class DescribeAutoScaleStrategiesResponse(AbstractModel):
|
|
3823
4004
|
|
3824
4005
|
|
3825
4006
|
def _deserialize(self, params):
|
4007
|
+
if params.get("LoadAutoScaleStrategies") is not None:
|
4008
|
+
self._LoadAutoScaleStrategies = []
|
4009
|
+
for item in params.get("LoadAutoScaleStrategies"):
|
4010
|
+
obj = LoadAutoScaleStrategy()
|
4011
|
+
obj._deserialize(item)
|
4012
|
+
self._LoadAutoScaleStrategies.append(obj)
|
3826
4013
|
if params.get("TimeBasedAutoScaleStrategies") is not None:
|
3827
4014
|
self._TimeBasedAutoScaleStrategies = []
|
3828
4015
|
for item in params.get("TimeBasedAutoScaleStrategies"):
|
@@ -10342,6 +10529,439 @@ class KeyValue(AbstractModel):
|
|
10342
10529
|
|
10343
10530
|
|
10344
10531
|
|
10532
|
+
class LoadAutoScaleStrategy(AbstractModel):
|
10533
|
+
"""自动扩缩容基于负载指标的规则
|
10534
|
+
|
10535
|
+
"""
|
10536
|
+
|
10537
|
+
def __init__(self):
|
10538
|
+
r"""
|
10539
|
+
:param _StrategyId: 规则ID。
|
10540
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10541
|
+
:type StrategyId: int
|
10542
|
+
:param _StrategyName: 规则名称。
|
10543
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10544
|
+
:type StrategyName: str
|
10545
|
+
:param _CalmDownTime: 规则生效冷却时间。
|
10546
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10547
|
+
:type CalmDownTime: int
|
10548
|
+
:param _ScaleAction: 扩缩容动作,1表示扩容,2表示缩容。
|
10549
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10550
|
+
:type ScaleAction: int
|
10551
|
+
:param _ScaleNum: 每次规则生效时的扩缩容数量。
|
10552
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10553
|
+
:type ScaleNum: int
|
10554
|
+
:param _LoadMetrics: 扩缩容负载指标。
|
10555
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10556
|
+
:type LoadMetrics: str
|
10557
|
+
:param _MetricId: 规则元数据记录ID。
|
10558
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10559
|
+
:type MetricId: int
|
10560
|
+
:param _StatisticPeriod: 规则统计周期,提供300s,600s,900s
|
10561
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10562
|
+
:type StatisticPeriod: int
|
10563
|
+
:param _ProcessMethod: 指标处理方法,1表示MAX,2表示MIN,3表示AVG。
|
10564
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10565
|
+
:type ProcessMethod: int
|
10566
|
+
:param _TriggerThreshold: 触发次数,当连续触发超过TriggerThreshold次后才开始扩缩容。
|
10567
|
+
:type TriggerThreshold: int
|
10568
|
+
:param _TriggerConditions: 条件触发数组。
|
10569
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10570
|
+
:type TriggerConditions: :class:`tencentcloud.emr.v20190103.models.TriggerConditions`
|
10571
|
+
:param _Priority: 规则优先级,添加时无效,默认为自增。
|
10572
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10573
|
+
:type Priority: int
|
10574
|
+
:param _StrategyStatus: 规则状态,1表示启动,3表示禁用。
|
10575
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10576
|
+
:type StrategyStatus: int
|
10577
|
+
:param _YarnNodeLabel: 规则扩容指定 yarn node label
|
10578
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10579
|
+
:type YarnNodeLabel: str
|
10580
|
+
:param _PeriodValid: 规则生效的有效时间
|
10581
|
+
:type PeriodValid: str
|
10582
|
+
:param _GraceDownFlag: 优雅缩容开关
|
10583
|
+
:type GraceDownFlag: bool
|
10584
|
+
:param _GraceDownTime: 优雅缩容等待时间
|
10585
|
+
:type GraceDownTime: int
|
10586
|
+
:param _Tags: 绑定标签列表
|
10587
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10588
|
+
:type Tags: list of Tag
|
10589
|
+
:param _ConfigGroupAssigned: 预设配置组
|
10590
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10591
|
+
:type ConfigGroupAssigned: str
|
10592
|
+
:param _MeasureMethod: 扩容资源计算方法,"DEFAULT","INSTANCE", "CPU", "MEMORYGB"。
|
10593
|
+
"DEFAULT"表示默认方式,与"INSTANCE"意义相同。
|
10594
|
+
"INSTANCE"表示按照节点计算,默认方式。
|
10595
|
+
"CPU"表示按照机器的核数计算。
|
10596
|
+
"MEMORYGB"表示按照机器内存数计算。
|
10597
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10598
|
+
:type MeasureMethod: str
|
10599
|
+
:param _LoadMetricsConditions: 多指标触发条件
|
10600
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10601
|
+
:type LoadMetricsConditions: :class:`tencentcloud.emr.v20190103.models.LoadMetricsConditions`
|
10602
|
+
"""
|
10603
|
+
self._StrategyId = None
|
10604
|
+
self._StrategyName = None
|
10605
|
+
self._CalmDownTime = None
|
10606
|
+
self._ScaleAction = None
|
10607
|
+
self._ScaleNum = None
|
10608
|
+
self._LoadMetrics = None
|
10609
|
+
self._MetricId = None
|
10610
|
+
self._StatisticPeriod = None
|
10611
|
+
self._ProcessMethod = None
|
10612
|
+
self._TriggerThreshold = None
|
10613
|
+
self._TriggerConditions = None
|
10614
|
+
self._Priority = None
|
10615
|
+
self._StrategyStatus = None
|
10616
|
+
self._YarnNodeLabel = None
|
10617
|
+
self._PeriodValid = None
|
10618
|
+
self._GraceDownFlag = None
|
10619
|
+
self._GraceDownTime = None
|
10620
|
+
self._Tags = None
|
10621
|
+
self._ConfigGroupAssigned = None
|
10622
|
+
self._MeasureMethod = None
|
10623
|
+
self._LoadMetricsConditions = None
|
10624
|
+
|
10625
|
+
@property
|
10626
|
+
def StrategyId(self):
|
10627
|
+
return self._StrategyId
|
10628
|
+
|
10629
|
+
@StrategyId.setter
|
10630
|
+
def StrategyId(self, StrategyId):
|
10631
|
+
self._StrategyId = StrategyId
|
10632
|
+
|
10633
|
+
@property
|
10634
|
+
def StrategyName(self):
|
10635
|
+
return self._StrategyName
|
10636
|
+
|
10637
|
+
@StrategyName.setter
|
10638
|
+
def StrategyName(self, StrategyName):
|
10639
|
+
self._StrategyName = StrategyName
|
10640
|
+
|
10641
|
+
@property
|
10642
|
+
def CalmDownTime(self):
|
10643
|
+
return self._CalmDownTime
|
10644
|
+
|
10645
|
+
@CalmDownTime.setter
|
10646
|
+
def CalmDownTime(self, CalmDownTime):
|
10647
|
+
self._CalmDownTime = CalmDownTime
|
10648
|
+
|
10649
|
+
@property
|
10650
|
+
def ScaleAction(self):
|
10651
|
+
return self._ScaleAction
|
10652
|
+
|
10653
|
+
@ScaleAction.setter
|
10654
|
+
def ScaleAction(self, ScaleAction):
|
10655
|
+
self._ScaleAction = ScaleAction
|
10656
|
+
|
10657
|
+
@property
|
10658
|
+
def ScaleNum(self):
|
10659
|
+
return self._ScaleNum
|
10660
|
+
|
10661
|
+
@ScaleNum.setter
|
10662
|
+
def ScaleNum(self, ScaleNum):
|
10663
|
+
self._ScaleNum = ScaleNum
|
10664
|
+
|
10665
|
+
@property
|
10666
|
+
def LoadMetrics(self):
|
10667
|
+
return self._LoadMetrics
|
10668
|
+
|
10669
|
+
@LoadMetrics.setter
|
10670
|
+
def LoadMetrics(self, LoadMetrics):
|
10671
|
+
self._LoadMetrics = LoadMetrics
|
10672
|
+
|
10673
|
+
@property
|
10674
|
+
def MetricId(self):
|
10675
|
+
return self._MetricId
|
10676
|
+
|
10677
|
+
@MetricId.setter
|
10678
|
+
def MetricId(self, MetricId):
|
10679
|
+
self._MetricId = MetricId
|
10680
|
+
|
10681
|
+
@property
|
10682
|
+
def StatisticPeriod(self):
|
10683
|
+
return self._StatisticPeriod
|
10684
|
+
|
10685
|
+
@StatisticPeriod.setter
|
10686
|
+
def StatisticPeriod(self, StatisticPeriod):
|
10687
|
+
self._StatisticPeriod = StatisticPeriod
|
10688
|
+
|
10689
|
+
@property
|
10690
|
+
def ProcessMethod(self):
|
10691
|
+
return self._ProcessMethod
|
10692
|
+
|
10693
|
+
@ProcessMethod.setter
|
10694
|
+
def ProcessMethod(self, ProcessMethod):
|
10695
|
+
self._ProcessMethod = ProcessMethod
|
10696
|
+
|
10697
|
+
@property
|
10698
|
+
def TriggerThreshold(self):
|
10699
|
+
return self._TriggerThreshold
|
10700
|
+
|
10701
|
+
@TriggerThreshold.setter
|
10702
|
+
def TriggerThreshold(self, TriggerThreshold):
|
10703
|
+
self._TriggerThreshold = TriggerThreshold
|
10704
|
+
|
10705
|
+
@property
|
10706
|
+
def TriggerConditions(self):
|
10707
|
+
return self._TriggerConditions
|
10708
|
+
|
10709
|
+
@TriggerConditions.setter
|
10710
|
+
def TriggerConditions(self, TriggerConditions):
|
10711
|
+
self._TriggerConditions = TriggerConditions
|
10712
|
+
|
10713
|
+
@property
|
10714
|
+
def Priority(self):
|
10715
|
+
return self._Priority
|
10716
|
+
|
10717
|
+
@Priority.setter
|
10718
|
+
def Priority(self, Priority):
|
10719
|
+
self._Priority = Priority
|
10720
|
+
|
10721
|
+
@property
|
10722
|
+
def StrategyStatus(self):
|
10723
|
+
return self._StrategyStatus
|
10724
|
+
|
10725
|
+
@StrategyStatus.setter
|
10726
|
+
def StrategyStatus(self, StrategyStatus):
|
10727
|
+
self._StrategyStatus = StrategyStatus
|
10728
|
+
|
10729
|
+
@property
|
10730
|
+
def YarnNodeLabel(self):
|
10731
|
+
return self._YarnNodeLabel
|
10732
|
+
|
10733
|
+
@YarnNodeLabel.setter
|
10734
|
+
def YarnNodeLabel(self, YarnNodeLabel):
|
10735
|
+
self._YarnNodeLabel = YarnNodeLabel
|
10736
|
+
|
10737
|
+
@property
|
10738
|
+
def PeriodValid(self):
|
10739
|
+
return self._PeriodValid
|
10740
|
+
|
10741
|
+
@PeriodValid.setter
|
10742
|
+
def PeriodValid(self, PeriodValid):
|
10743
|
+
self._PeriodValid = PeriodValid
|
10744
|
+
|
10745
|
+
@property
|
10746
|
+
def GraceDownFlag(self):
|
10747
|
+
return self._GraceDownFlag
|
10748
|
+
|
10749
|
+
@GraceDownFlag.setter
|
10750
|
+
def GraceDownFlag(self, GraceDownFlag):
|
10751
|
+
self._GraceDownFlag = GraceDownFlag
|
10752
|
+
|
10753
|
+
@property
|
10754
|
+
def GraceDownTime(self):
|
10755
|
+
return self._GraceDownTime
|
10756
|
+
|
10757
|
+
@GraceDownTime.setter
|
10758
|
+
def GraceDownTime(self, GraceDownTime):
|
10759
|
+
self._GraceDownTime = GraceDownTime
|
10760
|
+
|
10761
|
+
@property
|
10762
|
+
def Tags(self):
|
10763
|
+
return self._Tags
|
10764
|
+
|
10765
|
+
@Tags.setter
|
10766
|
+
def Tags(self, Tags):
|
10767
|
+
self._Tags = Tags
|
10768
|
+
|
10769
|
+
@property
|
10770
|
+
def ConfigGroupAssigned(self):
|
10771
|
+
return self._ConfigGroupAssigned
|
10772
|
+
|
10773
|
+
@ConfigGroupAssigned.setter
|
10774
|
+
def ConfigGroupAssigned(self, ConfigGroupAssigned):
|
10775
|
+
self._ConfigGroupAssigned = ConfigGroupAssigned
|
10776
|
+
|
10777
|
+
@property
|
10778
|
+
def MeasureMethod(self):
|
10779
|
+
return self._MeasureMethod
|
10780
|
+
|
10781
|
+
@MeasureMethod.setter
|
10782
|
+
def MeasureMethod(self, MeasureMethod):
|
10783
|
+
self._MeasureMethod = MeasureMethod
|
10784
|
+
|
10785
|
+
@property
|
10786
|
+
def LoadMetricsConditions(self):
|
10787
|
+
return self._LoadMetricsConditions
|
10788
|
+
|
10789
|
+
@LoadMetricsConditions.setter
|
10790
|
+
def LoadMetricsConditions(self, LoadMetricsConditions):
|
10791
|
+
self._LoadMetricsConditions = LoadMetricsConditions
|
10792
|
+
|
10793
|
+
|
10794
|
+
def _deserialize(self, params):
|
10795
|
+
self._StrategyId = params.get("StrategyId")
|
10796
|
+
self._StrategyName = params.get("StrategyName")
|
10797
|
+
self._CalmDownTime = params.get("CalmDownTime")
|
10798
|
+
self._ScaleAction = params.get("ScaleAction")
|
10799
|
+
self._ScaleNum = params.get("ScaleNum")
|
10800
|
+
self._LoadMetrics = params.get("LoadMetrics")
|
10801
|
+
self._MetricId = params.get("MetricId")
|
10802
|
+
self._StatisticPeriod = params.get("StatisticPeriod")
|
10803
|
+
self._ProcessMethod = params.get("ProcessMethod")
|
10804
|
+
self._TriggerThreshold = params.get("TriggerThreshold")
|
10805
|
+
if params.get("TriggerConditions") is not None:
|
10806
|
+
self._TriggerConditions = TriggerConditions()
|
10807
|
+
self._TriggerConditions._deserialize(params.get("TriggerConditions"))
|
10808
|
+
self._Priority = params.get("Priority")
|
10809
|
+
self._StrategyStatus = params.get("StrategyStatus")
|
10810
|
+
self._YarnNodeLabel = params.get("YarnNodeLabel")
|
10811
|
+
self._PeriodValid = params.get("PeriodValid")
|
10812
|
+
self._GraceDownFlag = params.get("GraceDownFlag")
|
10813
|
+
self._GraceDownTime = params.get("GraceDownTime")
|
10814
|
+
if params.get("Tags") is not None:
|
10815
|
+
self._Tags = []
|
10816
|
+
for item in params.get("Tags"):
|
10817
|
+
obj = Tag()
|
10818
|
+
obj._deserialize(item)
|
10819
|
+
self._Tags.append(obj)
|
10820
|
+
self._ConfigGroupAssigned = params.get("ConfigGroupAssigned")
|
10821
|
+
self._MeasureMethod = params.get("MeasureMethod")
|
10822
|
+
if params.get("LoadMetricsConditions") is not None:
|
10823
|
+
self._LoadMetricsConditions = LoadMetricsConditions()
|
10824
|
+
self._LoadMetricsConditions._deserialize(params.get("LoadMetricsConditions"))
|
10825
|
+
memeber_set = set(params.keys())
|
10826
|
+
for name, value in vars(self).items():
|
10827
|
+
property_name = name[1:]
|
10828
|
+
if property_name in memeber_set:
|
10829
|
+
memeber_set.remove(property_name)
|
10830
|
+
if len(memeber_set) > 0:
|
10831
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
10832
|
+
|
10833
|
+
|
10834
|
+
|
10835
|
+
class LoadMetricsCondition(AbstractModel):
|
10836
|
+
"""负载指标条件
|
10837
|
+
|
10838
|
+
"""
|
10839
|
+
|
10840
|
+
def __init__(self):
|
10841
|
+
r"""
|
10842
|
+
:param _StatisticPeriod: 规则统计周期,提供1min,3min,5min。
|
10843
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10844
|
+
:type StatisticPeriod: int
|
10845
|
+
:param _TriggerThreshold: 触发次数,当连续触发超过TriggerThreshold次后才开始扩缩容。
|
10846
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10847
|
+
:type TriggerThreshold: int
|
10848
|
+
:param _LoadMetrics: 扩缩容负载指标。
|
10849
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10850
|
+
:type LoadMetrics: str
|
10851
|
+
:param _MetricId: 规则元数据记录ID。
|
10852
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10853
|
+
:type MetricId: int
|
10854
|
+
:param _Conditions: 触发条件
|
10855
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10856
|
+
:type Conditions: list of TriggerCondition
|
10857
|
+
"""
|
10858
|
+
self._StatisticPeriod = None
|
10859
|
+
self._TriggerThreshold = None
|
10860
|
+
self._LoadMetrics = None
|
10861
|
+
self._MetricId = None
|
10862
|
+
self._Conditions = None
|
10863
|
+
|
10864
|
+
@property
|
10865
|
+
def StatisticPeriod(self):
|
10866
|
+
return self._StatisticPeriod
|
10867
|
+
|
10868
|
+
@StatisticPeriod.setter
|
10869
|
+
def StatisticPeriod(self, StatisticPeriod):
|
10870
|
+
self._StatisticPeriod = StatisticPeriod
|
10871
|
+
|
10872
|
+
@property
|
10873
|
+
def TriggerThreshold(self):
|
10874
|
+
return self._TriggerThreshold
|
10875
|
+
|
10876
|
+
@TriggerThreshold.setter
|
10877
|
+
def TriggerThreshold(self, TriggerThreshold):
|
10878
|
+
self._TriggerThreshold = TriggerThreshold
|
10879
|
+
|
10880
|
+
@property
|
10881
|
+
def LoadMetrics(self):
|
10882
|
+
return self._LoadMetrics
|
10883
|
+
|
10884
|
+
@LoadMetrics.setter
|
10885
|
+
def LoadMetrics(self, LoadMetrics):
|
10886
|
+
self._LoadMetrics = LoadMetrics
|
10887
|
+
|
10888
|
+
@property
|
10889
|
+
def MetricId(self):
|
10890
|
+
return self._MetricId
|
10891
|
+
|
10892
|
+
@MetricId.setter
|
10893
|
+
def MetricId(self, MetricId):
|
10894
|
+
self._MetricId = MetricId
|
10895
|
+
|
10896
|
+
@property
|
10897
|
+
def Conditions(self):
|
10898
|
+
return self._Conditions
|
10899
|
+
|
10900
|
+
@Conditions.setter
|
10901
|
+
def Conditions(self, Conditions):
|
10902
|
+
self._Conditions = Conditions
|
10903
|
+
|
10904
|
+
|
10905
|
+
def _deserialize(self, params):
|
10906
|
+
self._StatisticPeriod = params.get("StatisticPeriod")
|
10907
|
+
self._TriggerThreshold = params.get("TriggerThreshold")
|
10908
|
+
self._LoadMetrics = params.get("LoadMetrics")
|
10909
|
+
self._MetricId = params.get("MetricId")
|
10910
|
+
if params.get("Conditions") is not None:
|
10911
|
+
self._Conditions = []
|
10912
|
+
for item in params.get("Conditions"):
|
10913
|
+
obj = TriggerCondition()
|
10914
|
+
obj._deserialize(item)
|
10915
|
+
self._Conditions.append(obj)
|
10916
|
+
memeber_set = set(params.keys())
|
10917
|
+
for name, value in vars(self).items():
|
10918
|
+
property_name = name[1:]
|
10919
|
+
if property_name in memeber_set:
|
10920
|
+
memeber_set.remove(property_name)
|
10921
|
+
if len(memeber_set) > 0:
|
10922
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
10923
|
+
|
10924
|
+
|
10925
|
+
|
10926
|
+
class LoadMetricsConditions(AbstractModel):
|
10927
|
+
"""负载指标
|
10928
|
+
|
10929
|
+
"""
|
10930
|
+
|
10931
|
+
def __init__(self):
|
10932
|
+
r"""
|
10933
|
+
:param _LoadMetrics: 触发规则条件
|
10934
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10935
|
+
:type LoadMetrics: list of LoadMetricsCondition
|
10936
|
+
"""
|
10937
|
+
self._LoadMetrics = None
|
10938
|
+
|
10939
|
+
@property
|
10940
|
+
def LoadMetrics(self):
|
10941
|
+
return self._LoadMetrics
|
10942
|
+
|
10943
|
+
@LoadMetrics.setter
|
10944
|
+
def LoadMetrics(self, LoadMetrics):
|
10945
|
+
self._LoadMetrics = LoadMetrics
|
10946
|
+
|
10947
|
+
|
10948
|
+
def _deserialize(self, params):
|
10949
|
+
if params.get("LoadMetrics") is not None:
|
10950
|
+
self._LoadMetrics = []
|
10951
|
+
for item in params.get("LoadMetrics"):
|
10952
|
+
obj = LoadMetricsCondition()
|
10953
|
+
obj._deserialize(item)
|
10954
|
+
self._LoadMetrics.append(obj)
|
10955
|
+
memeber_set = set(params.keys())
|
10956
|
+
for name, value in vars(self).items():
|
10957
|
+
property_name = name[1:]
|
10958
|
+
if property_name in memeber_set:
|
10959
|
+
memeber_set.remove(property_name)
|
10960
|
+
if len(memeber_set) > 0:
|
10961
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
10962
|
+
|
10963
|
+
|
10964
|
+
|
10345
10965
|
class LoginSettings(AbstractModel):
|
10346
10966
|
"""登录设置
|
10347
10967
|
|
@@ -10504,6 +11124,8 @@ class ModifyAutoScaleStrategyRequest(AbstractModel):
|
|
10504
11124
|
:type InstanceId: str
|
10505
11125
|
:param _StrategyType: 自动扩缩容规则类型,1表示按负载指标扩缩容,2表示按时间扩缩容。
|
10506
11126
|
:type StrategyType: int
|
11127
|
+
:param _LoadAutoScaleStrategies: 按负载扩缩容的指标。
|
11128
|
+
:type LoadAutoScaleStrategies: list of LoadAutoScaleStrategy
|
10507
11129
|
:param _TimeAutoScaleStrategies: 按时间扩缩容的规则。
|
10508
11130
|
:type TimeAutoScaleStrategies: list of TimeAutoScaleStrategy
|
10509
11131
|
:param _GroupId: 伸缩组Id
|
@@ -10511,6 +11133,7 @@ class ModifyAutoScaleStrategyRequest(AbstractModel):
|
|
10511
11133
|
"""
|
10512
11134
|
self._InstanceId = None
|
10513
11135
|
self._StrategyType = None
|
11136
|
+
self._LoadAutoScaleStrategies = None
|
10514
11137
|
self._TimeAutoScaleStrategies = None
|
10515
11138
|
self._GroupId = None
|
10516
11139
|
|
@@ -10530,6 +11153,14 @@ class ModifyAutoScaleStrategyRequest(AbstractModel):
|
|
10530
11153
|
def StrategyType(self, StrategyType):
|
10531
11154
|
self._StrategyType = StrategyType
|
10532
11155
|
|
11156
|
+
@property
|
11157
|
+
def LoadAutoScaleStrategies(self):
|
11158
|
+
return self._LoadAutoScaleStrategies
|
11159
|
+
|
11160
|
+
@LoadAutoScaleStrategies.setter
|
11161
|
+
def LoadAutoScaleStrategies(self, LoadAutoScaleStrategies):
|
11162
|
+
self._LoadAutoScaleStrategies = LoadAutoScaleStrategies
|
11163
|
+
|
10533
11164
|
@property
|
10534
11165
|
def TimeAutoScaleStrategies(self):
|
10535
11166
|
return self._TimeAutoScaleStrategies
|
@@ -10550,6 +11181,12 @@ class ModifyAutoScaleStrategyRequest(AbstractModel):
|
|
10550
11181
|
def _deserialize(self, params):
|
10551
11182
|
self._InstanceId = params.get("InstanceId")
|
10552
11183
|
self._StrategyType = params.get("StrategyType")
|
11184
|
+
if params.get("LoadAutoScaleStrategies") is not None:
|
11185
|
+
self._LoadAutoScaleStrategies = []
|
11186
|
+
for item in params.get("LoadAutoScaleStrategies"):
|
11187
|
+
obj = LoadAutoScaleStrategy()
|
11188
|
+
obj._deserialize(item)
|
11189
|
+
self._LoadAutoScaleStrategies.append(obj)
|
10553
11190
|
if params.get("TimeAutoScaleStrategies") is not None:
|
10554
11191
|
self._TimeAutoScaleStrategies = []
|
10555
11192
|
for item in params.get("TimeAutoScaleStrategies"):
|
@@ -14713,7 +15350,7 @@ class RepeatStrategy(AbstractModel):
|
|
14713
15350
|
|
14714
15351
|
def __init__(self):
|
14715
15352
|
r"""
|
14716
|
-
:param _RepeatType: 取值范围"DAY","DOW","DOM","NONE"
|
15353
|
+
:param _RepeatType: 取值范围"DAY","DOW","DOM","NONE",分别表示按天重复、按周重复、按月重复和一次执行。必须填写
|
14717
15354
|
:type RepeatType: str
|
14718
15355
|
:param _DayRepeat: 按天重复规则,当RepeatType为"DAY"时有效
|
14719
15356
|
注意:此字段可能返回 null,表示取不到有效值。
|
@@ -14727,7 +15364,7 @@ class RepeatStrategy(AbstractModel):
|
|
14727
15364
|
:param _NotRepeat: 一次执行规则,当RepeatType为"NONE"时有效
|
14728
15365
|
注意:此字段可能返回 null,表示取不到有效值。
|
14729
15366
|
:type NotRepeat: :class:`tencentcloud.emr.v20190103.models.NotRepeatStrategy`
|
14730
|
-
:param _Expire: 规则过期时间,超过该时间后,规则将自动置为暂停状态,形式为"2020-07-23 00:00:00"
|
15367
|
+
:param _Expire: 规则过期时间,超过该时间后,规则将自动置为暂停状态,形式为"2020-07-23 00:00:00"。必须填写
|
14731
15368
|
注意:此字段可能返回 null,表示取不到有效值。
|
14732
15369
|
:type Expire: str
|
14733
15370
|
"""
|
@@ -17760,7 +18397,7 @@ class TimeAutoScaleStrategy(AbstractModel):
|
|
17760
18397
|
:param _ScaleNum: 扩缩容数量。
|
17761
18398
|
注意:此字段可能返回 null,表示取不到有效值。
|
17762
18399
|
:type ScaleNum: int
|
17763
|
-
:param _StrategyStatus: 规则状态,1表示有效,2表示无效,3
|
18400
|
+
:param _StrategyStatus: 规则状态,1表示有效,2表示无效,3表示暂停。必须填写
|
17764
18401
|
注意:此字段可能返回 null,表示取不到有效值。
|
17765
18402
|
:type StrategyStatus: int
|
17766
18403
|
:param _Priority: 规则优先级,越小越高。
|
@@ -17800,7 +18437,7 @@ class TimeAutoScaleStrategy(AbstractModel):
|
|
17800
18437
|
:param _MaxUse: 最长使用时间, 秒数,最短1小时,最长24小时
|
17801
18438
|
注意:此字段可能返回 null,表示取不到有效值。
|
17802
18439
|
:type MaxUse: int
|
17803
|
-
:param _SoftDeployInfo:
|
18440
|
+
:param _SoftDeployInfo: 节点部署服务列表。部署服务仅填写HDFS、YARN。[组件名对应的映射关系表](https://cloud.tencent.com/document/product/589/98760)
|
17804
18441
|
注意:此字段可能返回 null,表示取不到有效值。
|
17805
18442
|
:type SoftDeployInfo: list of int
|
17806
18443
|
:param _ServiceNodeInfo: 启动进程列表。
|
@@ -18116,6 +18753,91 @@ class TopologyInfo(AbstractModel):
|
|
18116
18753
|
|
18117
18754
|
|
18118
18755
|
|
18756
|
+
class TriggerCondition(AbstractModel):
|
18757
|
+
"""规则触发条件
|
18758
|
+
|
18759
|
+
"""
|
18760
|
+
|
18761
|
+
def __init__(self):
|
18762
|
+
r"""
|
18763
|
+
:param _CompareMethod: 条件比较方法,1表示大于,2表示小于,3表示大于等于,4表示小于等于。
|
18764
|
+
:type CompareMethod: int
|
18765
|
+
:param _Threshold: 条件阈值。
|
18766
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
18767
|
+
:type Threshold: float
|
18768
|
+
"""
|
18769
|
+
self._CompareMethod = None
|
18770
|
+
self._Threshold = None
|
18771
|
+
|
18772
|
+
@property
|
18773
|
+
def CompareMethod(self):
|
18774
|
+
return self._CompareMethod
|
18775
|
+
|
18776
|
+
@CompareMethod.setter
|
18777
|
+
def CompareMethod(self, CompareMethod):
|
18778
|
+
self._CompareMethod = CompareMethod
|
18779
|
+
|
18780
|
+
@property
|
18781
|
+
def Threshold(self):
|
18782
|
+
return self._Threshold
|
18783
|
+
|
18784
|
+
@Threshold.setter
|
18785
|
+
def Threshold(self, Threshold):
|
18786
|
+
self._Threshold = Threshold
|
18787
|
+
|
18788
|
+
|
18789
|
+
def _deserialize(self, params):
|
18790
|
+
self._CompareMethod = params.get("CompareMethod")
|
18791
|
+
self._Threshold = params.get("Threshold")
|
18792
|
+
memeber_set = set(params.keys())
|
18793
|
+
for name, value in vars(self).items():
|
18794
|
+
property_name = name[1:]
|
18795
|
+
if property_name in memeber_set:
|
18796
|
+
memeber_set.remove(property_name)
|
18797
|
+
if len(memeber_set) > 0:
|
18798
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
18799
|
+
|
18800
|
+
|
18801
|
+
|
18802
|
+
class TriggerConditions(AbstractModel):
|
18803
|
+
"""规则触发条件数组
|
18804
|
+
|
18805
|
+
"""
|
18806
|
+
|
18807
|
+
def __init__(self):
|
18808
|
+
r"""
|
18809
|
+
:param _Conditions: 规则触发条件数组。
|
18810
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
18811
|
+
:type Conditions: list of TriggerCondition
|
18812
|
+
"""
|
18813
|
+
self._Conditions = None
|
18814
|
+
|
18815
|
+
@property
|
18816
|
+
def Conditions(self):
|
18817
|
+
return self._Conditions
|
18818
|
+
|
18819
|
+
@Conditions.setter
|
18820
|
+
def Conditions(self, Conditions):
|
18821
|
+
self._Conditions = Conditions
|
18822
|
+
|
18823
|
+
|
18824
|
+
def _deserialize(self, params):
|
18825
|
+
if params.get("Conditions") is not None:
|
18826
|
+
self._Conditions = []
|
18827
|
+
for item in params.get("Conditions"):
|
18828
|
+
obj = TriggerCondition()
|
18829
|
+
obj._deserialize(item)
|
18830
|
+
self._Conditions.append(obj)
|
18831
|
+
memeber_set = set(params.keys())
|
18832
|
+
for name, value in vars(self).items():
|
18833
|
+
property_name = name[1:]
|
18834
|
+
if property_name in memeber_set:
|
18835
|
+
memeber_set.remove(property_name)
|
18836
|
+
if len(memeber_set) > 0:
|
18837
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
18838
|
+
|
18839
|
+
|
18840
|
+
|
18119
18841
|
class UpdateInstanceSettings(AbstractModel):
|
18120
18842
|
"""变配资源规格
|
18121
18843
|
|