tencentcloud-sdk-python 3.0.1068__py2.py3-none-any.whl → 3.0.1075__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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/antiddos/v20200309/models.py +27 -1
- tencentcloud/billing/v20180709/billing_client.py +23 -0
- tencentcloud/billing/v20180709/errorcodes.py +6 -0
- tencentcloud/billing/v20180709/models.py +479 -0
- tencentcloud/car/v20220110/car_client.py +2 -2
- tencentcloud/cfs/v20190719/models.py +12 -0
- tencentcloud/cfw/v20190904/models.py +116 -0
- tencentcloud/clb/v20180317/errorcodes.py +3 -0
- tencentcloud/cloudaudit/v20190319/cloudaudit_client.py +6 -6
- tencentcloud/cloudaudit/v20190319/errorcodes.py +6 -3
- tencentcloud/cloudaudit/v20190319/models.py +30 -2
- tencentcloud/cvm/v20170312/models.py +2 -2
- tencentcloud/cynosdb/v20190107/models.py +188 -0
- tencentcloud/dnspod/v20210323/models.py +12 -0
- tencentcloud/dts/v20211206/dts_client.py +511 -0
- tencentcloud/dts/v20211206/errorcodes.py +3 -0
- tencentcloud/dts/v20211206/models.py +6918 -2996
- tencentcloud/ess/v20201111/models.py +24 -17
- tencentcloud/essbasic/v20210526/essbasic_client.py +54 -5
- tencentcloud/essbasic/v20210526/models.py +163 -181
- tencentcloud/faceid/v20180301/models.py +24 -0
- tencentcloud/hai/v20230812/errorcodes.py +6 -0
- tencentcloud/hunyuan/v20230901/models.py +1 -1
- tencentcloud/monitor/v20180724/models.py +1118 -97
- tencentcloud/monitor/v20180724/monitor_client.py +118 -0
- tencentcloud/mps/v20190612/models.py +60 -1
- tencentcloud/mrs/v20200910/models.py +5 -1
- tencentcloud/ocr/v20181119/models.py +27 -1
- tencentcloud/rum/v20210622/models.py +0 -504
- tencentcloud/rum/v20210622/rum_client.py +0 -138
- tencentcloud/scf/v20180416/errorcodes.py +3 -0
- tencentcloud/tat/v20201028/models.py +2 -0
- tencentcloud/tcb/v20180608/models.py +9 -0
- tencentcloud/tdid/v20210519/errorcodes.py +143 -2
- tencentcloud/tdid/v20210519/models.py +1424 -788
- tencentcloud/tdid/v20210519/tdid_client.py +201 -112
- tencentcloud/tdmq/v20200217/errorcodes.py +3 -0
- tencentcloud/tdmq/v20200217/models.py +261 -0
- tencentcloud/tdmq/v20200217/tdmq_client.py +23 -0
- tencentcloud/teo/v20220901/models.py +18 -16
- tencentcloud/tione/v20211111/errorcodes.py +12 -0
- tencentcloud/tione/v20211111/models.py +190 -32
- tencentcloud/trtc/v20190722/errorcodes.py +6 -0
- tencentcloud/trtc/v20190722/models.py +34 -5
- tencentcloud/trtc/v20190722/trtc_client.py +2 -0
- tencentcloud/tse/v20201207/models.py +1 -1
- tencentcloud/tsf/v20180326/models.py +14 -1
- tencentcloud/vod/v20180717/models.py +933 -43
- tencentcloud/vod/v20180717/vod_client.py +161 -0
- {tencentcloud_sdk_python-3.0.1068.dist-info → tencentcloud_sdk_python-3.0.1075.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1068.dist-info → tencentcloud_sdk_python-3.0.1075.dist-info}/RECORD +55 -55
- {tencentcloud_sdk_python-3.0.1068.dist-info → tencentcloud_sdk_python-3.0.1075.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1068.dist-info → tencentcloud_sdk_python-3.0.1075.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1068.dist-info → tencentcloud_sdk_python-3.0.1075.dist-info}/top_level.txt +0 -0
|
@@ -3891,6 +3891,8 @@ class CreateGrafanaInstanceRequest(AbstractModel):
|
|
|
3891
3891
|
:type GrafanaInitPassword: str
|
|
3892
3892
|
:param _TagSpecification: 标签
|
|
3893
3893
|
:type TagSpecification: list of PrometheusTag
|
|
3894
|
+
:param _AutoVoucher: 是否自动选择代金券,默认为 false
|
|
3895
|
+
:type AutoVoucher: bool
|
|
3894
3896
|
"""
|
|
3895
3897
|
self._InstanceName = None
|
|
3896
3898
|
self._VpcId = None
|
|
@@ -3898,6 +3900,7 @@ class CreateGrafanaInstanceRequest(AbstractModel):
|
|
|
3898
3900
|
self._EnableInternet = None
|
|
3899
3901
|
self._GrafanaInitPassword = None
|
|
3900
3902
|
self._TagSpecification = None
|
|
3903
|
+
self._AutoVoucher = None
|
|
3901
3904
|
|
|
3902
3905
|
@property
|
|
3903
3906
|
def InstanceName(self):
|
|
@@ -3947,6 +3950,14 @@ class CreateGrafanaInstanceRequest(AbstractModel):
|
|
|
3947
3950
|
def TagSpecification(self, TagSpecification):
|
|
3948
3951
|
self._TagSpecification = TagSpecification
|
|
3949
3952
|
|
|
3953
|
+
@property
|
|
3954
|
+
def AutoVoucher(self):
|
|
3955
|
+
return self._AutoVoucher
|
|
3956
|
+
|
|
3957
|
+
@AutoVoucher.setter
|
|
3958
|
+
def AutoVoucher(self, AutoVoucher):
|
|
3959
|
+
self._AutoVoucher = AutoVoucher
|
|
3960
|
+
|
|
3950
3961
|
|
|
3951
3962
|
def _deserialize(self, params):
|
|
3952
3963
|
self._InstanceName = params.get("InstanceName")
|
|
@@ -3960,6 +3971,7 @@ class CreateGrafanaInstanceRequest(AbstractModel):
|
|
|
3960
3971
|
obj = PrometheusTag()
|
|
3961
3972
|
obj._deserialize(item)
|
|
3962
3973
|
self._TagSpecification.append(obj)
|
|
3974
|
+
self._AutoVoucher = params.get("AutoVoucher")
|
|
3963
3975
|
memeber_set = set(params.keys())
|
|
3964
3976
|
for name, value in vars(self).items():
|
|
3965
3977
|
property_name = name[1:]
|
|
@@ -4713,6 +4725,159 @@ class CreatePrometheusAgentResponse(AbstractModel):
|
|
|
4713
4725
|
self._RequestId = params.get("RequestId")
|
|
4714
4726
|
|
|
4715
4727
|
|
|
4728
|
+
class CreatePrometheusAlertGroupRequest(AbstractModel):
|
|
4729
|
+
"""CreatePrometheusAlertGroup请求参数结构体
|
|
4730
|
+
|
|
4731
|
+
"""
|
|
4732
|
+
|
|
4733
|
+
def __init__(self):
|
|
4734
|
+
r"""
|
|
4735
|
+
:param _InstanceId: prometheus实例ID
|
|
4736
|
+
:type InstanceId: str
|
|
4737
|
+
:param _GroupName: 告警分组名称,不能与其他告警分组重名
|
|
4738
|
+
:type GroupName: str
|
|
4739
|
+
:param _GroupState: 告警分组状态:
|
|
4740
|
+
2 -- 启用
|
|
4741
|
+
3 -- 禁用
|
|
4742
|
+
不为空时会覆盖 `Rules`字段下所有告警规则状态
|
|
4743
|
+
|
|
4744
|
+
:type GroupState: int
|
|
4745
|
+
:param _AMPReceivers: 云监控告警通知模板ID列表,形如Consumer-xxxx或notice-xxxx
|
|
4746
|
+
:type AMPReceivers: list of str
|
|
4747
|
+
:param _CustomReceiver: 自定义告警通知模板
|
|
4748
|
+
:type CustomReceiver: :class:`tencentcloud.monitor.v20180724.models.PrometheusAlertCustomReceiver`
|
|
4749
|
+
:param _RepeatInterval: 告警通知周期(收敛时间),为空默认1h
|
|
4750
|
+
:type RepeatInterval: str
|
|
4751
|
+
:param _Rules: 要创建的告警规则列表
|
|
4752
|
+
:type Rules: list of PrometheusAlertGroupRuleSet
|
|
4753
|
+
"""
|
|
4754
|
+
self._InstanceId = None
|
|
4755
|
+
self._GroupName = None
|
|
4756
|
+
self._GroupState = None
|
|
4757
|
+
self._AMPReceivers = None
|
|
4758
|
+
self._CustomReceiver = None
|
|
4759
|
+
self._RepeatInterval = None
|
|
4760
|
+
self._Rules = None
|
|
4761
|
+
|
|
4762
|
+
@property
|
|
4763
|
+
def InstanceId(self):
|
|
4764
|
+
return self._InstanceId
|
|
4765
|
+
|
|
4766
|
+
@InstanceId.setter
|
|
4767
|
+
def InstanceId(self, InstanceId):
|
|
4768
|
+
self._InstanceId = InstanceId
|
|
4769
|
+
|
|
4770
|
+
@property
|
|
4771
|
+
def GroupName(self):
|
|
4772
|
+
return self._GroupName
|
|
4773
|
+
|
|
4774
|
+
@GroupName.setter
|
|
4775
|
+
def GroupName(self, GroupName):
|
|
4776
|
+
self._GroupName = GroupName
|
|
4777
|
+
|
|
4778
|
+
@property
|
|
4779
|
+
def GroupState(self):
|
|
4780
|
+
return self._GroupState
|
|
4781
|
+
|
|
4782
|
+
@GroupState.setter
|
|
4783
|
+
def GroupState(self, GroupState):
|
|
4784
|
+
self._GroupState = GroupState
|
|
4785
|
+
|
|
4786
|
+
@property
|
|
4787
|
+
def AMPReceivers(self):
|
|
4788
|
+
return self._AMPReceivers
|
|
4789
|
+
|
|
4790
|
+
@AMPReceivers.setter
|
|
4791
|
+
def AMPReceivers(self, AMPReceivers):
|
|
4792
|
+
self._AMPReceivers = AMPReceivers
|
|
4793
|
+
|
|
4794
|
+
@property
|
|
4795
|
+
def CustomReceiver(self):
|
|
4796
|
+
return self._CustomReceiver
|
|
4797
|
+
|
|
4798
|
+
@CustomReceiver.setter
|
|
4799
|
+
def CustomReceiver(self, CustomReceiver):
|
|
4800
|
+
self._CustomReceiver = CustomReceiver
|
|
4801
|
+
|
|
4802
|
+
@property
|
|
4803
|
+
def RepeatInterval(self):
|
|
4804
|
+
return self._RepeatInterval
|
|
4805
|
+
|
|
4806
|
+
@RepeatInterval.setter
|
|
4807
|
+
def RepeatInterval(self, RepeatInterval):
|
|
4808
|
+
self._RepeatInterval = RepeatInterval
|
|
4809
|
+
|
|
4810
|
+
@property
|
|
4811
|
+
def Rules(self):
|
|
4812
|
+
return self._Rules
|
|
4813
|
+
|
|
4814
|
+
@Rules.setter
|
|
4815
|
+
def Rules(self, Rules):
|
|
4816
|
+
self._Rules = Rules
|
|
4817
|
+
|
|
4818
|
+
|
|
4819
|
+
def _deserialize(self, params):
|
|
4820
|
+
self._InstanceId = params.get("InstanceId")
|
|
4821
|
+
self._GroupName = params.get("GroupName")
|
|
4822
|
+
self._GroupState = params.get("GroupState")
|
|
4823
|
+
self._AMPReceivers = params.get("AMPReceivers")
|
|
4824
|
+
if params.get("CustomReceiver") is not None:
|
|
4825
|
+
self._CustomReceiver = PrometheusAlertCustomReceiver()
|
|
4826
|
+
self._CustomReceiver._deserialize(params.get("CustomReceiver"))
|
|
4827
|
+
self._RepeatInterval = params.get("RepeatInterval")
|
|
4828
|
+
if params.get("Rules") is not None:
|
|
4829
|
+
self._Rules = []
|
|
4830
|
+
for item in params.get("Rules"):
|
|
4831
|
+
obj = PrometheusAlertGroupRuleSet()
|
|
4832
|
+
obj._deserialize(item)
|
|
4833
|
+
self._Rules.append(obj)
|
|
4834
|
+
memeber_set = set(params.keys())
|
|
4835
|
+
for name, value in vars(self).items():
|
|
4836
|
+
property_name = name[1:]
|
|
4837
|
+
if property_name in memeber_set:
|
|
4838
|
+
memeber_set.remove(property_name)
|
|
4839
|
+
if len(memeber_set) > 0:
|
|
4840
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4841
|
+
|
|
4842
|
+
|
|
4843
|
+
|
|
4844
|
+
class CreatePrometheusAlertGroupResponse(AbstractModel):
|
|
4845
|
+
"""CreatePrometheusAlertGroup返回参数结构体
|
|
4846
|
+
|
|
4847
|
+
"""
|
|
4848
|
+
|
|
4849
|
+
def __init__(self):
|
|
4850
|
+
r"""
|
|
4851
|
+
:param _GroupId: 创建的告警分组ID,满足正则表达式`alert-[a-z0-9]{8}`
|
|
4852
|
+
:type GroupId: str
|
|
4853
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4854
|
+
:type RequestId: str
|
|
4855
|
+
"""
|
|
4856
|
+
self._GroupId = None
|
|
4857
|
+
self._RequestId = None
|
|
4858
|
+
|
|
4859
|
+
@property
|
|
4860
|
+
def GroupId(self):
|
|
4861
|
+
return self._GroupId
|
|
4862
|
+
|
|
4863
|
+
@GroupId.setter
|
|
4864
|
+
def GroupId(self, GroupId):
|
|
4865
|
+
self._GroupId = GroupId
|
|
4866
|
+
|
|
4867
|
+
@property
|
|
4868
|
+
def RequestId(self):
|
|
4869
|
+
return self._RequestId
|
|
4870
|
+
|
|
4871
|
+
@RequestId.setter
|
|
4872
|
+
def RequestId(self, RequestId):
|
|
4873
|
+
self._RequestId = RequestId
|
|
4874
|
+
|
|
4875
|
+
|
|
4876
|
+
def _deserialize(self, params):
|
|
4877
|
+
self._GroupId = params.get("GroupId")
|
|
4878
|
+
self._RequestId = params.get("RequestId")
|
|
4879
|
+
|
|
4880
|
+
|
|
4716
4881
|
class CreatePrometheusAlertPolicyRequest(AbstractModel):
|
|
4717
4882
|
"""CreatePrometheusAlertPolicy请求参数结构体
|
|
4718
4883
|
|
|
@@ -6497,6 +6662,76 @@ class DeletePolicyGroupResponse(AbstractModel):
|
|
|
6497
6662
|
self._RequestId = params.get("RequestId")
|
|
6498
6663
|
|
|
6499
6664
|
|
|
6665
|
+
class DeletePrometheusAlertGroupsRequest(AbstractModel):
|
|
6666
|
+
"""DeletePrometheusAlertGroups请求参数结构体
|
|
6667
|
+
|
|
6668
|
+
"""
|
|
6669
|
+
|
|
6670
|
+
def __init__(self):
|
|
6671
|
+
r"""
|
|
6672
|
+
:param _InstanceId: prometheus实例id
|
|
6673
|
+
:type InstanceId: str
|
|
6674
|
+
:param _GroupIds: 需要删除的告警分组ID,形如alert-xxxxx
|
|
6675
|
+
:type GroupIds: list of str
|
|
6676
|
+
"""
|
|
6677
|
+
self._InstanceId = None
|
|
6678
|
+
self._GroupIds = None
|
|
6679
|
+
|
|
6680
|
+
@property
|
|
6681
|
+
def InstanceId(self):
|
|
6682
|
+
return self._InstanceId
|
|
6683
|
+
|
|
6684
|
+
@InstanceId.setter
|
|
6685
|
+
def InstanceId(self, InstanceId):
|
|
6686
|
+
self._InstanceId = InstanceId
|
|
6687
|
+
|
|
6688
|
+
@property
|
|
6689
|
+
def GroupIds(self):
|
|
6690
|
+
return self._GroupIds
|
|
6691
|
+
|
|
6692
|
+
@GroupIds.setter
|
|
6693
|
+
def GroupIds(self, GroupIds):
|
|
6694
|
+
self._GroupIds = GroupIds
|
|
6695
|
+
|
|
6696
|
+
|
|
6697
|
+
def _deserialize(self, params):
|
|
6698
|
+
self._InstanceId = params.get("InstanceId")
|
|
6699
|
+
self._GroupIds = params.get("GroupIds")
|
|
6700
|
+
memeber_set = set(params.keys())
|
|
6701
|
+
for name, value in vars(self).items():
|
|
6702
|
+
property_name = name[1:]
|
|
6703
|
+
if property_name in memeber_set:
|
|
6704
|
+
memeber_set.remove(property_name)
|
|
6705
|
+
if len(memeber_set) > 0:
|
|
6706
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
6707
|
+
|
|
6708
|
+
|
|
6709
|
+
|
|
6710
|
+
class DeletePrometheusAlertGroupsResponse(AbstractModel):
|
|
6711
|
+
"""DeletePrometheusAlertGroups返回参数结构体
|
|
6712
|
+
|
|
6713
|
+
"""
|
|
6714
|
+
|
|
6715
|
+
def __init__(self):
|
|
6716
|
+
r"""
|
|
6717
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
6718
|
+
:type RequestId: str
|
|
6719
|
+
"""
|
|
6720
|
+
self._RequestId = None
|
|
6721
|
+
|
|
6722
|
+
@property
|
|
6723
|
+
def RequestId(self):
|
|
6724
|
+
return self._RequestId
|
|
6725
|
+
|
|
6726
|
+
@RequestId.setter
|
|
6727
|
+
def RequestId(self, RequestId):
|
|
6728
|
+
self._RequestId = RequestId
|
|
6729
|
+
|
|
6730
|
+
|
|
6731
|
+
def _deserialize(self, params):
|
|
6732
|
+
self._RequestId = params.get("RequestId")
|
|
6733
|
+
|
|
6734
|
+
|
|
6500
6735
|
class DeletePrometheusAlertPolicyRequest(AbstractModel):
|
|
6501
6736
|
"""DeletePrometheusAlertPolicy请求参数结构体
|
|
6502
6737
|
|
|
@@ -8560,10 +8795,10 @@ class DescribeAlarmPoliciesRequest(AbstractModel):
|
|
|
8560
8795
|
:type PageSize: int
|
|
8561
8796
|
:param _PolicyName: 按策略名称模糊搜索
|
|
8562
8797
|
:type PolicyName: str
|
|
8563
|
-
:param _MonitorTypes: 根据监控类型过滤 不选默认查所有类型 "MT_QCE"
|
|
8798
|
+
:param _MonitorTypes: 根据监控类型过滤 不选默认查所有类型 "MT_QCE"=云产品监控,当Dimension不为空时,该项为必填项
|
|
8564
8799
|
:type MonitorTypes: list of str
|
|
8565
8800
|
:param _Namespaces: 根据命名空间过滤,不同策略类型的值详见
|
|
8566
|
-
[策略类型列表](https://cloud.tencent.com/document/product/248/50397)
|
|
8801
|
+
[策略类型列表](https://cloud.tencent.com/document/product/248/50397)当Dimension不为空时,该项为必填项
|
|
8567
8802
|
:type Namespaces: list of str
|
|
8568
8803
|
:param _Dimensions: 告警对象列表,JSON 字符串。外层数组,对应多个实例,内层为对象的维度。例如“云服务器-基础监控”可写为:
|
|
8569
8804
|
`[ {"Dimensions": {"unInstanceId": "ins-qr8d555g"}}, {"Dimensions": {"unInstanceId": "ins-qr8d555h"}} ]`
|
|
@@ -15493,27 +15728,31 @@ class DescribePrometheusAgentsResponse(AbstractModel):
|
|
|
15493
15728
|
self._RequestId = params.get("RequestId")
|
|
15494
15729
|
|
|
15495
15730
|
|
|
15496
|
-
class
|
|
15497
|
-
"""
|
|
15731
|
+
class DescribePrometheusAlertGroupsRequest(AbstractModel):
|
|
15732
|
+
"""DescribePrometheusAlertGroups请求参数结构体
|
|
15498
15733
|
|
|
15499
15734
|
"""
|
|
15500
15735
|
|
|
15501
15736
|
def __init__(self):
|
|
15502
15737
|
r"""
|
|
15503
|
-
:param _InstanceId: 实例
|
|
15738
|
+
:param _InstanceId: Prometheus 实例 ID
|
|
15504
15739
|
:type InstanceId: str
|
|
15505
|
-
:param
|
|
15506
|
-
:type Offset: int
|
|
15507
|
-
:param _Limit: 分页
|
|
15740
|
+
:param _Limit: 返回数量,默认为 20,最大值为 100
|
|
15508
15741
|
:type Limit: int
|
|
15509
|
-
:param
|
|
15510
|
-
|
|
15511
|
-
:
|
|
15742
|
+
:param _Offset: 偏移量,默认为 0
|
|
15743
|
+
:type Offset: int
|
|
15744
|
+
:param _GroupId: 告警分组ID,形如alert-xxxx。
|
|
15745
|
+
查询给定ID的告警分组
|
|
15746
|
+
:type GroupId: str
|
|
15747
|
+
:param _GroupName: 告警分组名称。
|
|
15748
|
+
查询名称中包含给定字符串的告警分组
|
|
15749
|
+
:type GroupName: str
|
|
15512
15750
|
"""
|
|
15513
15751
|
self._InstanceId = None
|
|
15514
|
-
self._Offset = None
|
|
15515
15752
|
self._Limit = None
|
|
15516
|
-
self.
|
|
15753
|
+
self._Offset = None
|
|
15754
|
+
self._GroupId = None
|
|
15755
|
+
self._GroupName = None
|
|
15517
15756
|
|
|
15518
15757
|
@property
|
|
15519
15758
|
def InstanceId(self):
|
|
@@ -15523,6 +15762,14 @@ class DescribePrometheusAlertPolicyRequest(AbstractModel):
|
|
|
15523
15762
|
def InstanceId(self, InstanceId):
|
|
15524
15763
|
self._InstanceId = InstanceId
|
|
15525
15764
|
|
|
15765
|
+
@property
|
|
15766
|
+
def Limit(self):
|
|
15767
|
+
return self._Limit
|
|
15768
|
+
|
|
15769
|
+
@Limit.setter
|
|
15770
|
+
def Limit(self, Limit):
|
|
15771
|
+
self._Limit = Limit
|
|
15772
|
+
|
|
15526
15773
|
@property
|
|
15527
15774
|
def Offset(self):
|
|
15528
15775
|
return self._Offset
|
|
@@ -15532,32 +15779,28 @@ class DescribePrometheusAlertPolicyRequest(AbstractModel):
|
|
|
15532
15779
|
self._Offset = Offset
|
|
15533
15780
|
|
|
15534
15781
|
@property
|
|
15535
|
-
def
|
|
15536
|
-
return self.
|
|
15782
|
+
def GroupId(self):
|
|
15783
|
+
return self._GroupId
|
|
15537
15784
|
|
|
15538
|
-
@
|
|
15539
|
-
def
|
|
15540
|
-
self.
|
|
15785
|
+
@GroupId.setter
|
|
15786
|
+
def GroupId(self, GroupId):
|
|
15787
|
+
self._GroupId = GroupId
|
|
15541
15788
|
|
|
15542
15789
|
@property
|
|
15543
|
-
def
|
|
15544
|
-
return self.
|
|
15790
|
+
def GroupName(self):
|
|
15791
|
+
return self._GroupName
|
|
15545
15792
|
|
|
15546
|
-
@
|
|
15547
|
-
def
|
|
15548
|
-
self.
|
|
15793
|
+
@GroupName.setter
|
|
15794
|
+
def GroupName(self, GroupName):
|
|
15795
|
+
self._GroupName = GroupName
|
|
15549
15796
|
|
|
15550
15797
|
|
|
15551
15798
|
def _deserialize(self, params):
|
|
15552
15799
|
self._InstanceId = params.get("InstanceId")
|
|
15553
|
-
self._Offset = params.get("Offset")
|
|
15554
15800
|
self._Limit = params.get("Limit")
|
|
15555
|
-
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
obj = Filter()
|
|
15559
|
-
obj._deserialize(item)
|
|
15560
|
-
self._Filters.append(obj)
|
|
15801
|
+
self._Offset = params.get("Offset")
|
|
15802
|
+
self._GroupId = params.get("GroupId")
|
|
15803
|
+
self._GroupName = params.get("GroupName")
|
|
15561
15804
|
memeber_set = set(params.keys())
|
|
15562
15805
|
for name, value in vars(self).items():
|
|
15563
15806
|
property_name = name[1:]
|
|
@@ -15568,40 +15811,171 @@ class DescribePrometheusAlertPolicyRequest(AbstractModel):
|
|
|
15568
15811
|
|
|
15569
15812
|
|
|
15570
15813
|
|
|
15571
|
-
class
|
|
15572
|
-
"""
|
|
15814
|
+
class DescribePrometheusAlertGroupsResponse(AbstractModel):
|
|
15815
|
+
"""DescribePrometheusAlertGroups返回参数结构体
|
|
15573
15816
|
|
|
15574
15817
|
"""
|
|
15575
15818
|
|
|
15576
15819
|
def __init__(self):
|
|
15577
15820
|
r"""
|
|
15578
|
-
:param
|
|
15821
|
+
:param _AlertGroupSet: 告警分组信息
|
|
15579
15822
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
15580
|
-
:type
|
|
15581
|
-
:param
|
|
15582
|
-
|
|
15823
|
+
:type AlertGroupSet: list of PrometheusAlertGroupSet
|
|
15824
|
+
:param _TotalCount: 告警分组总数
|
|
15825
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15826
|
+
:type TotalCount: int
|
|
15583
15827
|
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
15584
15828
|
:type RequestId: str
|
|
15585
15829
|
"""
|
|
15586
|
-
self.
|
|
15587
|
-
self.
|
|
15830
|
+
self._AlertGroupSet = None
|
|
15831
|
+
self._TotalCount = None
|
|
15588
15832
|
self._RequestId = None
|
|
15589
15833
|
|
|
15590
15834
|
@property
|
|
15591
|
-
def
|
|
15592
|
-
return self.
|
|
15835
|
+
def AlertGroupSet(self):
|
|
15836
|
+
return self._AlertGroupSet
|
|
15593
15837
|
|
|
15594
|
-
@
|
|
15595
|
-
def
|
|
15596
|
-
self.
|
|
15838
|
+
@AlertGroupSet.setter
|
|
15839
|
+
def AlertGroupSet(self, AlertGroupSet):
|
|
15840
|
+
self._AlertGroupSet = AlertGroupSet
|
|
15597
15841
|
|
|
15598
15842
|
@property
|
|
15599
|
-
def
|
|
15600
|
-
return self.
|
|
15843
|
+
def TotalCount(self):
|
|
15844
|
+
return self._TotalCount
|
|
15601
15845
|
|
|
15602
|
-
@
|
|
15603
|
-
def
|
|
15604
|
-
self.
|
|
15846
|
+
@TotalCount.setter
|
|
15847
|
+
def TotalCount(self, TotalCount):
|
|
15848
|
+
self._TotalCount = TotalCount
|
|
15849
|
+
|
|
15850
|
+
@property
|
|
15851
|
+
def RequestId(self):
|
|
15852
|
+
return self._RequestId
|
|
15853
|
+
|
|
15854
|
+
@RequestId.setter
|
|
15855
|
+
def RequestId(self, RequestId):
|
|
15856
|
+
self._RequestId = RequestId
|
|
15857
|
+
|
|
15858
|
+
|
|
15859
|
+
def _deserialize(self, params):
|
|
15860
|
+
if params.get("AlertGroupSet") is not None:
|
|
15861
|
+
self._AlertGroupSet = []
|
|
15862
|
+
for item in params.get("AlertGroupSet"):
|
|
15863
|
+
obj = PrometheusAlertGroupSet()
|
|
15864
|
+
obj._deserialize(item)
|
|
15865
|
+
self._AlertGroupSet.append(obj)
|
|
15866
|
+
self._TotalCount = params.get("TotalCount")
|
|
15867
|
+
self._RequestId = params.get("RequestId")
|
|
15868
|
+
|
|
15869
|
+
|
|
15870
|
+
class DescribePrometheusAlertPolicyRequest(AbstractModel):
|
|
15871
|
+
"""DescribePrometheusAlertPolicy请求参数结构体
|
|
15872
|
+
|
|
15873
|
+
"""
|
|
15874
|
+
|
|
15875
|
+
def __init__(self):
|
|
15876
|
+
r"""
|
|
15877
|
+
:param _InstanceId: 实例id
|
|
15878
|
+
:type InstanceId: str
|
|
15879
|
+
:param _Offset: 分页
|
|
15880
|
+
:type Offset: int
|
|
15881
|
+
:param _Limit: 分页
|
|
15882
|
+
:type Limit: int
|
|
15883
|
+
:param _Filters: 过滤
|
|
15884
|
+
支持ID,Name
|
|
15885
|
+
:type Filters: list of Filter
|
|
15886
|
+
"""
|
|
15887
|
+
self._InstanceId = None
|
|
15888
|
+
self._Offset = None
|
|
15889
|
+
self._Limit = None
|
|
15890
|
+
self._Filters = None
|
|
15891
|
+
|
|
15892
|
+
@property
|
|
15893
|
+
def InstanceId(self):
|
|
15894
|
+
return self._InstanceId
|
|
15895
|
+
|
|
15896
|
+
@InstanceId.setter
|
|
15897
|
+
def InstanceId(self, InstanceId):
|
|
15898
|
+
self._InstanceId = InstanceId
|
|
15899
|
+
|
|
15900
|
+
@property
|
|
15901
|
+
def Offset(self):
|
|
15902
|
+
return self._Offset
|
|
15903
|
+
|
|
15904
|
+
@Offset.setter
|
|
15905
|
+
def Offset(self, Offset):
|
|
15906
|
+
self._Offset = Offset
|
|
15907
|
+
|
|
15908
|
+
@property
|
|
15909
|
+
def Limit(self):
|
|
15910
|
+
return self._Limit
|
|
15911
|
+
|
|
15912
|
+
@Limit.setter
|
|
15913
|
+
def Limit(self, Limit):
|
|
15914
|
+
self._Limit = Limit
|
|
15915
|
+
|
|
15916
|
+
@property
|
|
15917
|
+
def Filters(self):
|
|
15918
|
+
return self._Filters
|
|
15919
|
+
|
|
15920
|
+
@Filters.setter
|
|
15921
|
+
def Filters(self, Filters):
|
|
15922
|
+
self._Filters = Filters
|
|
15923
|
+
|
|
15924
|
+
|
|
15925
|
+
def _deserialize(self, params):
|
|
15926
|
+
self._InstanceId = params.get("InstanceId")
|
|
15927
|
+
self._Offset = params.get("Offset")
|
|
15928
|
+
self._Limit = params.get("Limit")
|
|
15929
|
+
if params.get("Filters") is not None:
|
|
15930
|
+
self._Filters = []
|
|
15931
|
+
for item in params.get("Filters"):
|
|
15932
|
+
obj = Filter()
|
|
15933
|
+
obj._deserialize(item)
|
|
15934
|
+
self._Filters.append(obj)
|
|
15935
|
+
memeber_set = set(params.keys())
|
|
15936
|
+
for name, value in vars(self).items():
|
|
15937
|
+
property_name = name[1:]
|
|
15938
|
+
if property_name in memeber_set:
|
|
15939
|
+
memeber_set.remove(property_name)
|
|
15940
|
+
if len(memeber_set) > 0:
|
|
15941
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15942
|
+
|
|
15943
|
+
|
|
15944
|
+
|
|
15945
|
+
class DescribePrometheusAlertPolicyResponse(AbstractModel):
|
|
15946
|
+
"""DescribePrometheusAlertPolicy返回参数结构体
|
|
15947
|
+
|
|
15948
|
+
"""
|
|
15949
|
+
|
|
15950
|
+
def __init__(self):
|
|
15951
|
+
r"""
|
|
15952
|
+
:param _AlertRules: 告警详情
|
|
15953
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
15954
|
+
:type AlertRules: list of PrometheusAlertPolicyItem
|
|
15955
|
+
:param _Total: 总数
|
|
15956
|
+
:type Total: int
|
|
15957
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
15958
|
+
:type RequestId: str
|
|
15959
|
+
"""
|
|
15960
|
+
self._AlertRules = None
|
|
15961
|
+
self._Total = None
|
|
15962
|
+
self._RequestId = None
|
|
15963
|
+
|
|
15964
|
+
@property
|
|
15965
|
+
def AlertRules(self):
|
|
15966
|
+
return self._AlertRules
|
|
15967
|
+
|
|
15968
|
+
@AlertRules.setter
|
|
15969
|
+
def AlertRules(self, AlertRules):
|
|
15970
|
+
self._AlertRules = AlertRules
|
|
15971
|
+
|
|
15972
|
+
@property
|
|
15973
|
+
def Total(self):
|
|
15974
|
+
return self._Total
|
|
15975
|
+
|
|
15976
|
+
@Total.setter
|
|
15977
|
+
def Total(self, Total):
|
|
15978
|
+
self._Total = Total
|
|
15605
15979
|
|
|
15606
15980
|
@property
|
|
15607
15981
|
def RequestId(self):
|
|
@@ -24214,25 +24588,91 @@ abnormal = 异常
|
|
|
24214
24588
|
|
|
24215
24589
|
|
|
24216
24590
|
|
|
24217
|
-
class
|
|
24218
|
-
"""
|
|
24591
|
+
class PrometheusAlertAllowTimeRange(AbstractModel):
|
|
24592
|
+
"""Prometheus自定义告警通知时间段
|
|
24219
24593
|
|
|
24220
24594
|
"""
|
|
24221
24595
|
|
|
24222
24596
|
def __init__(self):
|
|
24223
24597
|
r"""
|
|
24224
|
-
:param
|
|
24598
|
+
:param _Start: 从0点开始的秒数
|
|
24599
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24600
|
+
:type Start: str
|
|
24601
|
+
:param _End: 从0点开始的秒数
|
|
24602
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24603
|
+
:type End: str
|
|
24604
|
+
"""
|
|
24605
|
+
self._Start = None
|
|
24606
|
+
self._End = None
|
|
24607
|
+
|
|
24608
|
+
@property
|
|
24609
|
+
def Start(self):
|
|
24610
|
+
return self._Start
|
|
24611
|
+
|
|
24612
|
+
@Start.setter
|
|
24613
|
+
def Start(self, Start):
|
|
24614
|
+
self._Start = Start
|
|
24615
|
+
|
|
24616
|
+
@property
|
|
24617
|
+
def End(self):
|
|
24618
|
+
return self._End
|
|
24619
|
+
|
|
24620
|
+
@End.setter
|
|
24621
|
+
def End(self, End):
|
|
24622
|
+
self._End = End
|
|
24623
|
+
|
|
24624
|
+
|
|
24625
|
+
def _deserialize(self, params):
|
|
24626
|
+
self._Start = params.get("Start")
|
|
24627
|
+
self._End = params.get("End")
|
|
24628
|
+
memeber_set = set(params.keys())
|
|
24629
|
+
for name, value in vars(self).items():
|
|
24630
|
+
property_name = name[1:]
|
|
24631
|
+
if property_name in memeber_set:
|
|
24632
|
+
memeber_set.remove(property_name)
|
|
24633
|
+
if len(memeber_set) > 0:
|
|
24634
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
24635
|
+
|
|
24636
|
+
|
|
24637
|
+
|
|
24638
|
+
class PrometheusAlertCustomReceiver(AbstractModel):
|
|
24639
|
+
"""Prometheus告警自定义通知模板
|
|
24640
|
+
|
|
24641
|
+
"""
|
|
24642
|
+
|
|
24643
|
+
def __init__(self):
|
|
24644
|
+
r"""
|
|
24645
|
+
:param _Type: 自定义通知类型
|
|
24646
|
+
alertmanager -- vpc内自建alertmanager
|
|
24647
|
+
webhook -- vpc内webhook地址
|
|
24648
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24649
|
+
:type Type: str
|
|
24650
|
+
:param _Url: alertmanager/webhook地址。(prometheus实例同vpc内ip)
|
|
24651
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24225
24652
|
:type Url: str
|
|
24226
|
-
:param
|
|
24653
|
+
:param _AllowedTimeRanges: 允许发送告警的时间范围
|
|
24227
24654
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
24228
|
-
:type
|
|
24229
|
-
:param _ClusterId: alertmanager
|
|
24655
|
+
:type AllowedTimeRanges: list of PrometheusAlertAllowTimeRange
|
|
24656
|
+
:param _ClusterId: alertmanager所在的内网集群ID
|
|
24230
24657
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
24231
24658
|
:type ClusterId: str
|
|
24659
|
+
:param _ClusterType: alertmanager所在的内网集群类型(tke/eks/tdcc)
|
|
24660
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24661
|
+
:type ClusterType: str
|
|
24232
24662
|
"""
|
|
24663
|
+
self._Type = None
|
|
24233
24664
|
self._Url = None
|
|
24234
|
-
self.
|
|
24665
|
+
self._AllowedTimeRanges = None
|
|
24235
24666
|
self._ClusterId = None
|
|
24667
|
+
self._ClusterType = None
|
|
24668
|
+
|
|
24669
|
+
@property
|
|
24670
|
+
def Type(self):
|
|
24671
|
+
return self._Type
|
|
24672
|
+
|
|
24673
|
+
@Type.setter
|
|
24674
|
+
def Type(self, Type):
|
|
24675
|
+
self._Type = Type
|
|
24236
24676
|
|
|
24237
24677
|
@property
|
|
24238
24678
|
def Url(self):
|
|
@@ -24243,12 +24683,12 @@ class PrometheusAlertManagerConfig(AbstractModel):
|
|
|
24243
24683
|
self._Url = Url
|
|
24244
24684
|
|
|
24245
24685
|
@property
|
|
24246
|
-
def
|
|
24247
|
-
return self.
|
|
24686
|
+
def AllowedTimeRanges(self):
|
|
24687
|
+
return self._AllowedTimeRanges
|
|
24248
24688
|
|
|
24249
|
-
@
|
|
24250
|
-
def
|
|
24251
|
-
self.
|
|
24689
|
+
@AllowedTimeRanges.setter
|
|
24690
|
+
def AllowedTimeRanges(self, AllowedTimeRanges):
|
|
24691
|
+
self._AllowedTimeRanges = AllowedTimeRanges
|
|
24252
24692
|
|
|
24253
24693
|
@property
|
|
24254
24694
|
def ClusterId(self):
|
|
@@ -24258,11 +24698,26 @@ class PrometheusAlertManagerConfig(AbstractModel):
|
|
|
24258
24698
|
def ClusterId(self, ClusterId):
|
|
24259
24699
|
self._ClusterId = ClusterId
|
|
24260
24700
|
|
|
24701
|
+
@property
|
|
24702
|
+
def ClusterType(self):
|
|
24703
|
+
return self._ClusterType
|
|
24704
|
+
|
|
24705
|
+
@ClusterType.setter
|
|
24706
|
+
def ClusterType(self, ClusterType):
|
|
24707
|
+
self._ClusterType = ClusterType
|
|
24708
|
+
|
|
24261
24709
|
|
|
24262
24710
|
def _deserialize(self, params):
|
|
24711
|
+
self._Type = params.get("Type")
|
|
24263
24712
|
self._Url = params.get("Url")
|
|
24264
|
-
|
|
24713
|
+
if params.get("AllowedTimeRanges") is not None:
|
|
24714
|
+
self._AllowedTimeRanges = []
|
|
24715
|
+
for item in params.get("AllowedTimeRanges"):
|
|
24716
|
+
obj = PrometheusAlertAllowTimeRange()
|
|
24717
|
+
obj._deserialize(item)
|
|
24718
|
+
self._AllowedTimeRanges.append(obj)
|
|
24265
24719
|
self._ClusterId = params.get("ClusterId")
|
|
24720
|
+
self._ClusterType = params.get("ClusterType")
|
|
24266
24721
|
memeber_set = set(params.keys())
|
|
24267
24722
|
for name, value in vars(self).items():
|
|
24268
24723
|
property_name = name[1:]
|
|
@@ -24273,61 +24728,379 @@ class PrometheusAlertManagerConfig(AbstractModel):
|
|
|
24273
24728
|
|
|
24274
24729
|
|
|
24275
24730
|
|
|
24276
|
-
class
|
|
24277
|
-
"""
|
|
24731
|
+
class PrometheusAlertGroupRuleSet(AbstractModel):
|
|
24732
|
+
"""告警分组内告警规则信息
|
|
24278
24733
|
|
|
24279
24734
|
"""
|
|
24280
24735
|
|
|
24281
24736
|
def __init__(self):
|
|
24282
24737
|
r"""
|
|
24283
|
-
:param
|
|
24284
|
-
:type Name: str
|
|
24285
|
-
:param _Rules: 规则列表
|
|
24286
|
-
:type Rules: list of PrometheusAlertRule
|
|
24287
|
-
:param _Id: 告警策略 id
|
|
24738
|
+
:param _RuleName: 告警规则名称,同一告警分组下不允许重名
|
|
24288
24739
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
24289
|
-
:type
|
|
24290
|
-
:param
|
|
24740
|
+
:type RuleName: str
|
|
24741
|
+
:param _Labels: 标签列表
|
|
24291
24742
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
24292
|
-
:type
|
|
24293
|
-
:param
|
|
24743
|
+
:type Labels: list of PrometheusRuleKV
|
|
24744
|
+
:param _Annotations: 注释列表
|
|
24745
|
+
|
|
24746
|
+
告警对象和告警消息是 Prometheus Rule Annotations 的特殊字段,需要通过 annotations 来传递,对应的 Key 分别为summary/description。
|
|
24294
24747
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
24295
|
-
:type
|
|
24296
|
-
:param
|
|
24748
|
+
:type Annotations: list of PrometheusRuleKV
|
|
24749
|
+
:param _Duration: 规则报警持续时间
|
|
24297
24750
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
24298
|
-
:type
|
|
24299
|
-
:param
|
|
24751
|
+
:type Duration: str
|
|
24752
|
+
:param _Expr: 规则表达式,可参考<a href="https://cloud.tencent.com/document/product/1416/56008">告警规则说明</a>
|
|
24300
24753
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
24301
|
-
:type
|
|
24754
|
+
:type Expr: str
|
|
24755
|
+
:param _State: 告警规则状态:
|
|
24756
|
+
2-启用
|
|
24757
|
+
3-禁用
|
|
24758
|
+
为空默认启用
|
|
24759
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24760
|
+
:type State: int
|
|
24302
24761
|
"""
|
|
24303
|
-
self.
|
|
24304
|
-
self.
|
|
24305
|
-
self.
|
|
24306
|
-
self.
|
|
24307
|
-
self.
|
|
24308
|
-
self.
|
|
24309
|
-
self._ClusterId = None
|
|
24762
|
+
self._RuleName = None
|
|
24763
|
+
self._Labels = None
|
|
24764
|
+
self._Annotations = None
|
|
24765
|
+
self._Duration = None
|
|
24766
|
+
self._Expr = None
|
|
24767
|
+
self._State = None
|
|
24310
24768
|
|
|
24311
24769
|
@property
|
|
24312
|
-
def
|
|
24313
|
-
return self.
|
|
24770
|
+
def RuleName(self):
|
|
24771
|
+
return self._RuleName
|
|
24314
24772
|
|
|
24315
|
-
@
|
|
24316
|
-
def
|
|
24317
|
-
self.
|
|
24773
|
+
@RuleName.setter
|
|
24774
|
+
def RuleName(self, RuleName):
|
|
24775
|
+
self._RuleName = RuleName
|
|
24318
24776
|
|
|
24319
24777
|
@property
|
|
24320
|
-
def
|
|
24321
|
-
return self.
|
|
24778
|
+
def Labels(self):
|
|
24779
|
+
return self._Labels
|
|
24322
24780
|
|
|
24323
|
-
@
|
|
24324
|
-
def
|
|
24325
|
-
self.
|
|
24781
|
+
@Labels.setter
|
|
24782
|
+
def Labels(self, Labels):
|
|
24783
|
+
self._Labels = Labels
|
|
24326
24784
|
|
|
24327
24785
|
@property
|
|
24328
|
-
def
|
|
24329
|
-
return self.
|
|
24330
|
-
|
|
24786
|
+
def Annotations(self):
|
|
24787
|
+
return self._Annotations
|
|
24788
|
+
|
|
24789
|
+
@Annotations.setter
|
|
24790
|
+
def Annotations(self, Annotations):
|
|
24791
|
+
self._Annotations = Annotations
|
|
24792
|
+
|
|
24793
|
+
@property
|
|
24794
|
+
def Duration(self):
|
|
24795
|
+
return self._Duration
|
|
24796
|
+
|
|
24797
|
+
@Duration.setter
|
|
24798
|
+
def Duration(self, Duration):
|
|
24799
|
+
self._Duration = Duration
|
|
24800
|
+
|
|
24801
|
+
@property
|
|
24802
|
+
def Expr(self):
|
|
24803
|
+
return self._Expr
|
|
24804
|
+
|
|
24805
|
+
@Expr.setter
|
|
24806
|
+
def Expr(self, Expr):
|
|
24807
|
+
self._Expr = Expr
|
|
24808
|
+
|
|
24809
|
+
@property
|
|
24810
|
+
def State(self):
|
|
24811
|
+
return self._State
|
|
24812
|
+
|
|
24813
|
+
@State.setter
|
|
24814
|
+
def State(self, State):
|
|
24815
|
+
self._State = State
|
|
24816
|
+
|
|
24817
|
+
|
|
24818
|
+
def _deserialize(self, params):
|
|
24819
|
+
self._RuleName = params.get("RuleName")
|
|
24820
|
+
if params.get("Labels") is not None:
|
|
24821
|
+
self._Labels = []
|
|
24822
|
+
for item in params.get("Labels"):
|
|
24823
|
+
obj = PrometheusRuleKV()
|
|
24824
|
+
obj._deserialize(item)
|
|
24825
|
+
self._Labels.append(obj)
|
|
24826
|
+
if params.get("Annotations") is not None:
|
|
24827
|
+
self._Annotations = []
|
|
24828
|
+
for item in params.get("Annotations"):
|
|
24829
|
+
obj = PrometheusRuleKV()
|
|
24830
|
+
obj._deserialize(item)
|
|
24831
|
+
self._Annotations.append(obj)
|
|
24832
|
+
self._Duration = params.get("Duration")
|
|
24833
|
+
self._Expr = params.get("Expr")
|
|
24834
|
+
self._State = params.get("State")
|
|
24835
|
+
memeber_set = set(params.keys())
|
|
24836
|
+
for name, value in vars(self).items():
|
|
24837
|
+
property_name = name[1:]
|
|
24838
|
+
if property_name in memeber_set:
|
|
24839
|
+
memeber_set.remove(property_name)
|
|
24840
|
+
if len(memeber_set) > 0:
|
|
24841
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
24842
|
+
|
|
24843
|
+
|
|
24844
|
+
|
|
24845
|
+
class PrometheusAlertGroupSet(AbstractModel):
|
|
24846
|
+
"""Prometheus告警规则分组信息
|
|
24847
|
+
|
|
24848
|
+
"""
|
|
24849
|
+
|
|
24850
|
+
def __init__(self):
|
|
24851
|
+
r"""
|
|
24852
|
+
:param _GroupId: 告警分组ID,满足正则表达式`alert-[a-z0-9]{8}`
|
|
24853
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24854
|
+
:type GroupId: str
|
|
24855
|
+
:param _GroupName: 告警分组名称
|
|
24856
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24857
|
+
:type GroupName: str
|
|
24858
|
+
:param _AMPReceivers: 云监控告警模板ID ,返回告警模板转换后的notice ID。
|
|
24859
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24860
|
+
:type AMPReceivers: list of str
|
|
24861
|
+
:param _CustomReceiver: 自定义告警模板
|
|
24862
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24863
|
+
:type CustomReceiver: :class:`tencentcloud.monitor.v20180724.models.PrometheusAlertCustomReceiver`
|
|
24864
|
+
:param _RepeatInterval: 告警通知间隔
|
|
24865
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24866
|
+
:type RepeatInterval: str
|
|
24867
|
+
:param _TemplateId: 若告警分组通过模板创建,则返回模板ID
|
|
24868
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24869
|
+
:type TemplateId: str
|
|
24870
|
+
:param _Rules: 分组内告警规则详情
|
|
24871
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24872
|
+
:type Rules: list of PrometheusAlertGroupRuleSet
|
|
24873
|
+
:param _CreatedAt: 分组创建时间
|
|
24874
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24875
|
+
:type CreatedAt: str
|
|
24876
|
+
:param _UpdatedAt: 分组更新时间
|
|
24877
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
24878
|
+
:type UpdatedAt: str
|
|
24879
|
+
"""
|
|
24880
|
+
self._GroupId = None
|
|
24881
|
+
self._GroupName = None
|
|
24882
|
+
self._AMPReceivers = None
|
|
24883
|
+
self._CustomReceiver = None
|
|
24884
|
+
self._RepeatInterval = None
|
|
24885
|
+
self._TemplateId = None
|
|
24886
|
+
self._Rules = None
|
|
24887
|
+
self._CreatedAt = None
|
|
24888
|
+
self._UpdatedAt = None
|
|
24889
|
+
|
|
24890
|
+
@property
|
|
24891
|
+
def GroupId(self):
|
|
24892
|
+
return self._GroupId
|
|
24893
|
+
|
|
24894
|
+
@GroupId.setter
|
|
24895
|
+
def GroupId(self, GroupId):
|
|
24896
|
+
self._GroupId = GroupId
|
|
24897
|
+
|
|
24898
|
+
@property
|
|
24899
|
+
def GroupName(self):
|
|
24900
|
+
return self._GroupName
|
|
24901
|
+
|
|
24902
|
+
@GroupName.setter
|
|
24903
|
+
def GroupName(self, GroupName):
|
|
24904
|
+
self._GroupName = GroupName
|
|
24905
|
+
|
|
24906
|
+
@property
|
|
24907
|
+
def AMPReceivers(self):
|
|
24908
|
+
return self._AMPReceivers
|
|
24909
|
+
|
|
24910
|
+
@AMPReceivers.setter
|
|
24911
|
+
def AMPReceivers(self, AMPReceivers):
|
|
24912
|
+
self._AMPReceivers = AMPReceivers
|
|
24913
|
+
|
|
24914
|
+
@property
|
|
24915
|
+
def CustomReceiver(self):
|
|
24916
|
+
return self._CustomReceiver
|
|
24917
|
+
|
|
24918
|
+
@CustomReceiver.setter
|
|
24919
|
+
def CustomReceiver(self, CustomReceiver):
|
|
24920
|
+
self._CustomReceiver = CustomReceiver
|
|
24921
|
+
|
|
24922
|
+
@property
|
|
24923
|
+
def RepeatInterval(self):
|
|
24924
|
+
return self._RepeatInterval
|
|
24925
|
+
|
|
24926
|
+
@RepeatInterval.setter
|
|
24927
|
+
def RepeatInterval(self, RepeatInterval):
|
|
24928
|
+
self._RepeatInterval = RepeatInterval
|
|
24929
|
+
|
|
24930
|
+
@property
|
|
24931
|
+
def TemplateId(self):
|
|
24932
|
+
return self._TemplateId
|
|
24933
|
+
|
|
24934
|
+
@TemplateId.setter
|
|
24935
|
+
def TemplateId(self, TemplateId):
|
|
24936
|
+
self._TemplateId = TemplateId
|
|
24937
|
+
|
|
24938
|
+
@property
|
|
24939
|
+
def Rules(self):
|
|
24940
|
+
return self._Rules
|
|
24941
|
+
|
|
24942
|
+
@Rules.setter
|
|
24943
|
+
def Rules(self, Rules):
|
|
24944
|
+
self._Rules = Rules
|
|
24945
|
+
|
|
24946
|
+
@property
|
|
24947
|
+
def CreatedAt(self):
|
|
24948
|
+
return self._CreatedAt
|
|
24949
|
+
|
|
24950
|
+
@CreatedAt.setter
|
|
24951
|
+
def CreatedAt(self, CreatedAt):
|
|
24952
|
+
self._CreatedAt = CreatedAt
|
|
24953
|
+
|
|
24954
|
+
@property
|
|
24955
|
+
def UpdatedAt(self):
|
|
24956
|
+
return self._UpdatedAt
|
|
24957
|
+
|
|
24958
|
+
@UpdatedAt.setter
|
|
24959
|
+
def UpdatedAt(self, UpdatedAt):
|
|
24960
|
+
self._UpdatedAt = UpdatedAt
|
|
24961
|
+
|
|
24962
|
+
|
|
24963
|
+
def _deserialize(self, params):
|
|
24964
|
+
self._GroupId = params.get("GroupId")
|
|
24965
|
+
self._GroupName = params.get("GroupName")
|
|
24966
|
+
self._AMPReceivers = params.get("AMPReceivers")
|
|
24967
|
+
if params.get("CustomReceiver") is not None:
|
|
24968
|
+
self._CustomReceiver = PrometheusAlertCustomReceiver()
|
|
24969
|
+
self._CustomReceiver._deserialize(params.get("CustomReceiver"))
|
|
24970
|
+
self._RepeatInterval = params.get("RepeatInterval")
|
|
24971
|
+
self._TemplateId = params.get("TemplateId")
|
|
24972
|
+
if params.get("Rules") is not None:
|
|
24973
|
+
self._Rules = []
|
|
24974
|
+
for item in params.get("Rules"):
|
|
24975
|
+
obj = PrometheusAlertGroupRuleSet()
|
|
24976
|
+
obj._deserialize(item)
|
|
24977
|
+
self._Rules.append(obj)
|
|
24978
|
+
self._CreatedAt = params.get("CreatedAt")
|
|
24979
|
+
self._UpdatedAt = params.get("UpdatedAt")
|
|
24980
|
+
memeber_set = set(params.keys())
|
|
24981
|
+
for name, value in vars(self).items():
|
|
24982
|
+
property_name = name[1:]
|
|
24983
|
+
if property_name in memeber_set:
|
|
24984
|
+
memeber_set.remove(property_name)
|
|
24985
|
+
if len(memeber_set) > 0:
|
|
24986
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
24987
|
+
|
|
24988
|
+
|
|
24989
|
+
|
|
24990
|
+
class PrometheusAlertManagerConfig(AbstractModel):
|
|
24991
|
+
"""告警渠道使用自建alertmanager的配置
|
|
24992
|
+
|
|
24993
|
+
"""
|
|
24994
|
+
|
|
24995
|
+
def __init__(self):
|
|
24996
|
+
r"""
|
|
24997
|
+
:param _Url: alertmanager url
|
|
24998
|
+
:type Url: str
|
|
24999
|
+
:param _ClusterType: alertmanager部署所在集群类型
|
|
25000
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
25001
|
+
:type ClusterType: str
|
|
25002
|
+
:param _ClusterId: alertmanager部署所在集群ID
|
|
25003
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
25004
|
+
:type ClusterId: str
|
|
25005
|
+
"""
|
|
25006
|
+
self._Url = None
|
|
25007
|
+
self._ClusterType = None
|
|
25008
|
+
self._ClusterId = None
|
|
25009
|
+
|
|
25010
|
+
@property
|
|
25011
|
+
def Url(self):
|
|
25012
|
+
return self._Url
|
|
25013
|
+
|
|
25014
|
+
@Url.setter
|
|
25015
|
+
def Url(self, Url):
|
|
25016
|
+
self._Url = Url
|
|
25017
|
+
|
|
25018
|
+
@property
|
|
25019
|
+
def ClusterType(self):
|
|
25020
|
+
return self._ClusterType
|
|
25021
|
+
|
|
25022
|
+
@ClusterType.setter
|
|
25023
|
+
def ClusterType(self, ClusterType):
|
|
25024
|
+
self._ClusterType = ClusterType
|
|
25025
|
+
|
|
25026
|
+
@property
|
|
25027
|
+
def ClusterId(self):
|
|
25028
|
+
return self._ClusterId
|
|
25029
|
+
|
|
25030
|
+
@ClusterId.setter
|
|
25031
|
+
def ClusterId(self, ClusterId):
|
|
25032
|
+
self._ClusterId = ClusterId
|
|
25033
|
+
|
|
25034
|
+
|
|
25035
|
+
def _deserialize(self, params):
|
|
25036
|
+
self._Url = params.get("Url")
|
|
25037
|
+
self._ClusterType = params.get("ClusterType")
|
|
25038
|
+
self._ClusterId = params.get("ClusterId")
|
|
25039
|
+
memeber_set = set(params.keys())
|
|
25040
|
+
for name, value in vars(self).items():
|
|
25041
|
+
property_name = name[1:]
|
|
25042
|
+
if property_name in memeber_set:
|
|
25043
|
+
memeber_set.remove(property_name)
|
|
25044
|
+
if len(memeber_set) > 0:
|
|
25045
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
25046
|
+
|
|
25047
|
+
|
|
25048
|
+
|
|
25049
|
+
class PrometheusAlertPolicyItem(AbstractModel):
|
|
25050
|
+
"""托管prometheus告警策略实例
|
|
25051
|
+
|
|
25052
|
+
"""
|
|
25053
|
+
|
|
25054
|
+
def __init__(self):
|
|
25055
|
+
r"""
|
|
25056
|
+
:param _Name: 策略名称
|
|
25057
|
+
:type Name: str
|
|
25058
|
+
:param _Rules: 规则列表
|
|
25059
|
+
:type Rules: list of PrometheusAlertRule
|
|
25060
|
+
:param _Id: 告警策略 id
|
|
25061
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
25062
|
+
:type Id: str
|
|
25063
|
+
:param _TemplateId: 如果该告警来自模板下发,则TemplateId为模板id
|
|
25064
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
25065
|
+
:type TemplateId: str
|
|
25066
|
+
:param _Notification: 告警渠道,模板中使用可能返回null
|
|
25067
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
25068
|
+
:type Notification: :class:`tencentcloud.monitor.v20180724.models.PrometheusNotificationItem`
|
|
25069
|
+
:param _UpdatedAt: 最后修改时间
|
|
25070
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
25071
|
+
:type UpdatedAt: str
|
|
25072
|
+
:param _ClusterId: 如果告警策略来源于用户集群CRD资源定义,则ClusterId为所属集群ID
|
|
25073
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
25074
|
+
:type ClusterId: str
|
|
25075
|
+
"""
|
|
25076
|
+
self._Name = None
|
|
25077
|
+
self._Rules = None
|
|
25078
|
+
self._Id = None
|
|
25079
|
+
self._TemplateId = None
|
|
25080
|
+
self._Notification = None
|
|
25081
|
+
self._UpdatedAt = None
|
|
25082
|
+
self._ClusterId = None
|
|
25083
|
+
|
|
25084
|
+
@property
|
|
25085
|
+
def Name(self):
|
|
25086
|
+
return self._Name
|
|
25087
|
+
|
|
25088
|
+
@Name.setter
|
|
25089
|
+
def Name(self, Name):
|
|
25090
|
+
self._Name = Name
|
|
25091
|
+
|
|
25092
|
+
@property
|
|
25093
|
+
def Rules(self):
|
|
25094
|
+
return self._Rules
|
|
25095
|
+
|
|
25096
|
+
@Rules.setter
|
|
25097
|
+
def Rules(self, Rules):
|
|
25098
|
+
self._Rules = Rules
|
|
25099
|
+
|
|
25100
|
+
@property
|
|
25101
|
+
def Id(self):
|
|
25102
|
+
return self._Id
|
|
25103
|
+
|
|
24331
25104
|
@Id.setter
|
|
24332
25105
|
def Id(self, Id):
|
|
24333
25106
|
self._Id = Id
|
|
@@ -30013,6 +30786,254 @@ class UpdatePrometheusAgentStatusResponse(AbstractModel):
|
|
|
30013
30786
|
self._RequestId = params.get("RequestId")
|
|
30014
30787
|
|
|
30015
30788
|
|
|
30789
|
+
class UpdatePrometheusAlertGroupRequest(AbstractModel):
|
|
30790
|
+
"""UpdatePrometheusAlertGroup请求参数结构体
|
|
30791
|
+
|
|
30792
|
+
"""
|
|
30793
|
+
|
|
30794
|
+
def __init__(self):
|
|
30795
|
+
r"""
|
|
30796
|
+
:param _InstanceId: prometheus实例ID
|
|
30797
|
+
:type InstanceId: str
|
|
30798
|
+
:param _GroupId: 告警分组ID,形如alert-xxxx
|
|
30799
|
+
:type GroupId: str
|
|
30800
|
+
:param _GroupName: 告警分组名称,不能与其他告警分组重名
|
|
30801
|
+
:type GroupName: str
|
|
30802
|
+
:param _GroupState: 告警分组状态:
|
|
30803
|
+
2 -- 启用
|
|
30804
|
+
3 -- 禁用
|
|
30805
|
+
不为空时会覆盖 `Rules`字段下所有告警规则状态
|
|
30806
|
+
:type GroupState: int
|
|
30807
|
+
:param _AMPReceivers: 云监控告警通知模板ID列表,形如Consumer-xxxx或notice-xxxx
|
|
30808
|
+
:type AMPReceivers: list of str
|
|
30809
|
+
:param _CustomReceiver: 自定义告警通知模板
|
|
30810
|
+
:type CustomReceiver: :class:`tencentcloud.monitor.v20180724.models.PrometheusAlertCustomReceiver`
|
|
30811
|
+
:param _RepeatInterval: 告警通知周期(收敛时间),为空默认1h
|
|
30812
|
+
:type RepeatInterval: str
|
|
30813
|
+
:param _Rules: 要创建的告警规则列表
|
|
30814
|
+
:type Rules: list of PrometheusAlertGroupRuleSet
|
|
30815
|
+
"""
|
|
30816
|
+
self._InstanceId = None
|
|
30817
|
+
self._GroupId = None
|
|
30818
|
+
self._GroupName = None
|
|
30819
|
+
self._GroupState = None
|
|
30820
|
+
self._AMPReceivers = None
|
|
30821
|
+
self._CustomReceiver = None
|
|
30822
|
+
self._RepeatInterval = None
|
|
30823
|
+
self._Rules = None
|
|
30824
|
+
|
|
30825
|
+
@property
|
|
30826
|
+
def InstanceId(self):
|
|
30827
|
+
return self._InstanceId
|
|
30828
|
+
|
|
30829
|
+
@InstanceId.setter
|
|
30830
|
+
def InstanceId(self, InstanceId):
|
|
30831
|
+
self._InstanceId = InstanceId
|
|
30832
|
+
|
|
30833
|
+
@property
|
|
30834
|
+
def GroupId(self):
|
|
30835
|
+
return self._GroupId
|
|
30836
|
+
|
|
30837
|
+
@GroupId.setter
|
|
30838
|
+
def GroupId(self, GroupId):
|
|
30839
|
+
self._GroupId = GroupId
|
|
30840
|
+
|
|
30841
|
+
@property
|
|
30842
|
+
def GroupName(self):
|
|
30843
|
+
return self._GroupName
|
|
30844
|
+
|
|
30845
|
+
@GroupName.setter
|
|
30846
|
+
def GroupName(self, GroupName):
|
|
30847
|
+
self._GroupName = GroupName
|
|
30848
|
+
|
|
30849
|
+
@property
|
|
30850
|
+
def GroupState(self):
|
|
30851
|
+
return self._GroupState
|
|
30852
|
+
|
|
30853
|
+
@GroupState.setter
|
|
30854
|
+
def GroupState(self, GroupState):
|
|
30855
|
+
self._GroupState = GroupState
|
|
30856
|
+
|
|
30857
|
+
@property
|
|
30858
|
+
def AMPReceivers(self):
|
|
30859
|
+
return self._AMPReceivers
|
|
30860
|
+
|
|
30861
|
+
@AMPReceivers.setter
|
|
30862
|
+
def AMPReceivers(self, AMPReceivers):
|
|
30863
|
+
self._AMPReceivers = AMPReceivers
|
|
30864
|
+
|
|
30865
|
+
@property
|
|
30866
|
+
def CustomReceiver(self):
|
|
30867
|
+
return self._CustomReceiver
|
|
30868
|
+
|
|
30869
|
+
@CustomReceiver.setter
|
|
30870
|
+
def CustomReceiver(self, CustomReceiver):
|
|
30871
|
+
self._CustomReceiver = CustomReceiver
|
|
30872
|
+
|
|
30873
|
+
@property
|
|
30874
|
+
def RepeatInterval(self):
|
|
30875
|
+
return self._RepeatInterval
|
|
30876
|
+
|
|
30877
|
+
@RepeatInterval.setter
|
|
30878
|
+
def RepeatInterval(self, RepeatInterval):
|
|
30879
|
+
self._RepeatInterval = RepeatInterval
|
|
30880
|
+
|
|
30881
|
+
@property
|
|
30882
|
+
def Rules(self):
|
|
30883
|
+
return self._Rules
|
|
30884
|
+
|
|
30885
|
+
@Rules.setter
|
|
30886
|
+
def Rules(self, Rules):
|
|
30887
|
+
self._Rules = Rules
|
|
30888
|
+
|
|
30889
|
+
|
|
30890
|
+
def _deserialize(self, params):
|
|
30891
|
+
self._InstanceId = params.get("InstanceId")
|
|
30892
|
+
self._GroupId = params.get("GroupId")
|
|
30893
|
+
self._GroupName = params.get("GroupName")
|
|
30894
|
+
self._GroupState = params.get("GroupState")
|
|
30895
|
+
self._AMPReceivers = params.get("AMPReceivers")
|
|
30896
|
+
if params.get("CustomReceiver") is not None:
|
|
30897
|
+
self._CustomReceiver = PrometheusAlertCustomReceiver()
|
|
30898
|
+
self._CustomReceiver._deserialize(params.get("CustomReceiver"))
|
|
30899
|
+
self._RepeatInterval = params.get("RepeatInterval")
|
|
30900
|
+
if params.get("Rules") is not None:
|
|
30901
|
+
self._Rules = []
|
|
30902
|
+
for item in params.get("Rules"):
|
|
30903
|
+
obj = PrometheusAlertGroupRuleSet()
|
|
30904
|
+
obj._deserialize(item)
|
|
30905
|
+
self._Rules.append(obj)
|
|
30906
|
+
memeber_set = set(params.keys())
|
|
30907
|
+
for name, value in vars(self).items():
|
|
30908
|
+
property_name = name[1:]
|
|
30909
|
+
if property_name in memeber_set:
|
|
30910
|
+
memeber_set.remove(property_name)
|
|
30911
|
+
if len(memeber_set) > 0:
|
|
30912
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30913
|
+
|
|
30914
|
+
|
|
30915
|
+
|
|
30916
|
+
class UpdatePrometheusAlertGroupResponse(AbstractModel):
|
|
30917
|
+
"""UpdatePrometheusAlertGroup返回参数结构体
|
|
30918
|
+
|
|
30919
|
+
"""
|
|
30920
|
+
|
|
30921
|
+
def __init__(self):
|
|
30922
|
+
r"""
|
|
30923
|
+
:param _GroupId: 更新的告警分组ID,满足正则表达式`alert-[a-z0-9]{8}`
|
|
30924
|
+
:type GroupId: str
|
|
30925
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
30926
|
+
:type RequestId: str
|
|
30927
|
+
"""
|
|
30928
|
+
self._GroupId = None
|
|
30929
|
+
self._RequestId = None
|
|
30930
|
+
|
|
30931
|
+
@property
|
|
30932
|
+
def GroupId(self):
|
|
30933
|
+
return self._GroupId
|
|
30934
|
+
|
|
30935
|
+
@GroupId.setter
|
|
30936
|
+
def GroupId(self, GroupId):
|
|
30937
|
+
self._GroupId = GroupId
|
|
30938
|
+
|
|
30939
|
+
@property
|
|
30940
|
+
def RequestId(self):
|
|
30941
|
+
return self._RequestId
|
|
30942
|
+
|
|
30943
|
+
@RequestId.setter
|
|
30944
|
+
def RequestId(self, RequestId):
|
|
30945
|
+
self._RequestId = RequestId
|
|
30946
|
+
|
|
30947
|
+
|
|
30948
|
+
def _deserialize(self, params):
|
|
30949
|
+
self._GroupId = params.get("GroupId")
|
|
30950
|
+
self._RequestId = params.get("RequestId")
|
|
30951
|
+
|
|
30952
|
+
|
|
30953
|
+
class UpdatePrometheusAlertGroupStateRequest(AbstractModel):
|
|
30954
|
+
"""UpdatePrometheusAlertGroupState请求参数结构体
|
|
30955
|
+
|
|
30956
|
+
"""
|
|
30957
|
+
|
|
30958
|
+
def __init__(self):
|
|
30959
|
+
r"""
|
|
30960
|
+
:param _InstanceId: Prometheus 实例 ID
|
|
30961
|
+
:type InstanceId: str
|
|
30962
|
+
:param _GroupIds: 告警分组ID列表,形如alert-xxxx
|
|
30963
|
+
:type GroupIds: list of str
|
|
30964
|
+
:param _GroupState: 告警分组状态
|
|
30965
|
+
2 -- 启用
|
|
30966
|
+
3 -- 禁用
|
|
30967
|
+
:type GroupState: int
|
|
30968
|
+
"""
|
|
30969
|
+
self._InstanceId = None
|
|
30970
|
+
self._GroupIds = None
|
|
30971
|
+
self._GroupState = None
|
|
30972
|
+
|
|
30973
|
+
@property
|
|
30974
|
+
def InstanceId(self):
|
|
30975
|
+
return self._InstanceId
|
|
30976
|
+
|
|
30977
|
+
@InstanceId.setter
|
|
30978
|
+
def InstanceId(self, InstanceId):
|
|
30979
|
+
self._InstanceId = InstanceId
|
|
30980
|
+
|
|
30981
|
+
@property
|
|
30982
|
+
def GroupIds(self):
|
|
30983
|
+
return self._GroupIds
|
|
30984
|
+
|
|
30985
|
+
@GroupIds.setter
|
|
30986
|
+
def GroupIds(self, GroupIds):
|
|
30987
|
+
self._GroupIds = GroupIds
|
|
30988
|
+
|
|
30989
|
+
@property
|
|
30990
|
+
def GroupState(self):
|
|
30991
|
+
return self._GroupState
|
|
30992
|
+
|
|
30993
|
+
@GroupState.setter
|
|
30994
|
+
def GroupState(self, GroupState):
|
|
30995
|
+
self._GroupState = GroupState
|
|
30996
|
+
|
|
30997
|
+
|
|
30998
|
+
def _deserialize(self, params):
|
|
30999
|
+
self._InstanceId = params.get("InstanceId")
|
|
31000
|
+
self._GroupIds = params.get("GroupIds")
|
|
31001
|
+
self._GroupState = params.get("GroupState")
|
|
31002
|
+
memeber_set = set(params.keys())
|
|
31003
|
+
for name, value in vars(self).items():
|
|
31004
|
+
property_name = name[1:]
|
|
31005
|
+
if property_name in memeber_set:
|
|
31006
|
+
memeber_set.remove(property_name)
|
|
31007
|
+
if len(memeber_set) > 0:
|
|
31008
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
31009
|
+
|
|
31010
|
+
|
|
31011
|
+
|
|
31012
|
+
class UpdatePrometheusAlertGroupStateResponse(AbstractModel):
|
|
31013
|
+
"""UpdatePrometheusAlertGroupState返回参数结构体
|
|
31014
|
+
|
|
31015
|
+
"""
|
|
31016
|
+
|
|
31017
|
+
def __init__(self):
|
|
31018
|
+
r"""
|
|
31019
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
31020
|
+
:type RequestId: str
|
|
31021
|
+
"""
|
|
31022
|
+
self._RequestId = None
|
|
31023
|
+
|
|
31024
|
+
@property
|
|
31025
|
+
def RequestId(self):
|
|
31026
|
+
return self._RequestId
|
|
31027
|
+
|
|
31028
|
+
@RequestId.setter
|
|
31029
|
+
def RequestId(self, RequestId):
|
|
31030
|
+
self._RequestId = RequestId
|
|
31031
|
+
|
|
31032
|
+
|
|
31033
|
+
def _deserialize(self, params):
|
|
31034
|
+
self._RequestId = params.get("RequestId")
|
|
31035
|
+
|
|
31036
|
+
|
|
30016
31037
|
class UpdatePrometheusScrapeJobRequest(AbstractModel):
|
|
30017
31038
|
"""UpdatePrometheusScrapeJob请求参数结构体
|
|
30018
31039
|
|