tencentcloud-sdk-python-dbbrain 3.1.137__tar.gz → 3.1.151__tar.gz
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_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/setup.py +1 -1
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud/dbbrain/v20210527/dbbrain_client.py +46 -0
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud/dbbrain/v20210527/dbbrain_client_async.py +36 -0
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud/dbbrain/v20210527/models.py +650 -40
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud_sdk_python_dbbrain.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_dbbrain-3.1.151/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_dbbrain-3.1.137/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/README.rst +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/setup.cfg +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud/dbbrain/__init__.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud/dbbrain/v20191016/__init__.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud/dbbrain/v20191016/dbbrain_client.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud/dbbrain/v20191016/dbbrain_client_async.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud/dbbrain/v20191016/errorcodes.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud/dbbrain/v20191016/models.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud/dbbrain/v20210527/__init__.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud/dbbrain/v20210527/errorcodes.py +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud_sdk_python_dbbrain.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud_sdk_python_dbbrain.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/tencentcloud_sdk_python_dbbrain.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-dbbrain
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.151
|
|
4
4
|
Summary: Tencent Cloud Dbbrain SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.151
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/setup.py
RENAMED
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-dbbrain',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.151,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Dbbrain SDK for Python',
|
|
@@ -233,6 +233,29 @@ class DbbrainClient(AbstractClient):
|
|
|
233
233
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
234
234
|
|
|
235
235
|
|
|
236
|
+
def CreateDBDiagReportUrls(self, request):
|
|
237
|
+
r"""批量创建健康报告的PDF下载链接,支持一次获取多个报告的下载地址。
|
|
238
|
+
|
|
239
|
+
:param request: Request instance for CreateDBDiagReportUrls.
|
|
240
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.CreateDBDiagReportUrlsRequest`
|
|
241
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.CreateDBDiagReportUrlsResponse`
|
|
242
|
+
|
|
243
|
+
"""
|
|
244
|
+
try:
|
|
245
|
+
params = request._serialize()
|
|
246
|
+
headers = request.headers
|
|
247
|
+
body = self.call("CreateDBDiagReportUrls", params, headers=headers)
|
|
248
|
+
response = json.loads(body)
|
|
249
|
+
model = models.CreateDBDiagReportUrlsResponse()
|
|
250
|
+
model._deserialize(response["Response"])
|
|
251
|
+
return model
|
|
252
|
+
except Exception as e:
|
|
253
|
+
if isinstance(e, TencentCloudSDKException):
|
|
254
|
+
raise
|
|
255
|
+
else:
|
|
256
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
257
|
+
|
|
258
|
+
|
|
236
259
|
def CreateIgnoreDiagRecord(self, request):
|
|
237
260
|
r"""对实例的某个诊断项设置忽略或取消忽略状态。
|
|
238
261
|
|
|
@@ -900,6 +923,29 @@ class DbbrainClient(AbstractClient):
|
|
|
900
923
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
901
924
|
|
|
902
925
|
|
|
926
|
+
def DescribeDBInstances(self, request):
|
|
927
|
+
r"""根据实例ID列表查询数据库实例基本信息,支持跨产品查询(MySQL、CynosDB、MariaDB、DCDB、MongoDB、PostgreSQL、Redis、TDStore等)。不支持分页,通过InstanceIds限制查询数量(最多100条)。
|
|
928
|
+
|
|
929
|
+
:param request: Request instance for DescribeDBInstances.
|
|
930
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeDBInstancesRequest`
|
|
931
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeDBInstancesResponse`
|
|
932
|
+
|
|
933
|
+
"""
|
|
934
|
+
try:
|
|
935
|
+
params = request._serialize()
|
|
936
|
+
headers = request.headers
|
|
937
|
+
body = self.call("DescribeDBInstances", params, headers=headers)
|
|
938
|
+
response = json.loads(body)
|
|
939
|
+
model = models.DescribeDBInstancesResponse()
|
|
940
|
+
model._deserialize(response["Response"])
|
|
941
|
+
return model
|
|
942
|
+
except Exception as e:
|
|
943
|
+
if isinstance(e, TencentCloudSDKException):
|
|
944
|
+
raise
|
|
945
|
+
else:
|
|
946
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
947
|
+
|
|
948
|
+
|
|
903
949
|
def DescribeDBPerfTimeSeries(self, request):
|
|
904
950
|
r"""根据实例ID获取指定时间段的性能趋势。
|
|
905
951
|
|
|
@@ -187,6 +187,24 @@ class DbbrainClient(AbstractClient):
|
|
|
187
187
|
|
|
188
188
|
return await self.call_and_deserialize(**kwargs)
|
|
189
189
|
|
|
190
|
+
async def CreateDBDiagReportUrls(
|
|
191
|
+
self,
|
|
192
|
+
request: models.CreateDBDiagReportUrlsRequest,
|
|
193
|
+
opts: Dict = None,
|
|
194
|
+
) -> models.CreateDBDiagReportUrlsResponse:
|
|
195
|
+
"""
|
|
196
|
+
批量创建健康报告的PDF下载链接,支持一次获取多个报告的下载地址。
|
|
197
|
+
"""
|
|
198
|
+
|
|
199
|
+
kwargs = {}
|
|
200
|
+
kwargs["action"] = "CreateDBDiagReportUrls"
|
|
201
|
+
kwargs["params"] = request._serialize()
|
|
202
|
+
kwargs["resp_cls"] = models.CreateDBDiagReportUrlsResponse
|
|
203
|
+
kwargs["headers"] = request.headers
|
|
204
|
+
kwargs["opts"] = opts or {}
|
|
205
|
+
|
|
206
|
+
return await self.call_and_deserialize(**kwargs)
|
|
207
|
+
|
|
190
208
|
async def CreateIgnoreDiagRecord(
|
|
191
209
|
self,
|
|
192
210
|
request: models.CreateIgnoreDiagRecordRequest,
|
|
@@ -709,6 +727,24 @@ class DbbrainClient(AbstractClient):
|
|
|
709
727
|
|
|
710
728
|
return await self.call_and_deserialize(**kwargs)
|
|
711
729
|
|
|
730
|
+
async def DescribeDBInstances(
|
|
731
|
+
self,
|
|
732
|
+
request: models.DescribeDBInstancesRequest,
|
|
733
|
+
opts: Dict = None,
|
|
734
|
+
) -> models.DescribeDBInstancesResponse:
|
|
735
|
+
"""
|
|
736
|
+
根据实例ID列表查询数据库实例基本信息,支持跨产品查询(MySQL、CynosDB、MariaDB、DCDB、MongoDB、PostgreSQL、Redis、TDStore等)。不支持分页,通过InstanceIds限制查询数量(最多100条)。
|
|
737
|
+
"""
|
|
738
|
+
|
|
739
|
+
kwargs = {}
|
|
740
|
+
kwargs["action"] = "DescribeDBInstances"
|
|
741
|
+
kwargs["params"] = request._serialize()
|
|
742
|
+
kwargs["resp_cls"] = models.DescribeDBInstancesResponse
|
|
743
|
+
kwargs["headers"] = request.headers
|
|
744
|
+
kwargs["opts"] = opts or {}
|
|
745
|
+
|
|
746
|
+
return await self.call_and_deserialize(**kwargs)
|
|
747
|
+
|
|
712
748
|
async def DescribeDBPerfTimeSeries(
|
|
713
749
|
self,
|
|
714
750
|
request: models.DescribeDBPerfTimeSeriesRequest,
|
|
@@ -2812,6 +2812,124 @@ class CreateDBDiagReportUrlResponse(AbstractModel):
|
|
|
2812
2812
|
self._RequestId = params.get("RequestId")
|
|
2813
2813
|
|
|
2814
2814
|
|
|
2815
|
+
class CreateDBDiagReportUrlsRequest(AbstractModel):
|
|
2816
|
+
r"""CreateDBDiagReportUrls请求参数结构体
|
|
2817
|
+
|
|
2818
|
+
"""
|
|
2819
|
+
|
|
2820
|
+
def __init__(self):
|
|
2821
|
+
r"""
|
|
2822
|
+
:param _Product: <p>服务产品类型,支持值包括:"mysql" - 云数据库 MySQL,"redis" - 云数据库 Redis,"cynosdb" - 云数据库 TDSQL-C for MySQL,"mongodb" - 云数据库 MongoDB,"postgres" - 云数据库 PostgreSQL。</p>
|
|
2823
|
+
:type Product: str
|
|
2824
|
+
:param _AsyncRequestIds: <p>异步任务ID列表。</p>
|
|
2825
|
+
:type AsyncRequestIds: list of int
|
|
2826
|
+
"""
|
|
2827
|
+
self._Product = None
|
|
2828
|
+
self._AsyncRequestIds = None
|
|
2829
|
+
|
|
2830
|
+
@property
|
|
2831
|
+
def Product(self):
|
|
2832
|
+
r"""<p>服务产品类型,支持值包括:"mysql" - 云数据库 MySQL,"redis" - 云数据库 Redis,"cynosdb" - 云数据库 TDSQL-C for MySQL,"mongodb" - 云数据库 MongoDB,"postgres" - 云数据库 PostgreSQL。</p>
|
|
2833
|
+
:rtype: str
|
|
2834
|
+
"""
|
|
2835
|
+
return self._Product
|
|
2836
|
+
|
|
2837
|
+
@Product.setter
|
|
2838
|
+
def Product(self, Product):
|
|
2839
|
+
self._Product = Product
|
|
2840
|
+
|
|
2841
|
+
@property
|
|
2842
|
+
def AsyncRequestIds(self):
|
|
2843
|
+
r"""<p>异步任务ID列表。</p>
|
|
2844
|
+
:rtype: list of int
|
|
2845
|
+
"""
|
|
2846
|
+
return self._AsyncRequestIds
|
|
2847
|
+
|
|
2848
|
+
@AsyncRequestIds.setter
|
|
2849
|
+
def AsyncRequestIds(self, AsyncRequestIds):
|
|
2850
|
+
self._AsyncRequestIds = AsyncRequestIds
|
|
2851
|
+
|
|
2852
|
+
|
|
2853
|
+
def _deserialize(self, params):
|
|
2854
|
+
self._Product = params.get("Product")
|
|
2855
|
+
self._AsyncRequestIds = params.get("AsyncRequestIds")
|
|
2856
|
+
memeber_set = set(params.keys())
|
|
2857
|
+
for name, value in vars(self).items():
|
|
2858
|
+
property_name = name[1:]
|
|
2859
|
+
if property_name in memeber_set:
|
|
2860
|
+
memeber_set.remove(property_name)
|
|
2861
|
+
if len(memeber_set) > 0:
|
|
2862
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
2863
|
+
|
|
2864
|
+
|
|
2865
|
+
|
|
2866
|
+
class CreateDBDiagReportUrlsResponse(AbstractModel):
|
|
2867
|
+
r"""CreateDBDiagReportUrls返回参数结构体
|
|
2868
|
+
|
|
2869
|
+
"""
|
|
2870
|
+
|
|
2871
|
+
def __init__(self):
|
|
2872
|
+
r"""
|
|
2873
|
+
:param _TotalCount: <p>URL条目总数。</p>
|
|
2874
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2875
|
+
:type TotalCount: int
|
|
2876
|
+
:param _Items: <p>报告URL信息列表。</p>
|
|
2877
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2878
|
+
:type Items: list of DiagReportUrlItem
|
|
2879
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2880
|
+
:type RequestId: str
|
|
2881
|
+
"""
|
|
2882
|
+
self._TotalCount = None
|
|
2883
|
+
self._Items = None
|
|
2884
|
+
self._RequestId = None
|
|
2885
|
+
|
|
2886
|
+
@property
|
|
2887
|
+
def TotalCount(self):
|
|
2888
|
+
r"""<p>URL条目总数。</p>
|
|
2889
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2890
|
+
:rtype: int
|
|
2891
|
+
"""
|
|
2892
|
+
return self._TotalCount
|
|
2893
|
+
|
|
2894
|
+
@TotalCount.setter
|
|
2895
|
+
def TotalCount(self, TotalCount):
|
|
2896
|
+
self._TotalCount = TotalCount
|
|
2897
|
+
|
|
2898
|
+
@property
|
|
2899
|
+
def Items(self):
|
|
2900
|
+
r"""<p>报告URL信息列表。</p>
|
|
2901
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2902
|
+
:rtype: list of DiagReportUrlItem
|
|
2903
|
+
"""
|
|
2904
|
+
return self._Items
|
|
2905
|
+
|
|
2906
|
+
@Items.setter
|
|
2907
|
+
def Items(self, Items):
|
|
2908
|
+
self._Items = Items
|
|
2909
|
+
|
|
2910
|
+
@property
|
|
2911
|
+
def RequestId(self):
|
|
2912
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2913
|
+
:rtype: str
|
|
2914
|
+
"""
|
|
2915
|
+
return self._RequestId
|
|
2916
|
+
|
|
2917
|
+
@RequestId.setter
|
|
2918
|
+
def RequestId(self, RequestId):
|
|
2919
|
+
self._RequestId = RequestId
|
|
2920
|
+
|
|
2921
|
+
|
|
2922
|
+
def _deserialize(self, params):
|
|
2923
|
+
self._TotalCount = params.get("TotalCount")
|
|
2924
|
+
if params.get("Items") is not None:
|
|
2925
|
+
self._Items = []
|
|
2926
|
+
for item in params.get("Items"):
|
|
2927
|
+
obj = DiagReportUrlItem()
|
|
2928
|
+
obj._deserialize(item)
|
|
2929
|
+
self._Items.append(obj)
|
|
2930
|
+
self._RequestId = params.get("RequestId")
|
|
2931
|
+
|
|
2932
|
+
|
|
2815
2933
|
class CreateIgnoreDiagRecordRequest(AbstractModel):
|
|
2816
2934
|
r"""CreateIgnoreDiagRecord请求参数结构体
|
|
2817
2935
|
|
|
@@ -7061,24 +7179,26 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
|
7061
7179
|
|
|
7062
7180
|
def __init__(self):
|
|
7063
7181
|
r"""
|
|
7064
|
-
:param _StartTime:
|
|
7182
|
+
:param _StartTime: <p>第一个任务的开始时间,用于范围查询,时间格式如:2019-09-10 12:13:14。</p>
|
|
7065
7183
|
:type StartTime: str
|
|
7066
|
-
:param _EndTime:
|
|
7184
|
+
:param _EndTime: <p>最后一个任务的开始时间,用于范围查询,时间格式如:2019-09-10 12:13:14。</p>
|
|
7067
7185
|
:type EndTime: str
|
|
7068
|
-
:param _InstanceIds:
|
|
7186
|
+
:param _InstanceIds: <p>实例ID数组,用于筛选指定实例的任务列表。。可通过 <a href="https://cloud.tencent.com/document/api/1130/57798">DescribeDiagDBInstances</a> 接口获取。</p>
|
|
7069
7187
|
:type InstanceIds: list of str
|
|
7070
|
-
:param _Sources:
|
|
7188
|
+
:param _Sources: <p>任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 计划任务;"MANUAL" - 手动触发。</p>
|
|
7071
7189
|
:type Sources: list of str
|
|
7072
|
-
:param _HealthLevels:
|
|
7190
|
+
:param _HealthLevels: <p>报告的健康等级,支持的取值包括:"HEALTH" - 健康;"SUB_HEALTH" - 亚健康;"RISK" - 危险;"HIGH_RISK" - 高危。</p>
|
|
7073
7191
|
:type HealthLevels: str
|
|
7074
|
-
:param _TaskStatuses:
|
|
7192
|
+
:param _TaskStatuses: <p>任务的状态,支持的取值包括:"created" - 新建;"chosen" - 待执行; "running" - 执行中;"failed" - 失败;"finished" - 已完成。</p>
|
|
7075
7193
|
:type TaskStatuses: str
|
|
7076
|
-
:param _Offset:
|
|
7194
|
+
:param _Offset: <p>偏移量,默认0。</p>
|
|
7077
7195
|
:type Offset: int
|
|
7078
|
-
:param _Limit:
|
|
7196
|
+
:param _Limit: <p>返回数量,默认20,最大值为100。</p>
|
|
7079
7197
|
:type Limit: int
|
|
7080
|
-
:param _Product:
|
|
7198
|
+
:param _Product: <p>服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。</p>
|
|
7081
7199
|
:type Product: str
|
|
7200
|
+
:param _TagFilters: <p>根据任务所属实例的标签信息进行过滤</p>
|
|
7201
|
+
:type TagFilters: list of TagFilterGroup
|
|
7082
7202
|
"""
|
|
7083
7203
|
self._StartTime = None
|
|
7084
7204
|
self._EndTime = None
|
|
@@ -7089,10 +7209,11 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
|
7089
7209
|
self._Offset = None
|
|
7090
7210
|
self._Limit = None
|
|
7091
7211
|
self._Product = None
|
|
7212
|
+
self._TagFilters = None
|
|
7092
7213
|
|
|
7093
7214
|
@property
|
|
7094
7215
|
def StartTime(self):
|
|
7095
|
-
r"""
|
|
7216
|
+
r"""<p>第一个任务的开始时间,用于范围查询,时间格式如:2019-09-10 12:13:14。</p>
|
|
7096
7217
|
:rtype: str
|
|
7097
7218
|
"""
|
|
7098
7219
|
return self._StartTime
|
|
@@ -7103,7 +7224,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
|
7103
7224
|
|
|
7104
7225
|
@property
|
|
7105
7226
|
def EndTime(self):
|
|
7106
|
-
r"""
|
|
7227
|
+
r"""<p>最后一个任务的开始时间,用于范围查询,时间格式如:2019-09-10 12:13:14。</p>
|
|
7107
7228
|
:rtype: str
|
|
7108
7229
|
"""
|
|
7109
7230
|
return self._EndTime
|
|
@@ -7114,7 +7235,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
|
7114
7235
|
|
|
7115
7236
|
@property
|
|
7116
7237
|
def InstanceIds(self):
|
|
7117
|
-
r"""
|
|
7238
|
+
r"""<p>实例ID数组,用于筛选指定实例的任务列表。。可通过 <a href="https://cloud.tencent.com/document/api/1130/57798">DescribeDiagDBInstances</a> 接口获取。</p>
|
|
7118
7239
|
:rtype: list of str
|
|
7119
7240
|
"""
|
|
7120
7241
|
return self._InstanceIds
|
|
@@ -7125,7 +7246,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
|
7125
7246
|
|
|
7126
7247
|
@property
|
|
7127
7248
|
def Sources(self):
|
|
7128
|
-
r"""
|
|
7249
|
+
r"""<p>任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 计划任务;"MANUAL" - 手动触发。</p>
|
|
7129
7250
|
:rtype: list of str
|
|
7130
7251
|
"""
|
|
7131
7252
|
return self._Sources
|
|
@@ -7136,7 +7257,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
|
7136
7257
|
|
|
7137
7258
|
@property
|
|
7138
7259
|
def HealthLevels(self):
|
|
7139
|
-
r"""
|
|
7260
|
+
r"""<p>报告的健康等级,支持的取值包括:"HEALTH" - 健康;"SUB_HEALTH" - 亚健康;"RISK" - 危险;"HIGH_RISK" - 高危。</p>
|
|
7140
7261
|
:rtype: str
|
|
7141
7262
|
"""
|
|
7142
7263
|
return self._HealthLevels
|
|
@@ -7147,7 +7268,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
|
7147
7268
|
|
|
7148
7269
|
@property
|
|
7149
7270
|
def TaskStatuses(self):
|
|
7150
|
-
r"""
|
|
7271
|
+
r"""<p>任务的状态,支持的取值包括:"created" - 新建;"chosen" - 待执行; "running" - 执行中;"failed" - 失败;"finished" - 已完成。</p>
|
|
7151
7272
|
:rtype: str
|
|
7152
7273
|
"""
|
|
7153
7274
|
return self._TaskStatuses
|
|
@@ -7158,7 +7279,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
|
7158
7279
|
|
|
7159
7280
|
@property
|
|
7160
7281
|
def Offset(self):
|
|
7161
|
-
r"""
|
|
7282
|
+
r"""<p>偏移量,默认0。</p>
|
|
7162
7283
|
:rtype: int
|
|
7163
7284
|
"""
|
|
7164
7285
|
return self._Offset
|
|
@@ -7169,7 +7290,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
|
7169
7290
|
|
|
7170
7291
|
@property
|
|
7171
7292
|
def Limit(self):
|
|
7172
|
-
r"""
|
|
7293
|
+
r"""<p>返回数量,默认20,最大值为100。</p>
|
|
7173
7294
|
:rtype: int
|
|
7174
7295
|
"""
|
|
7175
7296
|
return self._Limit
|
|
@@ -7180,7 +7301,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
|
7180
7301
|
|
|
7181
7302
|
@property
|
|
7182
7303
|
def Product(self):
|
|
7183
|
-
r"""
|
|
7304
|
+
r"""<p>服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。</p>
|
|
7184
7305
|
:rtype: str
|
|
7185
7306
|
"""
|
|
7186
7307
|
return self._Product
|
|
@@ -7189,6 +7310,17 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
|
7189
7310
|
def Product(self, Product):
|
|
7190
7311
|
self._Product = Product
|
|
7191
7312
|
|
|
7313
|
+
@property
|
|
7314
|
+
def TagFilters(self):
|
|
7315
|
+
r"""<p>根据任务所属实例的标签信息进行过滤</p>
|
|
7316
|
+
:rtype: list of TagFilterGroup
|
|
7317
|
+
"""
|
|
7318
|
+
return self._TagFilters
|
|
7319
|
+
|
|
7320
|
+
@TagFilters.setter
|
|
7321
|
+
def TagFilters(self, TagFilters):
|
|
7322
|
+
self._TagFilters = TagFilters
|
|
7323
|
+
|
|
7192
7324
|
|
|
7193
7325
|
def _deserialize(self, params):
|
|
7194
7326
|
self._StartTime = params.get("StartTime")
|
|
@@ -7200,6 +7332,12 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
|
|
|
7200
7332
|
self._Offset = params.get("Offset")
|
|
7201
7333
|
self._Limit = params.get("Limit")
|
|
7202
7334
|
self._Product = params.get("Product")
|
|
7335
|
+
if params.get("TagFilters") is not None:
|
|
7336
|
+
self._TagFilters = []
|
|
7337
|
+
for item in params.get("TagFilters"):
|
|
7338
|
+
obj = TagFilterGroup()
|
|
7339
|
+
obj._deserialize(item)
|
|
7340
|
+
self._TagFilters.append(obj)
|
|
7203
7341
|
memeber_set = set(params.keys())
|
|
7204
7342
|
for name, value in vars(self).items():
|
|
7205
7343
|
property_name = name[1:]
|
|
@@ -7217,9 +7355,9 @@ class DescribeDBDiagReportTasksResponse(AbstractModel):
|
|
|
7217
7355
|
|
|
7218
7356
|
def __init__(self):
|
|
7219
7357
|
r"""
|
|
7220
|
-
:param _TotalCount:
|
|
7358
|
+
:param _TotalCount: <p>任务总数目。</p>
|
|
7221
7359
|
:type TotalCount: int
|
|
7222
|
-
:param _Tasks:
|
|
7360
|
+
:param _Tasks: <p>任务列表。</p>
|
|
7223
7361
|
:type Tasks: list of HealthReportTask
|
|
7224
7362
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7225
7363
|
:type RequestId: str
|
|
@@ -7230,7 +7368,7 @@ class DescribeDBDiagReportTasksResponse(AbstractModel):
|
|
|
7230
7368
|
|
|
7231
7369
|
@property
|
|
7232
7370
|
def TotalCount(self):
|
|
7233
|
-
r"""
|
|
7371
|
+
r"""<p>任务总数目。</p>
|
|
7234
7372
|
:rtype: int
|
|
7235
7373
|
"""
|
|
7236
7374
|
return self._TotalCount
|
|
@@ -7241,7 +7379,7 @@ class DescribeDBDiagReportTasksResponse(AbstractModel):
|
|
|
7241
7379
|
|
|
7242
7380
|
@property
|
|
7243
7381
|
def Tasks(self):
|
|
7244
|
-
r"""
|
|
7382
|
+
r"""<p>任务列表。</p>
|
|
7245
7383
|
:rtype: list of HealthReportTask
|
|
7246
7384
|
"""
|
|
7247
7385
|
return self._Tasks
|
|
@@ -7273,6 +7411,90 @@ class DescribeDBDiagReportTasksResponse(AbstractModel):
|
|
|
7273
7411
|
self._RequestId = params.get("RequestId")
|
|
7274
7412
|
|
|
7275
7413
|
|
|
7414
|
+
class DescribeDBInstancesRequest(AbstractModel):
|
|
7415
|
+
r"""DescribeDBInstances请求参数结构体
|
|
7416
|
+
|
|
7417
|
+
"""
|
|
7418
|
+
|
|
7419
|
+
def __init__(self):
|
|
7420
|
+
r"""
|
|
7421
|
+
:param _InstanceIds: <p>实例ID列表,最多支持100个。支持多种数据库产品的实例ID,系统会根据实例ID前缀自动识别产品类型。</p>
|
|
7422
|
+
:type InstanceIds: list of str
|
|
7423
|
+
"""
|
|
7424
|
+
self._InstanceIds = None
|
|
7425
|
+
|
|
7426
|
+
@property
|
|
7427
|
+
def InstanceIds(self):
|
|
7428
|
+
r"""<p>实例ID列表,最多支持100个。支持多种数据库产品的实例ID,系统会根据实例ID前缀自动识别产品类型。</p>
|
|
7429
|
+
:rtype: list of str
|
|
7430
|
+
"""
|
|
7431
|
+
return self._InstanceIds
|
|
7432
|
+
|
|
7433
|
+
@InstanceIds.setter
|
|
7434
|
+
def InstanceIds(self, InstanceIds):
|
|
7435
|
+
self._InstanceIds = InstanceIds
|
|
7436
|
+
|
|
7437
|
+
|
|
7438
|
+
def _deserialize(self, params):
|
|
7439
|
+
self._InstanceIds = params.get("InstanceIds")
|
|
7440
|
+
memeber_set = set(params.keys())
|
|
7441
|
+
for name, value in vars(self).items():
|
|
7442
|
+
property_name = name[1:]
|
|
7443
|
+
if property_name in memeber_set:
|
|
7444
|
+
memeber_set.remove(property_name)
|
|
7445
|
+
if len(memeber_set) > 0:
|
|
7446
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7447
|
+
|
|
7448
|
+
|
|
7449
|
+
|
|
7450
|
+
class DescribeDBInstancesResponse(AbstractModel):
|
|
7451
|
+
r"""DescribeDBInstances返回参数结构体
|
|
7452
|
+
|
|
7453
|
+
"""
|
|
7454
|
+
|
|
7455
|
+
def __init__(self):
|
|
7456
|
+
r"""
|
|
7457
|
+
:param _Items: <p>实例列表。</p>
|
|
7458
|
+
:type Items: list of InstanceItem
|
|
7459
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7460
|
+
:type RequestId: str
|
|
7461
|
+
"""
|
|
7462
|
+
self._Items = None
|
|
7463
|
+
self._RequestId = None
|
|
7464
|
+
|
|
7465
|
+
@property
|
|
7466
|
+
def Items(self):
|
|
7467
|
+
r"""<p>实例列表。</p>
|
|
7468
|
+
:rtype: list of InstanceItem
|
|
7469
|
+
"""
|
|
7470
|
+
return self._Items
|
|
7471
|
+
|
|
7472
|
+
@Items.setter
|
|
7473
|
+
def Items(self, Items):
|
|
7474
|
+
self._Items = Items
|
|
7475
|
+
|
|
7476
|
+
@property
|
|
7477
|
+
def RequestId(self):
|
|
7478
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7479
|
+
:rtype: str
|
|
7480
|
+
"""
|
|
7481
|
+
return self._RequestId
|
|
7482
|
+
|
|
7483
|
+
@RequestId.setter
|
|
7484
|
+
def RequestId(self, RequestId):
|
|
7485
|
+
self._RequestId = RequestId
|
|
7486
|
+
|
|
7487
|
+
|
|
7488
|
+
def _deserialize(self, params):
|
|
7489
|
+
if params.get("Items") is not None:
|
|
7490
|
+
self._Items = []
|
|
7491
|
+
for item in params.get("Items"):
|
|
7492
|
+
obj = InstanceItem()
|
|
7493
|
+
obj._deserialize(item)
|
|
7494
|
+
self._Items.append(obj)
|
|
7495
|
+
self._RequestId = params.get("RequestId")
|
|
7496
|
+
|
|
7497
|
+
|
|
7276
7498
|
class DescribeDBPerfTimeSeriesRequest(AbstractModel):
|
|
7277
7499
|
r"""DescribeDBPerfTimeSeries请求参数结构体
|
|
7278
7500
|
|
|
@@ -14548,6 +14770,78 @@ class DiagHistoryEventItem(AbstractModel):
|
|
|
14548
14770
|
|
|
14549
14771
|
|
|
14550
14772
|
|
|
14773
|
+
class DiagReportUrlItem(AbstractModel):
|
|
14774
|
+
r"""健康报告URL信息
|
|
14775
|
+
|
|
14776
|
+
"""
|
|
14777
|
+
|
|
14778
|
+
def __init__(self):
|
|
14779
|
+
r"""
|
|
14780
|
+
:param _AsyncRequestId: 异步任务ID。
|
|
14781
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14782
|
+
:type AsyncRequestId: int
|
|
14783
|
+
:param _ReportUrl: 报告下载地址。
|
|
14784
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14785
|
+
:type ReportUrl: str
|
|
14786
|
+
:param _ExpireTime: 链接过期时间,Unix时间戳(秒),-1表示永不过期。
|
|
14787
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14788
|
+
:type ExpireTime: int
|
|
14789
|
+
"""
|
|
14790
|
+
self._AsyncRequestId = None
|
|
14791
|
+
self._ReportUrl = None
|
|
14792
|
+
self._ExpireTime = None
|
|
14793
|
+
|
|
14794
|
+
@property
|
|
14795
|
+
def AsyncRequestId(self):
|
|
14796
|
+
r"""异步任务ID。
|
|
14797
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14798
|
+
:rtype: int
|
|
14799
|
+
"""
|
|
14800
|
+
return self._AsyncRequestId
|
|
14801
|
+
|
|
14802
|
+
@AsyncRequestId.setter
|
|
14803
|
+
def AsyncRequestId(self, AsyncRequestId):
|
|
14804
|
+
self._AsyncRequestId = AsyncRequestId
|
|
14805
|
+
|
|
14806
|
+
@property
|
|
14807
|
+
def ReportUrl(self):
|
|
14808
|
+
r"""报告下载地址。
|
|
14809
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14810
|
+
:rtype: str
|
|
14811
|
+
"""
|
|
14812
|
+
return self._ReportUrl
|
|
14813
|
+
|
|
14814
|
+
@ReportUrl.setter
|
|
14815
|
+
def ReportUrl(self, ReportUrl):
|
|
14816
|
+
self._ReportUrl = ReportUrl
|
|
14817
|
+
|
|
14818
|
+
@property
|
|
14819
|
+
def ExpireTime(self):
|
|
14820
|
+
r"""链接过期时间,Unix时间戳(秒),-1表示永不过期。
|
|
14821
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
14822
|
+
:rtype: int
|
|
14823
|
+
"""
|
|
14824
|
+
return self._ExpireTime
|
|
14825
|
+
|
|
14826
|
+
@ExpireTime.setter
|
|
14827
|
+
def ExpireTime(self, ExpireTime):
|
|
14828
|
+
self._ExpireTime = ExpireTime
|
|
14829
|
+
|
|
14830
|
+
|
|
14831
|
+
def _deserialize(self, params):
|
|
14832
|
+
self._AsyncRequestId = params.get("AsyncRequestId")
|
|
14833
|
+
self._ReportUrl = params.get("ReportUrl")
|
|
14834
|
+
self._ExpireTime = params.get("ExpireTime")
|
|
14835
|
+
memeber_set = set(params.keys())
|
|
14836
|
+
for name, value in vars(self).items():
|
|
14837
|
+
property_name = name[1:]
|
|
14838
|
+
if property_name in memeber_set:
|
|
14839
|
+
memeber_set.remove(property_name)
|
|
14840
|
+
if len(memeber_set) > 0:
|
|
14841
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14842
|
+
|
|
14843
|
+
|
|
14844
|
+
|
|
14551
14845
|
class EventInfo(AbstractModel):
|
|
14552
14846
|
r"""异常事件信息。
|
|
14553
14847
|
|
|
@@ -14777,22 +15071,24 @@ class HealthReportTask(AbstractModel):
|
|
|
14777
15071
|
|
|
14778
15072
|
def __init__(self):
|
|
14779
15073
|
r"""
|
|
14780
|
-
:param _AsyncRequestId:
|
|
15074
|
+
:param _AsyncRequestId: <p>异步任务请求 ID。</p>
|
|
14781
15075
|
:type AsyncRequestId: int
|
|
14782
|
-
:param _Source:
|
|
15076
|
+
:param _Source: <p>任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 定时生成;"MANUAL" - 手动触发。</p>
|
|
14783
15077
|
:type Source: str
|
|
14784
|
-
:param _Progress:
|
|
15078
|
+
:param _Progress: <p>任务完成进度,单位%。</p>
|
|
14785
15079
|
:type Progress: int
|
|
14786
|
-
:param _CreateTime:
|
|
15080
|
+
:param _CreateTime: <p>任务创建时间,如“2025-09-30 12:13:14”。</p>
|
|
14787
15081
|
:type CreateTime: str
|
|
14788
|
-
:param _StartTime:
|
|
15082
|
+
:param _StartTime: <p>任务开始执行时间,如“2025-09-30 13:13:14”。</p>
|
|
14789
15083
|
:type StartTime: str
|
|
14790
|
-
:param _EndTime:
|
|
15084
|
+
:param _EndTime: <p>任务完成执行时间,如“2025-09-30 14:13:14”。</p>
|
|
14791
15085
|
:type EndTime: str
|
|
14792
|
-
:param _InstanceInfo:
|
|
15086
|
+
:param _InstanceInfo: <p>任务所属实例的基础信息。</p>
|
|
14793
15087
|
:type InstanceInfo: :class:`tencentcloud.dbbrain.v20210527.models.InstanceBasicInfo`
|
|
14794
|
-
:param _HealthStatus:
|
|
15088
|
+
:param _HealthStatus: <p>健康报告中的健康信息。</p>
|
|
14795
15089
|
:type HealthStatus: :class:`tencentcloud.dbbrain.v20210527.models.HealthStatus`
|
|
15090
|
+
:param _Tags: <p>任务所属实例的标签信息</p>
|
|
15091
|
+
:type Tags: list of TagInfo
|
|
14796
15092
|
"""
|
|
14797
15093
|
self._AsyncRequestId = None
|
|
14798
15094
|
self._Source = None
|
|
@@ -14802,10 +15098,11 @@ class HealthReportTask(AbstractModel):
|
|
|
14802
15098
|
self._EndTime = None
|
|
14803
15099
|
self._InstanceInfo = None
|
|
14804
15100
|
self._HealthStatus = None
|
|
15101
|
+
self._Tags = None
|
|
14805
15102
|
|
|
14806
15103
|
@property
|
|
14807
15104
|
def AsyncRequestId(self):
|
|
14808
|
-
r"""
|
|
15105
|
+
r"""<p>异步任务请求 ID。</p>
|
|
14809
15106
|
:rtype: int
|
|
14810
15107
|
"""
|
|
14811
15108
|
return self._AsyncRequestId
|
|
@@ -14816,7 +15113,7 @@ class HealthReportTask(AbstractModel):
|
|
|
14816
15113
|
|
|
14817
15114
|
@property
|
|
14818
15115
|
def Source(self):
|
|
14819
|
-
r"""
|
|
15116
|
+
r"""<p>任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 定时生成;"MANUAL" - 手动触发。</p>
|
|
14820
15117
|
:rtype: str
|
|
14821
15118
|
"""
|
|
14822
15119
|
return self._Source
|
|
@@ -14827,7 +15124,7 @@ class HealthReportTask(AbstractModel):
|
|
|
14827
15124
|
|
|
14828
15125
|
@property
|
|
14829
15126
|
def Progress(self):
|
|
14830
|
-
r"""
|
|
15127
|
+
r"""<p>任务完成进度,单位%。</p>
|
|
14831
15128
|
:rtype: int
|
|
14832
15129
|
"""
|
|
14833
15130
|
return self._Progress
|
|
@@ -14838,7 +15135,7 @@ class HealthReportTask(AbstractModel):
|
|
|
14838
15135
|
|
|
14839
15136
|
@property
|
|
14840
15137
|
def CreateTime(self):
|
|
14841
|
-
r"""
|
|
15138
|
+
r"""<p>任务创建时间,如“2025-09-30 12:13:14”。</p>
|
|
14842
15139
|
:rtype: str
|
|
14843
15140
|
"""
|
|
14844
15141
|
return self._CreateTime
|
|
@@ -14849,7 +15146,7 @@ class HealthReportTask(AbstractModel):
|
|
|
14849
15146
|
|
|
14850
15147
|
@property
|
|
14851
15148
|
def StartTime(self):
|
|
14852
|
-
r"""
|
|
15149
|
+
r"""<p>任务开始执行时间,如“2025-09-30 13:13:14”。</p>
|
|
14853
15150
|
:rtype: str
|
|
14854
15151
|
"""
|
|
14855
15152
|
return self._StartTime
|
|
@@ -14860,7 +15157,7 @@ class HealthReportTask(AbstractModel):
|
|
|
14860
15157
|
|
|
14861
15158
|
@property
|
|
14862
15159
|
def EndTime(self):
|
|
14863
|
-
r"""
|
|
15160
|
+
r"""<p>任务完成执行时间,如“2025-09-30 14:13:14”。</p>
|
|
14864
15161
|
:rtype: str
|
|
14865
15162
|
"""
|
|
14866
15163
|
return self._EndTime
|
|
@@ -14871,7 +15168,7 @@ class HealthReportTask(AbstractModel):
|
|
|
14871
15168
|
|
|
14872
15169
|
@property
|
|
14873
15170
|
def InstanceInfo(self):
|
|
14874
|
-
r"""
|
|
15171
|
+
r"""<p>任务所属实例的基础信息。</p>
|
|
14875
15172
|
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.InstanceBasicInfo`
|
|
14876
15173
|
"""
|
|
14877
15174
|
return self._InstanceInfo
|
|
@@ -14882,7 +15179,7 @@ class HealthReportTask(AbstractModel):
|
|
|
14882
15179
|
|
|
14883
15180
|
@property
|
|
14884
15181
|
def HealthStatus(self):
|
|
14885
|
-
r"""
|
|
15182
|
+
r"""<p>健康报告中的健康信息。</p>
|
|
14886
15183
|
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.HealthStatus`
|
|
14887
15184
|
"""
|
|
14888
15185
|
return self._HealthStatus
|
|
@@ -14891,6 +15188,17 @@ class HealthReportTask(AbstractModel):
|
|
|
14891
15188
|
def HealthStatus(self, HealthStatus):
|
|
14892
15189
|
self._HealthStatus = HealthStatus
|
|
14893
15190
|
|
|
15191
|
+
@property
|
|
15192
|
+
def Tags(self):
|
|
15193
|
+
r"""<p>任务所属实例的标签信息</p>
|
|
15194
|
+
:rtype: list of TagInfo
|
|
15195
|
+
"""
|
|
15196
|
+
return self._Tags
|
|
15197
|
+
|
|
15198
|
+
@Tags.setter
|
|
15199
|
+
def Tags(self, Tags):
|
|
15200
|
+
self._Tags = Tags
|
|
15201
|
+
|
|
14894
15202
|
|
|
14895
15203
|
def _deserialize(self, params):
|
|
14896
15204
|
self._AsyncRequestId = params.get("AsyncRequestId")
|
|
@@ -14905,6 +15213,12 @@ class HealthReportTask(AbstractModel):
|
|
|
14905
15213
|
if params.get("HealthStatus") is not None:
|
|
14906
15214
|
self._HealthStatus = HealthStatus()
|
|
14907
15215
|
self._HealthStatus._deserialize(params.get("HealthStatus"))
|
|
15216
|
+
if params.get("Tags") is not None:
|
|
15217
|
+
self._Tags = []
|
|
15218
|
+
for item in params.get("Tags"):
|
|
15219
|
+
obj = TagInfo()
|
|
15220
|
+
obj._deserialize(item)
|
|
15221
|
+
self._Tags.append(obj)
|
|
14908
15222
|
memeber_set = set(params.keys())
|
|
14909
15223
|
for name, value in vars(self).items():
|
|
14910
15224
|
property_name = name[1:]
|
|
@@ -15472,7 +15786,8 @@ class InstanceBasicInfo(AbstractModel):
|
|
|
15472
15786
|
:type EngineVersion: str
|
|
15473
15787
|
:param _Cpu: CPU数量,对于Redis为0。
|
|
15474
15788
|
:type Cpu: int
|
|
15475
|
-
:param _DeployMode: 实例部署模式。
|
|
15789
|
+
:param _DeployMode: 实例部署模式。MySQL 实例类型取值包括"STANDARD"-标准类型,"CUSTOM"-普通类型, "EXCLUSIVE"-独占类型, "CUSTOMER_AGENT"-用户代理类型, "CUSTOMER_DIRECT"-用户直连类型,
|
|
15790
|
+
"CLOUD_NATIVE_CLUSTER_EXCLUSIVE"-云原生独占集群, "CLOUD_NATIVE_CLUSTER"-云原生集群。
|
|
15476
15791
|
:type DeployMode: str
|
|
15477
15792
|
:param _InstanceConf: 实例内存配置。
|
|
15478
15793
|
:type InstanceConf: :class:`tencentcloud.dbbrain.v20210527.models.RedisInstanceConf`
|
|
@@ -15584,7 +15899,8 @@ class InstanceBasicInfo(AbstractModel):
|
|
|
15584
15899
|
|
|
15585
15900
|
@property
|
|
15586
15901
|
def DeployMode(self):
|
|
15587
|
-
r"""实例部署模式。
|
|
15902
|
+
r"""实例部署模式。MySQL 实例类型取值包括"STANDARD"-标准类型,"CUSTOM"-普通类型, "EXCLUSIVE"-独占类型, "CUSTOMER_AGENT"-用户代理类型, "CUSTOMER_DIRECT"-用户直连类型,
|
|
15903
|
+
"CLOUD_NATIVE_CLUSTER_EXCLUSIVE"-云原生独占集群, "CLOUD_NATIVE_CLUSTER"-云原生集群。
|
|
15588
15904
|
:rtype: str
|
|
15589
15905
|
"""
|
|
15590
15906
|
return self._DeployMode
|
|
@@ -16379,6 +16695,157 @@ class InstanceInfo(AbstractModel):
|
|
|
16379
16695
|
|
|
16380
16696
|
|
|
16381
16697
|
|
|
16698
|
+
class InstanceItem(AbstractModel):
|
|
16699
|
+
r"""数据库实例基本信息
|
|
16700
|
+
|
|
16701
|
+
"""
|
|
16702
|
+
|
|
16703
|
+
def __init__(self):
|
|
16704
|
+
r"""
|
|
16705
|
+
:param _InstanceId: <p>实例ID。</p>
|
|
16706
|
+
:type InstanceId: str
|
|
16707
|
+
:param _Product: <p>数据库类型,如 mysql、cynosdb、mariadb、dcdb、mongodb、postgres、redis、dbbrain-mysql、tdstore。</p>
|
|
16708
|
+
:type Product: str
|
|
16709
|
+
:param _Region: <p>地域英文ID。</p>
|
|
16710
|
+
:type Region: str
|
|
16711
|
+
:param _ClusterId: <p>集群ID,仅集群类产品返回。</p>
|
|
16712
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16713
|
+
:type ClusterId: str
|
|
16714
|
+
:param _EngineVersion: <p>引擎版本。</p>
|
|
16715
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16716
|
+
:type EngineVersion: str
|
|
16717
|
+
:param _Status: <p>实例状态,1表示运行中。</p>
|
|
16718
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16719
|
+
:type Status: int
|
|
16720
|
+
:param _CreateTime: <p>实例创建时间。</p>
|
|
16721
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16722
|
+
:type CreateTime: str
|
|
16723
|
+
:param _DeadlineTime: <p>实例到期时间。</p>
|
|
16724
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16725
|
+
:type DeadlineTime: str
|
|
16726
|
+
"""
|
|
16727
|
+
self._InstanceId = None
|
|
16728
|
+
self._Product = None
|
|
16729
|
+
self._Region = None
|
|
16730
|
+
self._ClusterId = None
|
|
16731
|
+
self._EngineVersion = None
|
|
16732
|
+
self._Status = None
|
|
16733
|
+
self._CreateTime = None
|
|
16734
|
+
self._DeadlineTime = None
|
|
16735
|
+
|
|
16736
|
+
@property
|
|
16737
|
+
def InstanceId(self):
|
|
16738
|
+
r"""<p>实例ID。</p>
|
|
16739
|
+
:rtype: str
|
|
16740
|
+
"""
|
|
16741
|
+
return self._InstanceId
|
|
16742
|
+
|
|
16743
|
+
@InstanceId.setter
|
|
16744
|
+
def InstanceId(self, InstanceId):
|
|
16745
|
+
self._InstanceId = InstanceId
|
|
16746
|
+
|
|
16747
|
+
@property
|
|
16748
|
+
def Product(self):
|
|
16749
|
+
r"""<p>数据库类型,如 mysql、cynosdb、mariadb、dcdb、mongodb、postgres、redis、dbbrain-mysql、tdstore。</p>
|
|
16750
|
+
:rtype: str
|
|
16751
|
+
"""
|
|
16752
|
+
return self._Product
|
|
16753
|
+
|
|
16754
|
+
@Product.setter
|
|
16755
|
+
def Product(self, Product):
|
|
16756
|
+
self._Product = Product
|
|
16757
|
+
|
|
16758
|
+
@property
|
|
16759
|
+
def Region(self):
|
|
16760
|
+
r"""<p>地域英文ID。</p>
|
|
16761
|
+
:rtype: str
|
|
16762
|
+
"""
|
|
16763
|
+
return self._Region
|
|
16764
|
+
|
|
16765
|
+
@Region.setter
|
|
16766
|
+
def Region(self, Region):
|
|
16767
|
+
self._Region = Region
|
|
16768
|
+
|
|
16769
|
+
@property
|
|
16770
|
+
def ClusterId(self):
|
|
16771
|
+
r"""<p>集群ID,仅集群类产品返回。</p>
|
|
16772
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16773
|
+
:rtype: str
|
|
16774
|
+
"""
|
|
16775
|
+
return self._ClusterId
|
|
16776
|
+
|
|
16777
|
+
@ClusterId.setter
|
|
16778
|
+
def ClusterId(self, ClusterId):
|
|
16779
|
+
self._ClusterId = ClusterId
|
|
16780
|
+
|
|
16781
|
+
@property
|
|
16782
|
+
def EngineVersion(self):
|
|
16783
|
+
r"""<p>引擎版本。</p>
|
|
16784
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16785
|
+
:rtype: str
|
|
16786
|
+
"""
|
|
16787
|
+
return self._EngineVersion
|
|
16788
|
+
|
|
16789
|
+
@EngineVersion.setter
|
|
16790
|
+
def EngineVersion(self, EngineVersion):
|
|
16791
|
+
self._EngineVersion = EngineVersion
|
|
16792
|
+
|
|
16793
|
+
@property
|
|
16794
|
+
def Status(self):
|
|
16795
|
+
r"""<p>实例状态,1表示运行中。</p>
|
|
16796
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16797
|
+
:rtype: int
|
|
16798
|
+
"""
|
|
16799
|
+
return self._Status
|
|
16800
|
+
|
|
16801
|
+
@Status.setter
|
|
16802
|
+
def Status(self, Status):
|
|
16803
|
+
self._Status = Status
|
|
16804
|
+
|
|
16805
|
+
@property
|
|
16806
|
+
def CreateTime(self):
|
|
16807
|
+
r"""<p>实例创建时间。</p>
|
|
16808
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16809
|
+
:rtype: str
|
|
16810
|
+
"""
|
|
16811
|
+
return self._CreateTime
|
|
16812
|
+
|
|
16813
|
+
@CreateTime.setter
|
|
16814
|
+
def CreateTime(self, CreateTime):
|
|
16815
|
+
self._CreateTime = CreateTime
|
|
16816
|
+
|
|
16817
|
+
@property
|
|
16818
|
+
def DeadlineTime(self):
|
|
16819
|
+
r"""<p>实例到期时间。</p>
|
|
16820
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
16821
|
+
:rtype: str
|
|
16822
|
+
"""
|
|
16823
|
+
return self._DeadlineTime
|
|
16824
|
+
|
|
16825
|
+
@DeadlineTime.setter
|
|
16826
|
+
def DeadlineTime(self, DeadlineTime):
|
|
16827
|
+
self._DeadlineTime = DeadlineTime
|
|
16828
|
+
|
|
16829
|
+
|
|
16830
|
+
def _deserialize(self, params):
|
|
16831
|
+
self._InstanceId = params.get("InstanceId")
|
|
16832
|
+
self._Product = params.get("Product")
|
|
16833
|
+
self._Region = params.get("Region")
|
|
16834
|
+
self._ClusterId = params.get("ClusterId")
|
|
16835
|
+
self._EngineVersion = params.get("EngineVersion")
|
|
16836
|
+
self._Status = params.get("Status")
|
|
16837
|
+
self._CreateTime = params.get("CreateTime")
|
|
16838
|
+
self._DeadlineTime = params.get("DeadlineTime")
|
|
16839
|
+
memeber_set = set(params.keys())
|
|
16840
|
+
for name, value in vars(self).items():
|
|
16841
|
+
property_name = name[1:]
|
|
16842
|
+
if property_name in memeber_set:
|
|
16843
|
+
memeber_set.remove(property_name)
|
|
16844
|
+
if len(memeber_set) > 0:
|
|
16845
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16846
|
+
|
|
16847
|
+
|
|
16848
|
+
|
|
16382
16849
|
class IssueTypeInfo(AbstractModel):
|
|
16383
16850
|
r"""指标信息。
|
|
16384
16851
|
|
|
@@ -21979,6 +22446,149 @@ class TableSpaceTimeSeries(AbstractModel):
|
|
|
21979
22446
|
|
|
21980
22447
|
|
|
21981
22448
|
|
|
22449
|
+
class TagFilterGroup(AbstractModel):
|
|
22450
|
+
r"""标签过滤组。组内 TagPairs 之间为 OR 关系;不同 TagFilterGroup 之间为 AND 关系。
|
|
22451
|
+
|
|
22452
|
+
"""
|
|
22453
|
+
|
|
22454
|
+
def __init__(self):
|
|
22455
|
+
r"""
|
|
22456
|
+
:param _TagPairs: <p>过滤条件-标签组</p>
|
|
22457
|
+
:type TagPairs: list of TagPair
|
|
22458
|
+
"""
|
|
22459
|
+
self._TagPairs = None
|
|
22460
|
+
|
|
22461
|
+
@property
|
|
22462
|
+
def TagPairs(self):
|
|
22463
|
+
r"""<p>过滤条件-标签组</p>
|
|
22464
|
+
:rtype: list of TagPair
|
|
22465
|
+
"""
|
|
22466
|
+
return self._TagPairs
|
|
22467
|
+
|
|
22468
|
+
@TagPairs.setter
|
|
22469
|
+
def TagPairs(self, TagPairs):
|
|
22470
|
+
self._TagPairs = TagPairs
|
|
22471
|
+
|
|
22472
|
+
|
|
22473
|
+
def _deserialize(self, params):
|
|
22474
|
+
if params.get("TagPairs") is not None:
|
|
22475
|
+
self._TagPairs = []
|
|
22476
|
+
for item in params.get("TagPairs"):
|
|
22477
|
+
obj = TagPair()
|
|
22478
|
+
obj._deserialize(item)
|
|
22479
|
+
self._TagPairs.append(obj)
|
|
22480
|
+
memeber_set = set(params.keys())
|
|
22481
|
+
for name, value in vars(self).items():
|
|
22482
|
+
property_name = name[1:]
|
|
22483
|
+
if property_name in memeber_set:
|
|
22484
|
+
memeber_set.remove(property_name)
|
|
22485
|
+
if len(memeber_set) > 0:
|
|
22486
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
22487
|
+
|
|
22488
|
+
|
|
22489
|
+
|
|
22490
|
+
class TagInfo(AbstractModel):
|
|
22491
|
+
r"""实例标签信息
|
|
22492
|
+
|
|
22493
|
+
"""
|
|
22494
|
+
|
|
22495
|
+
def __init__(self):
|
|
22496
|
+
r"""
|
|
22497
|
+
:param _TagKey: <p>实例标签key</p>
|
|
22498
|
+
:type TagKey: str
|
|
22499
|
+
:param _TagValue: <p>实例标签value</p>
|
|
22500
|
+
:type TagValue: str
|
|
22501
|
+
"""
|
|
22502
|
+
self._TagKey = None
|
|
22503
|
+
self._TagValue = None
|
|
22504
|
+
|
|
22505
|
+
@property
|
|
22506
|
+
def TagKey(self):
|
|
22507
|
+
r"""<p>实例标签key</p>
|
|
22508
|
+
:rtype: str
|
|
22509
|
+
"""
|
|
22510
|
+
return self._TagKey
|
|
22511
|
+
|
|
22512
|
+
@TagKey.setter
|
|
22513
|
+
def TagKey(self, TagKey):
|
|
22514
|
+
self._TagKey = TagKey
|
|
22515
|
+
|
|
22516
|
+
@property
|
|
22517
|
+
def TagValue(self):
|
|
22518
|
+
r"""<p>实例标签value</p>
|
|
22519
|
+
:rtype: str
|
|
22520
|
+
"""
|
|
22521
|
+
return self._TagValue
|
|
22522
|
+
|
|
22523
|
+
@TagValue.setter
|
|
22524
|
+
def TagValue(self, TagValue):
|
|
22525
|
+
self._TagValue = TagValue
|
|
22526
|
+
|
|
22527
|
+
|
|
22528
|
+
def _deserialize(self, params):
|
|
22529
|
+
self._TagKey = params.get("TagKey")
|
|
22530
|
+
self._TagValue = params.get("TagValue")
|
|
22531
|
+
memeber_set = set(params.keys())
|
|
22532
|
+
for name, value in vars(self).items():
|
|
22533
|
+
property_name = name[1:]
|
|
22534
|
+
if property_name in memeber_set:
|
|
22535
|
+
memeber_set.remove(property_name)
|
|
22536
|
+
if len(memeber_set) > 0:
|
|
22537
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
22538
|
+
|
|
22539
|
+
|
|
22540
|
+
|
|
22541
|
+
class TagPair(AbstractModel):
|
|
22542
|
+
r"""标签键值对过滤条件。
|
|
22543
|
+
|
|
22544
|
+
"""
|
|
22545
|
+
|
|
22546
|
+
def __init__(self):
|
|
22547
|
+
r"""
|
|
22548
|
+
:param _TagKey: <p>过滤条件-标签key</p>
|
|
22549
|
+
:type TagKey: str
|
|
22550
|
+
:param _TagValue: <p>过滤条件标签-value</p>
|
|
22551
|
+
:type TagValue: list of str
|
|
22552
|
+
"""
|
|
22553
|
+
self._TagKey = None
|
|
22554
|
+
self._TagValue = None
|
|
22555
|
+
|
|
22556
|
+
@property
|
|
22557
|
+
def TagKey(self):
|
|
22558
|
+
r"""<p>过滤条件-标签key</p>
|
|
22559
|
+
:rtype: str
|
|
22560
|
+
"""
|
|
22561
|
+
return self._TagKey
|
|
22562
|
+
|
|
22563
|
+
@TagKey.setter
|
|
22564
|
+
def TagKey(self, TagKey):
|
|
22565
|
+
self._TagKey = TagKey
|
|
22566
|
+
|
|
22567
|
+
@property
|
|
22568
|
+
def TagValue(self):
|
|
22569
|
+
r"""<p>过滤条件标签-value</p>
|
|
22570
|
+
:rtype: list of str
|
|
22571
|
+
"""
|
|
22572
|
+
return self._TagValue
|
|
22573
|
+
|
|
22574
|
+
@TagValue.setter
|
|
22575
|
+
def TagValue(self, TagValue):
|
|
22576
|
+
self._TagValue = TagValue
|
|
22577
|
+
|
|
22578
|
+
|
|
22579
|
+
def _deserialize(self, params):
|
|
22580
|
+
self._TagKey = params.get("TagKey")
|
|
22581
|
+
self._TagValue = params.get("TagValue")
|
|
22582
|
+
memeber_set = set(params.keys())
|
|
22583
|
+
for name, value in vars(self).items():
|
|
22584
|
+
property_name = name[1:]
|
|
22585
|
+
if property_name in memeber_set:
|
|
22586
|
+
memeber_set.remove(property_name)
|
|
22587
|
+
if len(memeber_set) > 0:
|
|
22588
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
22589
|
+
|
|
22590
|
+
|
|
22591
|
+
|
|
21982
22592
|
class TaskInfo(AbstractModel):
|
|
21983
22593
|
r"""展示 redis kill 会话任务状态。
|
|
21984
22594
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-dbbrain
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.151
|
|
4
4
|
Summary: Tencent Cloud Dbbrain SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.151
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.151
|
tencentcloud_sdk_python_dbbrain-3.1.137/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.137
|
{tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/README.rst
RENAMED
|
File without changes
|
{tencentcloud_sdk_python_dbbrain-3.1.137 → tencentcloud_sdk_python_dbbrain-3.1.151}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|