tencentcloud-sdk-nodejs 4.0.697 → 4.0.698
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.
- package/CHANGELOG.md +84 -0
- package/SERVICE_CHANGELOG.md +103 -185
- package/package.json +1 -1
- package/products.md +4 -3
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdwpg/index.ts +5 -0
- package/src/services/cdwpg/v20201230/cdwpg_client.ts +59 -0
- package/src/services/cdwpg/v20201230/cdwpg_models.ts +187 -0
- package/src/services/cdwpg/v20201230/index.ts +6 -0
- package/src/services/dbbrain/v20210527/dbbrain_client.ts +53 -12
- package/src/services/dbbrain/v20210527/dbbrain_models.ts +372 -82
- package/src/services/index.ts +1 -0
- package/src/services/teo/v20220901/teo_client.ts +2 -0
- package/src/services/teo/v20220901/teo_models.ts +62 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cdwpg/index.d.ts +6 -0
- package/tencentcloud/services/cdwpg/index.js +7 -0
- package/tencentcloud/services/cdwpg/v20201230/cdwpg_client.d.ts +18 -0
- package/tencentcloud/services/cdwpg/v20201230/cdwpg_client.js +43 -0
- package/tencentcloud/services/cdwpg/v20201230/cdwpg_models.d.ts +163 -0
- package/tencentcloud/services/cdwpg/v20201230/cdwpg_models.js +18 -0
- package/tencentcloud/services/cdwpg/v20201230/index.d.ts +6 -0
- package/tencentcloud/services/cdwpg/v20201230/index.js +9 -0
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.d.ts +15 -3
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.js +21 -3
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +361 -82
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +60 -0
- package/test/cdwpg.v20201230.test.js +41 -0
- package/test/dbbrain.v20210527.test.js +32 -2
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 资源规格
|
|
20
|
+
*/
|
|
21
|
+
export interface ResourceSpecNew {
|
|
22
|
+
/**
|
|
23
|
+
* 资源名称
|
|
24
|
+
*/
|
|
25
|
+
SpecName: string
|
|
26
|
+
/**
|
|
27
|
+
* 资源数
|
|
28
|
+
*/
|
|
29
|
+
Count: number
|
|
30
|
+
/**
|
|
31
|
+
* 磁盘信息
|
|
32
|
+
*/
|
|
33
|
+
DiskSpec: CBSSpec
|
|
34
|
+
/**
|
|
35
|
+
* 资源类型,DATA
|
|
36
|
+
*/
|
|
37
|
+
Type: string
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* DestroyInstanceByApi返回参数结构体
|
|
42
|
+
*/
|
|
43
|
+
export interface DestroyInstanceByApiResponse {
|
|
44
|
+
/**
|
|
45
|
+
* 销毁流程Id
|
|
46
|
+
*/
|
|
47
|
+
FlowId?: string
|
|
48
|
+
/**
|
|
49
|
+
* 错误信息
|
|
50
|
+
*/
|
|
51
|
+
ErrorMsg?: string
|
|
52
|
+
/**
|
|
53
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
54
|
+
*/
|
|
55
|
+
RequestId?: string
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* CreateInstanceByApi请求参数结构体
|
|
60
|
+
*/
|
|
61
|
+
export interface CreateInstanceByApiRequest {
|
|
62
|
+
/**
|
|
63
|
+
* 实例名称
|
|
64
|
+
*/
|
|
65
|
+
InstanceName: string
|
|
66
|
+
/**
|
|
67
|
+
* 可用区
|
|
68
|
+
*/
|
|
69
|
+
Zone: string
|
|
70
|
+
/**
|
|
71
|
+
* 私有网络
|
|
72
|
+
*/
|
|
73
|
+
UserVPCId: string
|
|
74
|
+
/**
|
|
75
|
+
* 子网
|
|
76
|
+
*/
|
|
77
|
+
UserSubnetId: string
|
|
78
|
+
/**
|
|
79
|
+
* 计费方式
|
|
80
|
+
*/
|
|
81
|
+
ChargeProperties: ChargeProperties
|
|
82
|
+
/**
|
|
83
|
+
* 集群密码
|
|
84
|
+
*/
|
|
85
|
+
AdminPassword: string
|
|
86
|
+
/**
|
|
87
|
+
* 资源信息
|
|
88
|
+
*/
|
|
89
|
+
Resources: Array<ResourceSpecNew>
|
|
90
|
+
/**
|
|
91
|
+
* 标签列表
|
|
92
|
+
*/
|
|
93
|
+
Tags?: Tag
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* 磁盘规格
|
|
98
|
+
*/
|
|
99
|
+
export interface CBSSpec {
|
|
100
|
+
/**
|
|
101
|
+
* 盘类型
|
|
102
|
+
*/
|
|
103
|
+
DiskType: string
|
|
104
|
+
/**
|
|
105
|
+
* 大小
|
|
106
|
+
*/
|
|
107
|
+
DiskSize: number
|
|
108
|
+
/**
|
|
109
|
+
* 个数
|
|
110
|
+
*/
|
|
111
|
+
DiskCount: number
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* CreateInstanceByApi返回参数结构体
|
|
116
|
+
*/
|
|
117
|
+
export interface CreateInstanceByApiResponse {
|
|
118
|
+
/**
|
|
119
|
+
* 流程ID
|
|
120
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
121
|
+
*/
|
|
122
|
+
FlowId?: string
|
|
123
|
+
/**
|
|
124
|
+
* 实例ID
|
|
125
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
126
|
+
*/
|
|
127
|
+
InstanceId?: string
|
|
128
|
+
/**
|
|
129
|
+
* 错误信息
|
|
130
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
131
|
+
*/
|
|
132
|
+
ErrorMsg?: string
|
|
133
|
+
/**
|
|
134
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
135
|
+
*/
|
|
136
|
+
RequestId?: string
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* 标签描述
|
|
141
|
+
*/
|
|
142
|
+
export interface Tag {
|
|
143
|
+
/**
|
|
144
|
+
* 标签的键
|
|
145
|
+
*/
|
|
146
|
+
TagKey: string
|
|
147
|
+
/**
|
|
148
|
+
* 标签的值
|
|
149
|
+
*/
|
|
150
|
+
TagValue: string
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* 计费时间参数
|
|
155
|
+
*/
|
|
156
|
+
export interface ChargeProperties {
|
|
157
|
+
/**
|
|
158
|
+
* 1-需要自动续期
|
|
159
|
+
*/
|
|
160
|
+
RenewFlag: number
|
|
161
|
+
/**
|
|
162
|
+
* 订单时间范围
|
|
163
|
+
*/
|
|
164
|
+
TimeSpan: number
|
|
165
|
+
/**
|
|
166
|
+
* 时间单位,一般为h和m
|
|
167
|
+
*/
|
|
168
|
+
TimeUnit: string
|
|
169
|
+
/**
|
|
170
|
+
* 计费类型0-按量计费,1-包年包月
|
|
171
|
+
*/
|
|
172
|
+
PayMode?: number
|
|
173
|
+
/**
|
|
174
|
+
* PREPAID、POSTPAID_BY_HOUR
|
|
175
|
+
*/
|
|
176
|
+
ChargeType?: string
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* DestroyInstanceByApi请求参数结构体
|
|
181
|
+
*/
|
|
182
|
+
export interface DestroyInstanceByApiRequest {
|
|
183
|
+
/**
|
|
184
|
+
* 实例名称,例如"cdwpg-xxxx"
|
|
185
|
+
*/
|
|
186
|
+
InstanceId: string
|
|
187
|
+
}
|
|
@@ -23,10 +23,12 @@ import {
|
|
|
23
23
|
RedisKeySpaceData,
|
|
24
24
|
DescribeRedisTopKeyPrefixListRequest,
|
|
25
25
|
HealthReportTask,
|
|
26
|
+
SecLogExportTaskInfo,
|
|
26
27
|
OpenAuditServiceResponse,
|
|
27
28
|
CreateDBDiagReportTaskRequest,
|
|
28
29
|
TableSpaceTimeSeries,
|
|
29
30
|
DescribeAuditLogFilesResponse,
|
|
31
|
+
DescribeIndexRecommendAggregationSlowLogsRequest,
|
|
30
32
|
DescribeSlowLogsRequest,
|
|
31
33
|
DescribeTopSpaceTablesRequest,
|
|
32
34
|
ScoreItem,
|
|
@@ -62,6 +64,7 @@ import {
|
|
|
62
64
|
DeleteAuditLogFileResponse,
|
|
63
65
|
DescribeDBSpaceStatusRequest,
|
|
64
66
|
AlarmsRules,
|
|
67
|
+
DescribeRedisProcessListRequest,
|
|
65
68
|
TimeSlice,
|
|
66
69
|
DeleteDBDiagReportTasksRequest,
|
|
67
70
|
ModifyDiagDBInstanceConfRequest,
|
|
@@ -71,12 +74,14 @@ import {
|
|
|
71
74
|
CreateDBDiagReportTaskResponse,
|
|
72
75
|
ProcessStatistic,
|
|
73
76
|
CreateMailProfileResponse,
|
|
77
|
+
UpdateMonitorSwitchResponse,
|
|
74
78
|
DescribeSlowLogTimeSeriesStatsRequest,
|
|
75
79
|
CancelKillTaskRequest,
|
|
76
80
|
InstanceID,
|
|
77
81
|
DescribeDBDiagHistoryRequest,
|
|
78
82
|
CreateAuditLogFileResponse,
|
|
79
83
|
AuditInstance,
|
|
84
|
+
IndexesToBuild,
|
|
80
85
|
DeleteSqlFiltersResponse,
|
|
81
86
|
DescribeDBDiagEventsRequest,
|
|
82
87
|
CreateDBDiagReportUrlResponse,
|
|
@@ -85,6 +90,7 @@ import {
|
|
|
85
90
|
CreateProxySessionKillTaskRequest,
|
|
86
91
|
DeleteDBDiagReportTasksResponse,
|
|
87
92
|
DescribeProxyProcessStatisticsResponse,
|
|
93
|
+
DescribeIndexRecommendInfoRequest,
|
|
88
94
|
SlowLogHost,
|
|
89
95
|
CreateMailProfileRequest,
|
|
90
96
|
MonitorFloatMetricSeriesData,
|
|
@@ -99,8 +105,9 @@ import {
|
|
|
99
105
|
DeleteSecurityAuditLogExportTasksResponse,
|
|
100
106
|
KillMySqlThreadsRequest,
|
|
101
107
|
DescribeSqlFiltersResponse,
|
|
108
|
+
MongoDBIndex,
|
|
102
109
|
CreateDBDiagReportUrlRequest,
|
|
103
|
-
|
|
110
|
+
CloseAuditServiceResponse,
|
|
104
111
|
CloseAuditServiceRequest,
|
|
105
112
|
InstanceConfs,
|
|
106
113
|
ReceiveInfo,
|
|
@@ -108,7 +115,7 @@ import {
|
|
|
108
115
|
HealthScoreInfo,
|
|
109
116
|
DescribeTopSpaceTableTimeSeriesResponse,
|
|
110
117
|
DescribeDBDiagHistoryResponse,
|
|
111
|
-
|
|
118
|
+
Aggregation,
|
|
112
119
|
ModifySqlFiltersRequest,
|
|
113
120
|
DescribeAllUserContactResponse,
|
|
114
121
|
MonitorMetric,
|
|
@@ -135,9 +142,12 @@ import {
|
|
|
135
142
|
DescribeAlarmTemplateResponse,
|
|
136
143
|
DescribeTopSpaceSchemaTimeSeriesRequest,
|
|
137
144
|
ModifyAuditServiceRequest,
|
|
145
|
+
DescribeIndexRecommendAggregationSlowLogsResponse,
|
|
138
146
|
DescribeDBDiagEventsResponse,
|
|
139
147
|
DescribeMailProfileResponse,
|
|
140
148
|
DescribeRedisTopBigKeysRequest,
|
|
149
|
+
DescribeIndexRecommendInfoResponse,
|
|
150
|
+
Process,
|
|
141
151
|
ModifyAuditServiceResponse,
|
|
142
152
|
DescribeHealthScoreRequest,
|
|
143
153
|
IssueTypeInfo,
|
|
@@ -158,7 +168,7 @@ import {
|
|
|
158
168
|
ModifyAlarmPolicyRequest,
|
|
159
169
|
DescribeRedisTopKeyPrefixListResponse,
|
|
160
170
|
DescribeAllUserGroupResponse,
|
|
161
|
-
|
|
171
|
+
DescribeRedisProcessListResponse,
|
|
162
172
|
CreateAuditLogFileRequest,
|
|
163
173
|
DeleteAuditLogFileRequest,
|
|
164
174
|
ModifyDiagDBInstanceConfResponse,
|
|
@@ -168,18 +178,19 @@ import {
|
|
|
168
178
|
GroupItem,
|
|
169
179
|
RedisPreKeySpaceData,
|
|
170
180
|
DescribeTopSpaceTableTimeSeriesRequest,
|
|
181
|
+
DescribeUserSqlAdviceRequest,
|
|
171
182
|
DescribeDBDiagReportTasksRequest,
|
|
172
183
|
MonitorMetricSeriesData,
|
|
173
184
|
SlowLogInfoItem,
|
|
174
|
-
|
|
185
|
+
IndexesToDrop,
|
|
175
186
|
DescribeHealthScoreResponse,
|
|
176
|
-
|
|
187
|
+
DescribeSecurityAuditLogExportTasksResponse,
|
|
177
188
|
DescribeTopSpaceSchemasRequest,
|
|
178
189
|
DescribeSlowLogTopSqlsResponse,
|
|
179
190
|
DescribeNoPrimaryKeyTablesResponse,
|
|
180
191
|
DescribeAuditLogFilesRequest,
|
|
181
192
|
DeleteSqlFiltersRequest,
|
|
182
|
-
|
|
193
|
+
DescribeDiagDBInstancesRequest,
|
|
183
194
|
Table,
|
|
184
195
|
DescribeMySqlProcessListRequest,
|
|
185
196
|
DescribeSecurityAuditLogDownloadUrlsResponse,
|
|
@@ -365,6 +376,16 @@ export class Client extends AbstractClient {
|
|
|
365
376
|
return this.request("DescribeAuditInstanceList", req, cb)
|
|
366
377
|
}
|
|
367
378
|
|
|
379
|
+
/**
|
|
380
|
+
* 获取实例占用空间最大的前几个库在指定时间段内的每日由DBbrain定时采集的空间数据,默认返回按大小排序。
|
|
381
|
+
*/
|
|
382
|
+
async DescribeTopSpaceSchemaTimeSeries(
|
|
383
|
+
req: DescribeTopSpaceSchemaTimeSeriesRequest,
|
|
384
|
+
cb?: (error: string, rep: DescribeTopSpaceSchemaTimeSeriesResponse) => void
|
|
385
|
+
): Promise<DescribeTopSpaceSchemaTimeSeriesResponse> {
|
|
386
|
+
return this.request("DescribeTopSpaceSchemaTimeSeries", req, cb)
|
|
387
|
+
}
|
|
388
|
+
|
|
368
389
|
/**
|
|
369
390
|
* 获取慢日志统计柱状图。
|
|
370
391
|
*/
|
|
@@ -375,6 +396,16 @@ export class Client extends AbstractClient {
|
|
|
375
396
|
return this.request("DescribeSlowLogTimeSeriesStats", req, cb)
|
|
376
397
|
}
|
|
377
398
|
|
|
399
|
+
/**
|
|
400
|
+
* 获取 Redis 实例所有 proxy 节点的实时会话详情列表。
|
|
401
|
+
*/
|
|
402
|
+
async DescribeRedisProcessList(
|
|
403
|
+
req: DescribeRedisProcessListRequest,
|
|
404
|
+
cb?: (error: string, rep: DescribeRedisProcessListResponse) => void
|
|
405
|
+
): Promise<DescribeRedisProcessListResponse> {
|
|
406
|
+
return this.request("DescribeRedisProcessList", req, cb)
|
|
407
|
+
}
|
|
408
|
+
|
|
378
409
|
/**
|
|
379
410
|
* 获取慢日志来源地址统计分布图。
|
|
380
411
|
*/
|
|
@@ -656,13 +687,23 @@ export class Client extends AbstractClient {
|
|
|
656
687
|
}
|
|
657
688
|
|
|
658
689
|
/**
|
|
659
|
-
*
|
|
690
|
+
* 查询实例的索引推荐信息,包括索引统计相关信息,推荐索引列表,无效索引列表等。
|
|
660
691
|
*/
|
|
661
|
-
async
|
|
662
|
-
req:
|
|
663
|
-
cb?: (error: string, rep:
|
|
664
|
-
): Promise<
|
|
665
|
-
return this.request("
|
|
692
|
+
async DescribeIndexRecommendInfo(
|
|
693
|
+
req: DescribeIndexRecommendInfoRequest,
|
|
694
|
+
cb?: (error: string, rep: DescribeIndexRecommendInfoResponse) => void
|
|
695
|
+
): Promise<DescribeIndexRecommendInfoResponse> {
|
|
696
|
+
return this.request("DescribeIndexRecommendInfo", req, cb)
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
/**
|
|
700
|
+
* 查询某张表的慢查模板概览
|
|
701
|
+
*/
|
|
702
|
+
async DescribeIndexRecommendAggregationSlowLogs(
|
|
703
|
+
req: DescribeIndexRecommendAggregationSlowLogsRequest,
|
|
704
|
+
cb?: (error: string, rep: DescribeIndexRecommendAggregationSlowLogsResponse) => void
|
|
705
|
+
): Promise<DescribeIndexRecommendAggregationSlowLogsResponse> {
|
|
706
|
+
return this.request("DescribeIndexRecommendAggregationSlowLogs", req, cb)
|
|
666
707
|
}
|
|
667
708
|
|
|
668
709
|
/**
|