tencentcloud-sdk-python 3.0.1344__py2.py3-none-any.whl → 3.0.1346__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/antiddos/v20200309/antiddos_client.py +0 -50
- tencentcloud/antiddos/v20200309/models.py +14 -689
- tencentcloud/apm/v20210622/models.py +60 -60
- tencentcloud/batch/v20170312/models.py +0 -150
- tencentcloud/bi/v20220105/models.py +6 -2
- tencentcloud/cbs/v20170312/models.py +0 -20
- tencentcloud/cdwch/v20200915/models.py +111 -256
- tencentcloud/ckafka/v20190819/models.py +2 -1204
- tencentcloud/clb/v20180317/models.py +10 -10
- tencentcloud/cls/v20201016/cls_client.py +0 -92
- tencentcloud/cls/v20201016/models.py +18 -1032
- tencentcloud/cvm/v20170312/models.py +15 -0
- tencentcloud/cynosdb/v20190107/models.py +0 -84
- tencentcloud/dbbrain/v20191016/models.py +2 -22
- tencentcloud/dbbrain/v20210527/models.py +17 -96
- tencentcloud/dcdb/v20180411/models.py +0 -48
- tencentcloud/dnspod/v20210323/dnspod_client.py +69 -0
- tencentcloud/dnspod/v20210323/errorcodes.py +9 -0
- tencentcloud/dnspod/v20210323/models.py +724 -0
- tencentcloud/dsgc/v20190723/dsgc_client.py +0 -23
- tencentcloud/dsgc/v20190723/models.py +0 -34
- tencentcloud/emr/v20190103/emr_client.py +1 -1
- tencentcloud/emr/v20190103/models.py +422 -15
- tencentcloud/hunyuan/v20230901/models.py +17 -2
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +23 -0
- tencentcloud/iotexplorer/v20190423/models.py +131 -0
- tencentcloud/iotvideoindustry/v20201201/iotvideoindustry_client.py +1 -1
- tencentcloud/iotvideoindustry/v20201201/models.py +15 -456
- tencentcloud/lke/v20231130/lke_client.py +0 -23
- tencentcloud/lke/v20231130/models.py +0 -79
- tencentcloud/lkeap/v20240522/lkeap_client.py +1 -1
- tencentcloud/mariadb/v20170312/models.py +0 -38
- tencentcloud/memcached/v20190318/models.py +2 -2
- tencentcloud/mmps/v20200710/models.py +0 -56
- tencentcloud/monitor/v20180724/models.py +446 -0
- tencentcloud/monitor/v20180724/monitor_client.py +23 -0
- tencentcloud/postgres/v20170312/models.py +0 -222
- tencentcloud/postgres/v20170312/postgres_client.py +5 -5
- tencentcloud/redis/v20180412/models.py +2 -4
- tencentcloud/svp/v20240125/models.py +0 -44
- tencentcloud/tcb/v20180608/models.py +0 -195
- tencentcloud/tcb/v20180608/tcb_client.py +0 -23
- tencentcloud/tcss/v20201101/models.py +1813 -2547
- tencentcloud/tcss/v20201101/tcss_client.py +92 -125
- tencentcloud/tdmq/v20200217/models.py +266 -154
- tencentcloud/tdmq/v20200217/tdmq_client.py +0 -23
- tencentcloud/teo/v20220901/errorcodes.py +3 -0
- tencentcloud/teo/v20220901/models.py +239 -38
- tencentcloud/teo/v20220901/teo_client.py +46 -0
- tencentcloud/thpc/v20211109/models.py +0 -6
- tencentcloud/thpc/v20220401/models.py +0 -12
- tencentcloud/thpc/v20230321/models.py +0 -20
- tencentcloud/tke/v20180525/models.py +0 -54
- tencentcloud/tke/v20220501/models.py +0 -34
- tencentcloud/vpc/v20170312/models.py +0 -34
- tencentcloud/waf/v20180125/models.py +15 -0
- tencentcloud/wedata/v20210820/models.py +254 -0
- {tencentcloud_sdk_python-3.0.1344.dist-info → tencentcloud_sdk_python-3.0.1346.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1344.dist-info → tencentcloud_sdk_python-3.0.1346.dist-info}/RECORD +63 -63
- {tencentcloud_sdk_python-3.0.1344.dist-info → tencentcloud_sdk_python-3.0.1346.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1344.dist-info → tencentcloud_sdk_python-3.0.1346.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1344.dist-info → tencentcloud_sdk_python-3.0.1346.dist-info}/top_level.txt +0 -0
@@ -5106,6 +5106,230 @@ class CreateAlertRuleResponse(AbstractModel):
|
|
5106
5106
|
self._RequestId = params.get("RequestId")
|
5107
5107
|
|
5108
5108
|
|
5109
|
+
class CreateConditionsTemplateRequest(AbstractModel):
|
5110
|
+
"""CreateConditionsTemplate请求参数结构体
|
5111
|
+
|
5112
|
+
"""
|
5113
|
+
|
5114
|
+
def __init__(self):
|
5115
|
+
r"""
|
5116
|
+
:param _Module: 固定值,monitor
|
5117
|
+
:type Module: str
|
5118
|
+
:param _ViewName: 视图名
|
5119
|
+
:type ViewName: str
|
5120
|
+
:param _GroupName: 组名
|
5121
|
+
:type GroupName: str
|
5122
|
+
:param _IsUnionRule: 是否为与关系
|
5123
|
+
:type IsUnionRule: int
|
5124
|
+
:param _Remark: 备注
|
5125
|
+
:type Remark: str
|
5126
|
+
:param _ParentGroupID: 父ID
|
5127
|
+
:type ParentGroupID: int
|
5128
|
+
:param _IsShielded: 是否屏蔽
|
5129
|
+
:type IsShielded: int
|
5130
|
+
:param _ComplexExpression: 复合告警表达式
|
5131
|
+
:type ComplexExpression: str
|
5132
|
+
:param _Conditions: 指标告警条件
|
5133
|
+
:type Conditions: list of ModifyConditionsTemplateRequestCondition
|
5134
|
+
:param _EventConditions: 事件告警条件
|
5135
|
+
:type EventConditions: list of ModifyConditionsTemplateRequestEventCondition
|
5136
|
+
"""
|
5137
|
+
self._Module = None
|
5138
|
+
self._ViewName = None
|
5139
|
+
self._GroupName = None
|
5140
|
+
self._IsUnionRule = None
|
5141
|
+
self._Remark = None
|
5142
|
+
self._ParentGroupID = None
|
5143
|
+
self._IsShielded = None
|
5144
|
+
self._ComplexExpression = None
|
5145
|
+
self._Conditions = None
|
5146
|
+
self._EventConditions = None
|
5147
|
+
|
5148
|
+
@property
|
5149
|
+
def Module(self):
|
5150
|
+
"""固定值,monitor
|
5151
|
+
:rtype: str
|
5152
|
+
"""
|
5153
|
+
return self._Module
|
5154
|
+
|
5155
|
+
@Module.setter
|
5156
|
+
def Module(self, Module):
|
5157
|
+
self._Module = Module
|
5158
|
+
|
5159
|
+
@property
|
5160
|
+
def ViewName(self):
|
5161
|
+
"""视图名
|
5162
|
+
:rtype: str
|
5163
|
+
"""
|
5164
|
+
return self._ViewName
|
5165
|
+
|
5166
|
+
@ViewName.setter
|
5167
|
+
def ViewName(self, ViewName):
|
5168
|
+
self._ViewName = ViewName
|
5169
|
+
|
5170
|
+
@property
|
5171
|
+
def GroupName(self):
|
5172
|
+
"""组名
|
5173
|
+
:rtype: str
|
5174
|
+
"""
|
5175
|
+
return self._GroupName
|
5176
|
+
|
5177
|
+
@GroupName.setter
|
5178
|
+
def GroupName(self, GroupName):
|
5179
|
+
self._GroupName = GroupName
|
5180
|
+
|
5181
|
+
@property
|
5182
|
+
def IsUnionRule(self):
|
5183
|
+
"""是否为与关系
|
5184
|
+
:rtype: int
|
5185
|
+
"""
|
5186
|
+
return self._IsUnionRule
|
5187
|
+
|
5188
|
+
@IsUnionRule.setter
|
5189
|
+
def IsUnionRule(self, IsUnionRule):
|
5190
|
+
self._IsUnionRule = IsUnionRule
|
5191
|
+
|
5192
|
+
@property
|
5193
|
+
def Remark(self):
|
5194
|
+
"""备注
|
5195
|
+
:rtype: str
|
5196
|
+
"""
|
5197
|
+
return self._Remark
|
5198
|
+
|
5199
|
+
@Remark.setter
|
5200
|
+
def Remark(self, Remark):
|
5201
|
+
self._Remark = Remark
|
5202
|
+
|
5203
|
+
@property
|
5204
|
+
def ParentGroupID(self):
|
5205
|
+
"""父ID
|
5206
|
+
:rtype: int
|
5207
|
+
"""
|
5208
|
+
return self._ParentGroupID
|
5209
|
+
|
5210
|
+
@ParentGroupID.setter
|
5211
|
+
def ParentGroupID(self, ParentGroupID):
|
5212
|
+
self._ParentGroupID = ParentGroupID
|
5213
|
+
|
5214
|
+
@property
|
5215
|
+
def IsShielded(self):
|
5216
|
+
"""是否屏蔽
|
5217
|
+
:rtype: int
|
5218
|
+
"""
|
5219
|
+
return self._IsShielded
|
5220
|
+
|
5221
|
+
@IsShielded.setter
|
5222
|
+
def IsShielded(self, IsShielded):
|
5223
|
+
self._IsShielded = IsShielded
|
5224
|
+
|
5225
|
+
@property
|
5226
|
+
def ComplexExpression(self):
|
5227
|
+
"""复合告警表达式
|
5228
|
+
:rtype: str
|
5229
|
+
"""
|
5230
|
+
return self._ComplexExpression
|
5231
|
+
|
5232
|
+
@ComplexExpression.setter
|
5233
|
+
def ComplexExpression(self, ComplexExpression):
|
5234
|
+
self._ComplexExpression = ComplexExpression
|
5235
|
+
|
5236
|
+
@property
|
5237
|
+
def Conditions(self):
|
5238
|
+
"""指标告警条件
|
5239
|
+
:rtype: list of ModifyConditionsTemplateRequestCondition
|
5240
|
+
"""
|
5241
|
+
return self._Conditions
|
5242
|
+
|
5243
|
+
@Conditions.setter
|
5244
|
+
def Conditions(self, Conditions):
|
5245
|
+
self._Conditions = Conditions
|
5246
|
+
|
5247
|
+
@property
|
5248
|
+
def EventConditions(self):
|
5249
|
+
"""事件告警条件
|
5250
|
+
:rtype: list of ModifyConditionsTemplateRequestEventCondition
|
5251
|
+
"""
|
5252
|
+
return self._EventConditions
|
5253
|
+
|
5254
|
+
@EventConditions.setter
|
5255
|
+
def EventConditions(self, EventConditions):
|
5256
|
+
self._EventConditions = EventConditions
|
5257
|
+
|
5258
|
+
|
5259
|
+
def _deserialize(self, params):
|
5260
|
+
self._Module = params.get("Module")
|
5261
|
+
self._ViewName = params.get("ViewName")
|
5262
|
+
self._GroupName = params.get("GroupName")
|
5263
|
+
self._IsUnionRule = params.get("IsUnionRule")
|
5264
|
+
self._Remark = params.get("Remark")
|
5265
|
+
self._ParentGroupID = params.get("ParentGroupID")
|
5266
|
+
self._IsShielded = params.get("IsShielded")
|
5267
|
+
self._ComplexExpression = params.get("ComplexExpression")
|
5268
|
+
if params.get("Conditions") is not None:
|
5269
|
+
self._Conditions = []
|
5270
|
+
for item in params.get("Conditions"):
|
5271
|
+
obj = ModifyConditionsTemplateRequestCondition()
|
5272
|
+
obj._deserialize(item)
|
5273
|
+
self._Conditions.append(obj)
|
5274
|
+
if params.get("EventConditions") is not None:
|
5275
|
+
self._EventConditions = []
|
5276
|
+
for item in params.get("EventConditions"):
|
5277
|
+
obj = ModifyConditionsTemplateRequestEventCondition()
|
5278
|
+
obj._deserialize(item)
|
5279
|
+
self._EventConditions.append(obj)
|
5280
|
+
memeber_set = set(params.keys())
|
5281
|
+
for name, value in vars(self).items():
|
5282
|
+
property_name = name[1:]
|
5283
|
+
if property_name in memeber_set:
|
5284
|
+
memeber_set.remove(property_name)
|
5285
|
+
if len(memeber_set) > 0:
|
5286
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
5287
|
+
|
5288
|
+
|
5289
|
+
|
5290
|
+
class CreateConditionsTemplateResponse(AbstractModel):
|
5291
|
+
"""CreateConditionsTemplate返回参数结构体
|
5292
|
+
|
5293
|
+
"""
|
5294
|
+
|
5295
|
+
def __init__(self):
|
5296
|
+
r"""
|
5297
|
+
:param _GroupID: 模板策略组ID
|
5298
|
+
:type GroupID: int
|
5299
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5300
|
+
:type RequestId: str
|
5301
|
+
"""
|
5302
|
+
self._GroupID = None
|
5303
|
+
self._RequestId = None
|
5304
|
+
|
5305
|
+
@property
|
5306
|
+
def GroupID(self):
|
5307
|
+
"""模板策略组ID
|
5308
|
+
:rtype: int
|
5309
|
+
"""
|
5310
|
+
return self._GroupID
|
5311
|
+
|
5312
|
+
@GroupID.setter
|
5313
|
+
def GroupID(self, GroupID):
|
5314
|
+
self._GroupID = GroupID
|
5315
|
+
|
5316
|
+
@property
|
5317
|
+
def RequestId(self):
|
5318
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5319
|
+
:rtype: str
|
5320
|
+
"""
|
5321
|
+
return self._RequestId
|
5322
|
+
|
5323
|
+
@RequestId.setter
|
5324
|
+
def RequestId(self, RequestId):
|
5325
|
+
self._RequestId = RequestId
|
5326
|
+
|
5327
|
+
|
5328
|
+
def _deserialize(self, params):
|
5329
|
+
self._GroupID = params.get("GroupID")
|
5330
|
+
self._RequestId = params.get("RequestId")
|
5331
|
+
|
5332
|
+
|
5109
5333
|
class CreateExporterIntegrationRequest(AbstractModel):
|
5110
5334
|
"""CreateExporterIntegration请求参数结构体
|
5111
5335
|
|
@@ -28465,6 +28689,228 @@ class ModifyAlarmReceiversResponse(AbstractModel):
|
|
28465
28689
|
self._RequestId = params.get("RequestId")
|
28466
28690
|
|
28467
28691
|
|
28692
|
+
class ModifyConditionsTemplateRequestCondition(AbstractModel):
|
28693
|
+
"""ModifyConditionsTemplateRequestCondition,Condition入参字段值
|
28694
|
+
|
28695
|
+
"""
|
28696
|
+
|
28697
|
+
def __init__(self):
|
28698
|
+
r"""
|
28699
|
+
:param _CalcPeriod: 统计周期
|
28700
|
+
:type CalcPeriod: str
|
28701
|
+
:param _CalcType: 统计方式
|
28702
|
+
:type CalcType: str
|
28703
|
+
:param _ContinuePeriod: 持续周期
|
28704
|
+
:type ContinuePeriod: str
|
28705
|
+
:param _MetricID: 指标ID
|
28706
|
+
:type MetricID: int
|
28707
|
+
:param _CalcValue: 统计值
|
28708
|
+
:type CalcValue: str
|
28709
|
+
:param _AlarmNotifyPeriod: 告警通知周期
|
28710
|
+
:type AlarmNotifyPeriod: str
|
28711
|
+
:param _AlarmNotifyType: 告警通知方式
|
28712
|
+
:type AlarmNotifyType: int
|
28713
|
+
:param _RuleID: 规则ID
|
28714
|
+
:type RuleID: int
|
28715
|
+
"""
|
28716
|
+
self._CalcPeriod = None
|
28717
|
+
self._CalcType = None
|
28718
|
+
self._ContinuePeriod = None
|
28719
|
+
self._MetricID = None
|
28720
|
+
self._CalcValue = None
|
28721
|
+
self._AlarmNotifyPeriod = None
|
28722
|
+
self._AlarmNotifyType = None
|
28723
|
+
self._RuleID = None
|
28724
|
+
|
28725
|
+
@property
|
28726
|
+
def CalcPeriod(self):
|
28727
|
+
"""统计周期
|
28728
|
+
:rtype: str
|
28729
|
+
"""
|
28730
|
+
return self._CalcPeriod
|
28731
|
+
|
28732
|
+
@CalcPeriod.setter
|
28733
|
+
def CalcPeriod(self, CalcPeriod):
|
28734
|
+
self._CalcPeriod = CalcPeriod
|
28735
|
+
|
28736
|
+
@property
|
28737
|
+
def CalcType(self):
|
28738
|
+
"""统计方式
|
28739
|
+
:rtype: str
|
28740
|
+
"""
|
28741
|
+
return self._CalcType
|
28742
|
+
|
28743
|
+
@CalcType.setter
|
28744
|
+
def CalcType(self, CalcType):
|
28745
|
+
self._CalcType = CalcType
|
28746
|
+
|
28747
|
+
@property
|
28748
|
+
def ContinuePeriod(self):
|
28749
|
+
"""持续周期
|
28750
|
+
:rtype: str
|
28751
|
+
"""
|
28752
|
+
return self._ContinuePeriod
|
28753
|
+
|
28754
|
+
@ContinuePeriod.setter
|
28755
|
+
def ContinuePeriod(self, ContinuePeriod):
|
28756
|
+
self._ContinuePeriod = ContinuePeriod
|
28757
|
+
|
28758
|
+
@property
|
28759
|
+
def MetricID(self):
|
28760
|
+
"""指标ID
|
28761
|
+
:rtype: int
|
28762
|
+
"""
|
28763
|
+
return self._MetricID
|
28764
|
+
|
28765
|
+
@MetricID.setter
|
28766
|
+
def MetricID(self, MetricID):
|
28767
|
+
self._MetricID = MetricID
|
28768
|
+
|
28769
|
+
@property
|
28770
|
+
def CalcValue(self):
|
28771
|
+
"""统计值
|
28772
|
+
:rtype: str
|
28773
|
+
"""
|
28774
|
+
return self._CalcValue
|
28775
|
+
|
28776
|
+
@CalcValue.setter
|
28777
|
+
def CalcValue(self, CalcValue):
|
28778
|
+
self._CalcValue = CalcValue
|
28779
|
+
|
28780
|
+
@property
|
28781
|
+
def AlarmNotifyPeriod(self):
|
28782
|
+
"""告警通知周期
|
28783
|
+
:rtype: str
|
28784
|
+
"""
|
28785
|
+
return self._AlarmNotifyPeriod
|
28786
|
+
|
28787
|
+
@AlarmNotifyPeriod.setter
|
28788
|
+
def AlarmNotifyPeriod(self, AlarmNotifyPeriod):
|
28789
|
+
self._AlarmNotifyPeriod = AlarmNotifyPeriod
|
28790
|
+
|
28791
|
+
@property
|
28792
|
+
def AlarmNotifyType(self):
|
28793
|
+
"""告警通知方式
|
28794
|
+
:rtype: int
|
28795
|
+
"""
|
28796
|
+
return self._AlarmNotifyType
|
28797
|
+
|
28798
|
+
@AlarmNotifyType.setter
|
28799
|
+
def AlarmNotifyType(self, AlarmNotifyType):
|
28800
|
+
self._AlarmNotifyType = AlarmNotifyType
|
28801
|
+
|
28802
|
+
@property
|
28803
|
+
def RuleID(self):
|
28804
|
+
"""规则ID
|
28805
|
+
:rtype: int
|
28806
|
+
"""
|
28807
|
+
return self._RuleID
|
28808
|
+
|
28809
|
+
@RuleID.setter
|
28810
|
+
def RuleID(self, RuleID):
|
28811
|
+
self._RuleID = RuleID
|
28812
|
+
|
28813
|
+
|
28814
|
+
def _deserialize(self, params):
|
28815
|
+
self._CalcPeriod = params.get("CalcPeriod")
|
28816
|
+
self._CalcType = params.get("CalcType")
|
28817
|
+
self._ContinuePeriod = params.get("ContinuePeriod")
|
28818
|
+
self._MetricID = params.get("MetricID")
|
28819
|
+
self._CalcValue = params.get("CalcValue")
|
28820
|
+
self._AlarmNotifyPeriod = params.get("AlarmNotifyPeriod")
|
28821
|
+
self._AlarmNotifyType = params.get("AlarmNotifyType")
|
28822
|
+
self._RuleID = params.get("RuleID")
|
28823
|
+
memeber_set = set(params.keys())
|
28824
|
+
for name, value in vars(self).items():
|
28825
|
+
property_name = name[1:]
|
28826
|
+
if property_name in memeber_set:
|
28827
|
+
memeber_set.remove(property_name)
|
28828
|
+
if len(memeber_set) > 0:
|
28829
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
28830
|
+
|
28831
|
+
|
28832
|
+
|
28833
|
+
class ModifyConditionsTemplateRequestEventCondition(AbstractModel):
|
28834
|
+
"""ModifyConditionsTemplateRequestEventCondition
|
28835
|
+
|
28836
|
+
"""
|
28837
|
+
|
28838
|
+
def __init__(self):
|
28839
|
+
r"""
|
28840
|
+
:param _AlarmNotifyPeriod: 告警通知周期
|
28841
|
+
:type AlarmNotifyPeriod: str
|
28842
|
+
:param _AlarmNotifyType: 告警通知方式
|
28843
|
+
:type AlarmNotifyType: str
|
28844
|
+
:param _EventID: 事件ID
|
28845
|
+
:type EventID: str
|
28846
|
+
:param _RuleID: 规则ID
|
28847
|
+
:type RuleID: int
|
28848
|
+
"""
|
28849
|
+
self._AlarmNotifyPeriod = None
|
28850
|
+
self._AlarmNotifyType = None
|
28851
|
+
self._EventID = None
|
28852
|
+
self._RuleID = None
|
28853
|
+
|
28854
|
+
@property
|
28855
|
+
def AlarmNotifyPeriod(self):
|
28856
|
+
"""告警通知周期
|
28857
|
+
:rtype: str
|
28858
|
+
"""
|
28859
|
+
return self._AlarmNotifyPeriod
|
28860
|
+
|
28861
|
+
@AlarmNotifyPeriod.setter
|
28862
|
+
def AlarmNotifyPeriod(self, AlarmNotifyPeriod):
|
28863
|
+
self._AlarmNotifyPeriod = AlarmNotifyPeriod
|
28864
|
+
|
28865
|
+
@property
|
28866
|
+
def AlarmNotifyType(self):
|
28867
|
+
"""告警通知方式
|
28868
|
+
:rtype: str
|
28869
|
+
"""
|
28870
|
+
return self._AlarmNotifyType
|
28871
|
+
|
28872
|
+
@AlarmNotifyType.setter
|
28873
|
+
def AlarmNotifyType(self, AlarmNotifyType):
|
28874
|
+
self._AlarmNotifyType = AlarmNotifyType
|
28875
|
+
|
28876
|
+
@property
|
28877
|
+
def EventID(self):
|
28878
|
+
"""事件ID
|
28879
|
+
:rtype: str
|
28880
|
+
"""
|
28881
|
+
return self._EventID
|
28882
|
+
|
28883
|
+
@EventID.setter
|
28884
|
+
def EventID(self, EventID):
|
28885
|
+
self._EventID = EventID
|
28886
|
+
|
28887
|
+
@property
|
28888
|
+
def RuleID(self):
|
28889
|
+
"""规则ID
|
28890
|
+
:rtype: int
|
28891
|
+
"""
|
28892
|
+
return self._RuleID
|
28893
|
+
|
28894
|
+
@RuleID.setter
|
28895
|
+
def RuleID(self, RuleID):
|
28896
|
+
self._RuleID = RuleID
|
28897
|
+
|
28898
|
+
|
28899
|
+
def _deserialize(self, params):
|
28900
|
+
self._AlarmNotifyPeriod = params.get("AlarmNotifyPeriod")
|
28901
|
+
self._AlarmNotifyType = params.get("AlarmNotifyType")
|
28902
|
+
self._EventID = params.get("EventID")
|
28903
|
+
self._RuleID = params.get("RuleID")
|
28904
|
+
memeber_set = set(params.keys())
|
28905
|
+
for name, value in vars(self).items():
|
28906
|
+
property_name = name[1:]
|
28907
|
+
if property_name in memeber_set:
|
28908
|
+
memeber_set.remove(property_name)
|
28909
|
+
if len(memeber_set) > 0:
|
28910
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
28911
|
+
|
28912
|
+
|
28913
|
+
|
28468
28914
|
class ModifyGrafanaInstanceRequest(AbstractModel):
|
28469
28915
|
"""ModifyGrafanaInstance请求参数结构体
|
28470
28916
|
|
@@ -212,6 +212,29 @@ class MonitorClient(AbstractClient):
|
|
212
212
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
213
213
|
|
214
214
|
|
215
|
+
def CreateConditionsTemplate(self, request):
|
216
|
+
"""创建告警条件模板
|
217
|
+
|
218
|
+
:param request: Request instance for CreateConditionsTemplate.
|
219
|
+
:type request: :class:`tencentcloud.monitor.v20180724.models.CreateConditionsTemplateRequest`
|
220
|
+
:rtype: :class:`tencentcloud.monitor.v20180724.models.CreateConditionsTemplateResponse`
|
221
|
+
|
222
|
+
"""
|
223
|
+
try:
|
224
|
+
params = request._serialize()
|
225
|
+
headers = request.headers
|
226
|
+
body = self.call("CreateConditionsTemplate", params, headers=headers)
|
227
|
+
response = json.loads(body)
|
228
|
+
model = models.CreateConditionsTemplateResponse()
|
229
|
+
model._deserialize(response["Response"])
|
230
|
+
return model
|
231
|
+
except Exception as e:
|
232
|
+
if isinstance(e, TencentCloudSDKException):
|
233
|
+
raise
|
234
|
+
else:
|
235
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
236
|
+
|
237
|
+
|
215
238
|
def CreateExporterIntegration(self, request):
|
216
239
|
"""创建集成中心 exporter 集成,因集成较多,建议控制台创建集成。(前提:已授权创建托管 EKS 集群,验证方式:1. 控制台界面确认,未提示授权则表示已授权创建;2. 通过 DescribePrometheusInstanceInitStatus 接口查询集群状态,如果托管集群不存在,可通过 RunPrometheusInstance 接口创建)
|
217
240
|
|