tencentcloud-sdk-python 3.0.1345__py2.py3-none-any.whl → 3.0.1347__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/advisor/v20200721/models.py +0 -26
- tencentcloud/antiddos/v20200309/antiddos_client.py +0 -50
- tencentcloud/antiddos/v20200309/models.py +12 -687
- tencentcloud/apm/v20210622/models.py +60 -60
- tencentcloud/batch/v20170312/models.py +8 -158
- tencentcloud/cdwch/v20200915/models.py +111 -146
- tencentcloud/cdwpg/v20201230/models.py +84 -84
- tencentcloud/chc/__init__.py +0 -0
- tencentcloud/chc/v20230418/__init__.py +0 -0
- tencentcloud/chc/v20230418/chc_client.py +854 -0
- tencentcloud/chc/v20230418/errorcodes.py +15 -0
- tencentcloud/chc/v20230418/models.py +9963 -0
- tencentcloud/ckafka/v20190819/models.py +26 -984
- tencentcloud/cls/v20201016/models.py +0 -310
- tencentcloud/dbbrain/v20191016/models.py +2 -6
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +92 -0
- tencentcloud/dbbrain/v20210527/models.py +1036 -198
- tencentcloud/domain/v20180808/models.py +0 -2
- tencentcloud/ecdn/v20191012/ecdn_client.py +0 -217
- tencentcloud/ecdn/v20191012/errorcodes.py +0 -63
- tencentcloud/ecdn/v20191012/models.py +4 -1047
- tencentcloud/emr/v20190103/emr_client.py +1 -1
- tencentcloud/emr/v20190103/models.py +422 -15
- tencentcloud/ess/v20201111/models.py +27 -6
- tencentcloud/essbasic/v20210526/models.py +21 -0
- tencentcloud/gs/v20191118/errorcodes.py +9 -0
- tencentcloud/gs/v20191118/gs_client.py +775 -12
- tencentcloud/gs/v20191118/models.py +4968 -477
- tencentcloud/hai/v20230812/models.py +0 -22
- 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/models.py +0 -52
- tencentcloud/lke/v20231130/lke_client.py +2 -25
- tencentcloud/lke/v20231130/models.py +4 -87
- tencentcloud/lkeap/v20240522/lkeap_client.py +1 -1
- tencentcloud/memcached/v20190318/models.py +2 -2
- tencentcloud/mmps/v20200710/models.py +0 -6
- tencentcloud/monitor/v20180724/models.py +446 -0
- tencentcloud/monitor/v20180724/monitor_client.py +23 -0
- tencentcloud/mqtt/v20240516/models.py +24 -22
- tencentcloud/redis/v20180412/models.py +2 -4
- tencentcloud/svp/v20240125/models.py +0 -2
- tencentcloud/tchd/v20230306/models.py +0 -2
- tencentcloud/tcr/v20190924/models.py +4 -14
- tencentcloud/tdmq/v20200217/models.py +266 -0
- tencentcloud/teo/v20220901/errorcodes.py +3 -0
- tencentcloud/teo/v20220901/models.py +81 -2
- tencentcloud/teo/v20220901/teo_client.py +23 -0
- tencentcloud/thpc/v20220401/models.py +0 -8
- tencentcloud/thpc/v20230321/models.py +15 -44
- tencentcloud/tione/v20211111/models.py +68 -0
- tencentcloud/tke/v20180525/models.py +0 -28
- tencentcloud/wedata/v20210820/models.py +331 -0
- {tencentcloud_sdk_python-3.0.1345.dist-info → tencentcloud_sdk_python-3.0.1347.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1345.dist-info → tencentcloud_sdk_python-3.0.1347.dist-info}/RECORD +60 -55
- {tencentcloud_sdk_python-3.0.1345.dist-info → tencentcloud_sdk_python-3.0.1347.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1345.dist-info → tencentcloud_sdk_python-3.0.1347.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1345.dist-info → tencentcloud_sdk_python-3.0.1347.dist-info}/top_level.txt +0 -0
@@ -2105,29 +2105,6 @@ class LkeClient(AbstractClient):
|
|
2105
2105
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2106
2106
|
|
2107
2107
|
|
2108
|
-
def ResetSession(self, request):
|
2109
|
-
"""重置会话
|
2110
|
-
|
2111
|
-
:param request: Request instance for ResetSession.
|
2112
|
-
:type request: :class:`tencentcloud.lke.v20231130.models.ResetSessionRequest`
|
2113
|
-
:rtype: :class:`tencentcloud.lke.v20231130.models.ResetSessionResponse`
|
2114
|
-
|
2115
|
-
"""
|
2116
|
-
try:
|
2117
|
-
params = request._serialize()
|
2118
|
-
headers = request.headers
|
2119
|
-
body = self.call("ResetSession", params, headers=headers)
|
2120
|
-
response = json.loads(body)
|
2121
|
-
model = models.ResetSessionResponse()
|
2122
|
-
model._deserialize(response["Response"])
|
2123
|
-
return model
|
2124
|
-
except Exception as e:
|
2125
|
-
if isinstance(e, TencentCloudSDKException):
|
2126
|
-
raise
|
2127
|
-
else:
|
2128
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2129
|
-
|
2130
|
-
|
2131
2108
|
def RetryDocAudit(self, request):
|
2132
2109
|
"""文档解析重试
|
2133
2110
|
|
@@ -2223,8 +2200,8 @@ class LkeClient(AbstractClient):
|
|
2223
2200
|
def SaveDoc(self, request):
|
2224
2201
|
"""知识库文档问答保存。
|
2225
2202
|
将文件存储到应用的知识库内需要三步:
|
2226
|
-
1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)
|
2227
|
-
2.调用腾讯云提供的 cos 存储接口,将文件存储到知识引擎 cos
|
2203
|
+
1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)。获取临时密钥不同参数组合权限不一样,可参考 [知识引擎操作 cos 指南](https://cloud.tencent.com/document/product/1759/116238)
|
2204
|
+
2.调用腾讯云提供的 cos 存储接口,将文件存储到知识引擎 cos 中:具体可参考[ COS SDK 概览](https://cloud.tencent.com/document/product/436/6474), 注意使用的是临时密钥的方式操作 COS
|
2228
2205
|
3.调用本接口,将文件的基础信息存储到知识引擎中。
|
2229
2206
|
以上步骤可参考[文档](https://cloud.tencent.com/document/product/1759/108903),文档最后有[代码demo](https://cloud.tencent.com/document/product/1759/108903#demo),可作为参考。
|
2230
2207
|
|
@@ -7074,8 +7074,7 @@ class DescribeQAResponse(AbstractModel):
|
|
7074
7074
|
:type Answer: str
|
7075
7075
|
:param _CustomParam: 自定义参数
|
7076
7076
|
:type CustomParam: str
|
7077
|
-
:param _Source: 来源
|
7078
|
-
|
7077
|
+
:param _Source: 来源 1-文档生成问答对 2-批量导入问答对 3-单条手动录入问答对
|
7079
7078
|
:type Source: int
|
7080
7079
|
:param _SourceDesc: 来源描述
|
7081
7080
|
|
@@ -7083,8 +7082,7 @@ class DescribeQAResponse(AbstractModel):
|
|
7083
7082
|
:param _UpdateTime: 更新时间
|
7084
7083
|
|
7085
7084
|
:type UpdateTime: str
|
7086
|
-
:param _Status: 状态
|
7087
|
-
|
7085
|
+
:param _Status: 状态 <br>1-未校验 2-未发布 3-发布中 4-已发布 5-发布失败 6-不采纳 7-审核中 8-审核失败 9-审核失败申诉后人工审核中 11-审核失败申诉后人工审核不通过 12-已过期 13-超量失效 14-超量失效恢复 19-学习中 20-学习失败
|
7088
7086
|
:type Status: int
|
7089
7087
|
:param _StatusDesc: 状态描述
|
7090
7088
|
|
@@ -7221,8 +7219,7 @@ class DescribeQAResponse(AbstractModel):
|
|
7221
7219
|
|
7222
7220
|
@property
|
7223
7221
|
def Source(self):
|
7224
|
-
"""来源
|
7225
|
-
|
7222
|
+
"""来源 1-文档生成问答对 2-批量导入问答对 3-单条手动录入问答对
|
7226
7223
|
:rtype: int
|
7227
7224
|
"""
|
7228
7225
|
return self._Source
|
@@ -7257,8 +7254,7 @@ class DescribeQAResponse(AbstractModel):
|
|
7257
7254
|
|
7258
7255
|
@property
|
7259
7256
|
def Status(self):
|
7260
|
-
"""状态
|
7261
|
-
|
7257
|
+
"""状态 <br>1-未校验 2-未发布 3-发布中 4-已发布 5-发布失败 6-不采纳 7-审核中 8-审核失败 9-审核失败申诉后人工审核中 11-审核失败申诉后人工审核不通过 12-已过期 13-超量失效 14-超量失效恢复 19-学习中 20-学习失败
|
7262
7258
|
:rtype: int
|
7263
7259
|
"""
|
7264
7260
|
return self._Status
|
@@ -23421,85 +23417,6 @@ class RenameDocResponse(AbstractModel):
|
|
23421
23417
|
self._RequestId = params.get("RequestId")
|
23422
23418
|
|
23423
23419
|
|
23424
|
-
class ResetSessionRequest(AbstractModel):
|
23425
|
-
"""ResetSession请求参数结构体
|
23426
|
-
|
23427
|
-
"""
|
23428
|
-
|
23429
|
-
def __init__(self):
|
23430
|
-
r"""
|
23431
|
-
:param _SessionId: 会话ID
|
23432
|
-
:type SessionId: str
|
23433
|
-
:param _IsOnlyEmptyTheDialog: 是否仅清空会话关联
|
23434
|
-
:type IsOnlyEmptyTheDialog: bool
|
23435
|
-
"""
|
23436
|
-
self._SessionId = None
|
23437
|
-
self._IsOnlyEmptyTheDialog = None
|
23438
|
-
|
23439
|
-
@property
|
23440
|
-
def SessionId(self):
|
23441
|
-
"""会话ID
|
23442
|
-
:rtype: str
|
23443
|
-
"""
|
23444
|
-
return self._SessionId
|
23445
|
-
|
23446
|
-
@SessionId.setter
|
23447
|
-
def SessionId(self, SessionId):
|
23448
|
-
self._SessionId = SessionId
|
23449
|
-
|
23450
|
-
@property
|
23451
|
-
def IsOnlyEmptyTheDialog(self):
|
23452
|
-
"""是否仅清空会话关联
|
23453
|
-
:rtype: bool
|
23454
|
-
"""
|
23455
|
-
return self._IsOnlyEmptyTheDialog
|
23456
|
-
|
23457
|
-
@IsOnlyEmptyTheDialog.setter
|
23458
|
-
def IsOnlyEmptyTheDialog(self, IsOnlyEmptyTheDialog):
|
23459
|
-
self._IsOnlyEmptyTheDialog = IsOnlyEmptyTheDialog
|
23460
|
-
|
23461
|
-
|
23462
|
-
def _deserialize(self, params):
|
23463
|
-
self._SessionId = params.get("SessionId")
|
23464
|
-
self._IsOnlyEmptyTheDialog = params.get("IsOnlyEmptyTheDialog")
|
23465
|
-
memeber_set = set(params.keys())
|
23466
|
-
for name, value in vars(self).items():
|
23467
|
-
property_name = name[1:]
|
23468
|
-
if property_name in memeber_set:
|
23469
|
-
memeber_set.remove(property_name)
|
23470
|
-
if len(memeber_set) > 0:
|
23471
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
23472
|
-
|
23473
|
-
|
23474
|
-
|
23475
|
-
class ResetSessionResponse(AbstractModel):
|
23476
|
-
"""ResetSession返回参数结构体
|
23477
|
-
|
23478
|
-
"""
|
23479
|
-
|
23480
|
-
def __init__(self):
|
23481
|
-
r"""
|
23482
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
23483
|
-
:type RequestId: str
|
23484
|
-
"""
|
23485
|
-
self._RequestId = None
|
23486
|
-
|
23487
|
-
@property
|
23488
|
-
def RequestId(self):
|
23489
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
23490
|
-
:rtype: str
|
23491
|
-
"""
|
23492
|
-
return self._RequestId
|
23493
|
-
|
23494
|
-
@RequestId.setter
|
23495
|
-
def RequestId(self, RequestId):
|
23496
|
-
self._RequestId = RequestId
|
23497
|
-
|
23498
|
-
|
23499
|
-
def _deserialize(self, params):
|
23500
|
-
self._RequestId = params.get("RequestId")
|
23501
|
-
|
23502
|
-
|
23503
23420
|
class RetryDocAuditRequest(AbstractModel):
|
23504
23421
|
"""RetryDocAudit请求参数结构体
|
23505
23422
|
|
@@ -167,7 +167,7 @@ class LkeapClient(AbstractClient):
|
|
167
167
|
|
168
168
|
|
169
169
|
def CreateKnowledgeBase(self, request):
|
170
|
-
"""用于在系统中创建一个新的知识库。知识库是一个用于存储和管理知识条目的集合,可以包括文档、问答对、属性标签等。创建知识库后,可以向其中添加各种知识条目,以便在后续的知识检索中使用。
|
170
|
+
"""用于在系统中创建一个新的知识库。知识库是一个用于存储和管理知识条目的集合,可以包括文档、问答对、属性标签等。创建知识库后,可以向其中添加各种知识条目,以便在后续的知识检索中使用。 使用场景:当需要在系统中建立一个新的知识库以存储和管理特定领域或项目的知识条目时使用。例如,一个用户可能需要创建一个知识库,以存储用户指南、常见问题解答和技术文档。体验用户最多可创建3个知识库,付费用户最多可创建100个知识库。
|
171
171
|
|
172
172
|
:param request: Request instance for CreateKnowledgeBase.
|
173
173
|
:type request: :class:`tencentcloud.lkeap.v20240522.models.CreateKnowledgeBaseRequest`
|
@@ -290,7 +290,7 @@ class InstanceListInfo(AbstractModel):
|
|
290
290
|
:type Tags: list of TagInfo
|
291
291
|
:param _InstanceId: 实例ID
|
292
292
|
:type InstanceId: str
|
293
|
-
:param _RegionId: 地域id
|
293
|
+
:param _RegionId: 地域id。1--广州 4--上海 5-- 香港 6--多伦多 7--上海金融 8--北京 9-- 新加坡 11--深圳金融 15--美西(硅谷)16--成都 17--德国 18--韩国 19--重庆 22--美东(弗吉尼亚)23--泰国 25--日本
|
294
294
|
:type RegionId: int
|
295
295
|
:param _InstanceDesc: 实例描述信息
|
296
296
|
:type InstanceDesc: str
|
@@ -438,7 +438,7 @@ class InstanceListInfo(AbstractModel):
|
|
438
438
|
|
439
439
|
@property
|
440
440
|
def RegionId(self):
|
441
|
-
"""地域id
|
441
|
+
"""地域id。1--广州 4--上海 5-- 香港 6--多伦多 7--上海金融 8--北京 9-- 新加坡 11--深圳金融 15--美西(硅谷)16--成都 17--德国 18--韩国 19--重庆 22--美东(弗吉尼亚)23--泰国 25--日本
|
442
442
|
:rtype: int
|
443
443
|
"""
|
444
444
|
return self._RegionId
|
@@ -1988,13 +1988,10 @@ class DescribeFlySecMiniAppScanTaskParamResponse(AbstractModel):
|
|
1988
1988
|
:param _Mode: 诊断模式 1:基础诊断,2:深度诊断
|
1989
1989
|
:type Mode: int
|
1990
1990
|
:param _MiniAppTestAccount: 小程序测试账号(自有账号体系需提供,其他情况不需要)
|
1991
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1992
1991
|
:type MiniAppTestAccount: str
|
1993
1992
|
:param _MiniAppTestPwd: 小程序测试密码(自有账号体系需提供,其他情况不需要)
|
1994
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1995
1993
|
:type MiniAppTestPwd: str
|
1996
1994
|
:param _ScanVersion: 诊断扫描版本 0:正式版 1:体验版
|
1997
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
1998
1995
|
:type ScanVersion: int
|
1999
1996
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2000
1997
|
:type RequestId: str
|
@@ -2043,7 +2040,6 @@ class DescribeFlySecMiniAppScanTaskParamResponse(AbstractModel):
|
|
2043
2040
|
@property
|
2044
2041
|
def MiniAppTestAccount(self):
|
2045
2042
|
"""小程序测试账号(自有账号体系需提供,其他情况不需要)
|
2046
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2047
2043
|
:rtype: str
|
2048
2044
|
"""
|
2049
2045
|
return self._MiniAppTestAccount
|
@@ -2055,7 +2051,6 @@ class DescribeFlySecMiniAppScanTaskParamResponse(AbstractModel):
|
|
2055
2051
|
@property
|
2056
2052
|
def MiniAppTestPwd(self):
|
2057
2053
|
"""小程序测试密码(自有账号体系需提供,其他情况不需要)
|
2058
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2059
2054
|
:rtype: str
|
2060
2055
|
"""
|
2061
2056
|
return self._MiniAppTestPwd
|
@@ -2067,7 +2062,6 @@ class DescribeFlySecMiniAppScanTaskParamResponse(AbstractModel):
|
|
2067
2062
|
@property
|
2068
2063
|
def ScanVersion(self):
|
2069
2064
|
"""诊断扫描版本 0:正式版 1:体验版
|
2070
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2071
2065
|
:rtype: int
|
2072
2066
|
"""
|
2073
2067
|
return self._ScanVersion
|
@@ -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
|
|