tencentcloud-sdk-nodejs-dbbrain 4.1.171 → 4.1.190
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/es/services/dbbrain/index.js +2 -2
- package/es/services/dbbrain/v20210527/dbbrain_client.js +165 -162
- package/package.json +1 -1
- package/tencentcloud/services/dbbrain/index.d.ts +4 -4
- package/tencentcloud/services/dbbrain/index.js +2 -2
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.d.ts +170 -166
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.js +254 -248
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +110 -51
|
@@ -29,88 +29,88 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
29
29
|
super("dbbrain.tencentcloudapi.com", "2021-05-27", clientConfig);
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* 查询实例无主键表。
|
|
33
33
|
*/
|
|
34
|
-
async
|
|
35
|
-
return this.request("
|
|
34
|
+
async DescribeNoPrimaryKeyTables(req, cb) {
|
|
35
|
+
return this.request("DescribeNoPrimaryKeyTables", req, cb);
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* 查询关系型数据库的实时线程列表。
|
|
39
39
|
*/
|
|
40
|
-
async
|
|
41
|
-
return this.request("
|
|
40
|
+
async DescribeMySqlProcessList(req, cb) {
|
|
41
|
+
return this.request("DescribeMySqlProcessList", req, cb);
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* 创建中止所有代理节点连接会话的异步任务。当前仅支持 Redis。得到的返回值为异步任务 id,可以作为参数传入接口 DescribeProxySessionKillTasks 查询kill会话任务执行状态。
|
|
45
45
|
*/
|
|
46
|
-
async
|
|
47
|
-
return this.request("
|
|
46
|
+
async CreateProxySessionKillTask(req, cb) {
|
|
47
|
+
return this.request("CreateProxySessionKillTask", req, cb);
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* 终止中断会话任务。
|
|
51
51
|
*/
|
|
52
|
-
async
|
|
53
|
-
return this.request("
|
|
52
|
+
async CancelKillTask(req, cb) {
|
|
53
|
+
return this.request("CancelKillTask", req, cb);
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* 自治中心-查询自治事件任务详情。
|
|
57
57
|
*/
|
|
58
|
-
async
|
|
59
|
-
return this.request("
|
|
58
|
+
async DescribeDBAutonomyAction(req, cb) {
|
|
59
|
+
return this.request("DescribeDBAutonomyAction", req, cb);
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* 创建安全审计日志导出任务。
|
|
63
63
|
*/
|
|
64
|
-
async
|
|
65
|
-
return this.request("
|
|
64
|
+
async CreateSecurityAuditLogExportTask(req, cb) {
|
|
65
|
+
return this.request("CreateSecurityAuditLogExportTask", req, cb);
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* 不用审计日志时,关闭数据库审计
|
|
69
69
|
*/
|
|
70
|
-
async
|
|
71
|
-
return this.request("
|
|
70
|
+
async CloseAuditService(req, cb) {
|
|
71
|
+
return this.request("CloseAuditService", req, cb);
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* 更改实例限流任务状态,目前仅用于终止限流。
|
|
75
75
|
*/
|
|
76
|
-
async
|
|
77
|
-
return this.request("
|
|
76
|
+
async ModifySqlFilters(req, cb) {
|
|
77
|
+
return this.request("ModifySqlFilters", req, cb);
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
80
|
+
* 用于创建云数据库实例的审计日志文件,最多下载600w审计日志。
|
|
81
81
|
*/
|
|
82
|
-
async
|
|
83
|
-
return this.request("
|
|
82
|
+
async CreateAuditLogFile(req, cb) {
|
|
83
|
+
return this.request("CreateAuditLogFile", req, cb);
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
86
|
+
* 查询redis实例大key列表。
|
|
87
87
|
*/
|
|
88
|
-
async
|
|
89
|
-
return this.request("
|
|
88
|
+
async DescribeRedisTopBigKeys(req, cb) {
|
|
89
|
+
return this.request("DescribeRedisTopBigKeys", req, cb);
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* 查询redis大key分析任务列表。
|
|
93
93
|
*/
|
|
94
|
-
async
|
|
95
|
-
return this.request("
|
|
94
|
+
async DescribeRedisBigKeyAnalysisTasks(req, cb) {
|
|
95
|
+
return this.request("DescribeRedisBigKeyAnalysisTasks", req, cb);
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* 延迟分析-查询实例访问命令统计
|
|
99
99
|
*/
|
|
100
|
-
async
|
|
101
|
-
return this.request("
|
|
100
|
+
async DescribeRedisCommandOverview(req, cb) {
|
|
101
|
+
return this.request("DescribeRedisCommandOverview", req, cb);
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
*
|
|
104
|
+
* 获取实例异常诊断事件的详情信息。
|
|
105
105
|
*/
|
|
106
|
-
async
|
|
107
|
-
return this.request("
|
|
106
|
+
async DescribeDBDiagEvent(req, cb) {
|
|
107
|
+
return this.request("DescribeDBDiagEvent", req, cb);
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* 自治中心-终止自治任务(单次);注意:接口需要加白名单。
|
|
111
111
|
*/
|
|
112
|
-
async
|
|
113
|
-
return this.request("
|
|
112
|
+
async ModifyUserAutonomyProfile(req, cb) {
|
|
113
|
+
return this.request("ModifyUserAutonomyProfile", req, cb);
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
116
|
* 查询redis实例top key前缀列表。
|
|
@@ -119,64 +119,88 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
119
119
|
return this.request("DescribeRedisTopKeyPrefixList", req, cb);
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
|
-
*
|
|
122
|
+
* 修改告警策略
|
|
123
123
|
*/
|
|
124
|
-
async
|
|
125
|
-
return this.request("
|
|
124
|
+
async ModifyAlarmPolicy(req, cb) {
|
|
125
|
+
return this.request("ModifyAlarmPolicy", req, cb);
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* 添加邮件接收联系人的姓名, 邮件地址,返回值为添加成功的联系人id。
|
|
129
129
|
*/
|
|
130
|
-
async
|
|
131
|
-
return this.request("
|
|
130
|
+
async AddUserContact(req, cb) {
|
|
131
|
+
return this.request("AddUserContact", req, cb);
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
134
|
-
*
|
|
134
|
+
* 查询某张表的慢查模板概览,这个接口是对用户点击对应的推荐索引后,展示慢日志用的
|
|
135
135
|
*/
|
|
136
|
-
async
|
|
137
|
-
return this.request("
|
|
136
|
+
async DescribeIndexRecommendAggregationSlowLogs(req, cb) {
|
|
137
|
+
return this.request("DescribeIndexRecommendAggregationSlowLogs", req, cb);
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
|
-
*
|
|
140
|
+
* 自治中心-终止自治任务(单次)
|
|
141
141
|
*/
|
|
142
|
-
async
|
|
143
|
-
return this.request("
|
|
142
|
+
async CancelDBAutonomyAction(req, cb) {
|
|
143
|
+
return this.request("CancelDBAutonomyAction", req, cb);
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* 创建中断会话的任务。
|
|
147
147
|
*/
|
|
148
|
-
async
|
|
149
|
-
return this.request("
|
|
148
|
+
async CreateKillTask(req, cb) {
|
|
149
|
+
return this.request("CreateKillTask", req, cb);
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* 更新Agent实例状态(停止或重连实例)
|
|
153
153
|
*/
|
|
154
|
-
async
|
|
155
|
-
return this.request("
|
|
154
|
+
async UpdateMonitorSwitch(req, cb) {
|
|
155
|
+
return this.request("UpdateMonitorSwitch", req, cb);
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
|
-
*
|
|
158
|
+
* 获取指定时间段内Redis Proxy 指标
|
|
159
159
|
*/
|
|
160
|
-
async
|
|
161
|
-
return this.request("
|
|
160
|
+
async DescribeMetricTopProxies(req, cb) {
|
|
161
|
+
return this.request("DescribeMetricTopProxies", req, cb);
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
|
-
*
|
|
164
|
+
* 健康报告内容。
|
|
165
165
|
*/
|
|
166
|
-
async
|
|
167
|
-
return this.request("
|
|
166
|
+
async DescribeDBDiagReportContent(req, cb) {
|
|
167
|
+
return this.request("DescribeDBDiagReportContent", req, cb);
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
|
-
*
|
|
170
|
+
* 延迟分析-查询命令延迟分布
|
|
171
171
|
*/
|
|
172
|
-
async
|
|
173
|
-
return this.request("
|
|
172
|
+
async DescribeRedisCommandCostStatistics(req, cb) {
|
|
173
|
+
return this.request("DescribeRedisCommandCostStatistics", req, cb);
|
|
174
174
|
}
|
|
175
175
|
/**
|
|
176
|
-
*
|
|
176
|
+
* 获取发送邮件的配置, 包括数据库巡检的邮件配置以及定期生成健康报告的邮件发送配置。
|
|
177
177
|
*/
|
|
178
|
-
async
|
|
179
|
-
return this.request("
|
|
178
|
+
async DescribeMailProfile(req, cb) {
|
|
179
|
+
return this.request("DescribeMailProfile", req, cb);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* 该接口用于创建定期生成健康报告并邮件发送的配置,将健康报告的定期生成时间作为参数传入(周一至周日),用于设置健康报告的定期生成时间,同时保存相应的定期邮件发送的配置。
|
|
183
|
+
*/
|
|
184
|
+
async CreateSchedulerMailProfile(req, cb) {
|
|
185
|
+
return this.request("CreateSchedulerMailProfile", req, cb);
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* 查询实例的索引推荐信息,包括索引统计相关信息,推荐索引列表,无效索引列表等。
|
|
189
|
+
*/
|
|
190
|
+
async DescribeIndexRecommendInfo(req, cb) {
|
|
191
|
+
return this.request("DescribeIndexRecommendInfo", req, cb);
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* 即时创建redis实例大key分析任务,限制正在运行的即时分析任务数量默认为5。
|
|
195
|
+
*/
|
|
196
|
+
async CreateRedisBigKeyAnalysisTask(req, cb) {
|
|
197
|
+
return this.request("CreateRedisBigKeyAnalysisTask", req, cb);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* 获取实例占用空间最大的前几张表在指定时间段内的每日由DBbrain定时采集的空间数据,默认返回按大小排序。
|
|
201
|
+
*/
|
|
202
|
+
async DescribeTopSpaceTableTimeSeries(req, cb) {
|
|
203
|
+
return this.request("DescribeTopSpaceTableTimeSeries", req, cb);
|
|
180
204
|
}
|
|
181
205
|
/**
|
|
182
206
|
* 获取慢日志来源地址统计分布图。
|
|
@@ -185,10 +209,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
185
209
|
return this.request("DescribeSlowLogUserHostStats", req, cb);
|
|
186
210
|
}
|
|
187
211
|
/**
|
|
188
|
-
*
|
|
212
|
+
* 获取实例Top表的实时空间统计信息,默认返回按大小排序。
|
|
189
213
|
*/
|
|
190
|
-
async
|
|
191
|
-
return this.request("
|
|
214
|
+
async DescribeTopSpaceTables(req, cb) {
|
|
215
|
+
return this.request("DescribeTopSpaceTables", req, cb);
|
|
192
216
|
}
|
|
193
217
|
/**
|
|
194
218
|
* 创建实例SQL限流任务。
|
|
@@ -197,148 +221,154 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
197
221
|
return this.request("CreateSqlFilter", req, cb);
|
|
198
222
|
}
|
|
199
223
|
/**
|
|
200
|
-
*
|
|
224
|
+
* 根据实例ID获取指定时间段(30分钟)的健康得分,以及异常扣分项。
|
|
201
225
|
*/
|
|
202
|
-
async
|
|
203
|
-
return this.request("
|
|
226
|
+
async DescribeHealthScore(req, cb) {
|
|
227
|
+
return this.request("DescribeHealthScore", req, cb);
|
|
204
228
|
}
|
|
205
229
|
/**
|
|
206
|
-
*
|
|
230
|
+
* 删除安全审计日志导出任务。
|
|
207
231
|
*/
|
|
208
|
-
async
|
|
209
|
-
return this.request("
|
|
232
|
+
async DeleteSecurityAuditLogExportTasks(req, cb) {
|
|
233
|
+
return this.request("DeleteSecurityAuditLogExportTasks", req, cb);
|
|
210
234
|
}
|
|
211
235
|
/**
|
|
212
|
-
*
|
|
236
|
+
* 自治中心-终止自治任务(单次)
|
|
213
237
|
*/
|
|
214
|
-
async
|
|
215
|
-
return this.request("
|
|
238
|
+
async DescribeDBAutonomyActions(req, cb) {
|
|
239
|
+
return this.request("DescribeDBAutonomyActions", req, cb);
|
|
216
240
|
}
|
|
217
241
|
/**
|
|
218
|
-
*
|
|
242
|
+
* 获取指定时间内某个sql模板的慢日志明细
|
|
219
243
|
*/
|
|
220
|
-
async
|
|
221
|
-
return this.request("
|
|
244
|
+
async DescribeSlowLogs(req, cb) {
|
|
245
|
+
return this.request("DescribeSlowLogs", req, cb);
|
|
222
246
|
}
|
|
223
247
|
/**
|
|
224
|
-
*
|
|
248
|
+
* 获取实例占用空间最大的前几个库在指定时间段内的每日由DBbrain定时采集的空间数据,默认返回按大小排序。
|
|
225
249
|
*/
|
|
226
|
-
async
|
|
227
|
-
return this.request("
|
|
250
|
+
async DescribeTopSpaceSchemaTimeSeries(req, cb) {
|
|
251
|
+
return this.request("DescribeTopSpaceSchemaTimeSeries", req, cb);
|
|
228
252
|
}
|
|
229
253
|
/**
|
|
230
|
-
*
|
|
254
|
+
* 查询Redis全量Key的内存分布情况。
|
|
231
255
|
*/
|
|
232
|
-
async
|
|
233
|
-
return this.request("
|
|
256
|
+
async DescribeRedisUnExpiredKeyStatistics(req, cb) {
|
|
257
|
+
return this.request("DescribeRedisUnExpiredKeyStatistics", req, cb);
|
|
234
258
|
}
|
|
235
259
|
/**
|
|
236
|
-
*
|
|
260
|
+
* 统计排序指定时间段内的top慢sql。
|
|
237
261
|
*/
|
|
238
|
-
async
|
|
239
|
-
return this.request("
|
|
262
|
+
async DescribeRedisSlowLogTopSqls(req, cb) {
|
|
263
|
+
return this.request("DescribeRedisSlowLogTopSqls", req, cb);
|
|
240
264
|
}
|
|
241
265
|
/**
|
|
242
|
-
*
|
|
266
|
+
* 更新agent状态(停止或重连Agent)
|
|
243
267
|
*/
|
|
244
|
-
async
|
|
245
|
-
return this.request("
|
|
268
|
+
async UpdateAgentSwitch(req, cb) {
|
|
269
|
+
return this.request("UpdateAgentSwitch", req, cb);
|
|
246
270
|
}
|
|
247
271
|
/**
|
|
248
|
-
*
|
|
272
|
+
* 修改实例的配置信息。
|
|
249
273
|
*/
|
|
250
|
-
async
|
|
251
|
-
return this.request("
|
|
274
|
+
async ModifyDiagDBInstanceConf(req, cb) {
|
|
275
|
+
return this.request("ModifyDiagDBInstanceConf", req, cb);
|
|
252
276
|
}
|
|
253
277
|
/**
|
|
254
|
-
*
|
|
278
|
+
* 根据会话ID中断当前会话,该接口分为两次提交:第一次为预提交阶段,Stage为"Prepare",得到的返回值包含SqlExecId;第二次为确认提交, Stage为"Commit", 将SqlExecId的值作为参数传入,最终终止会话进程。
|
|
255
279
|
*/
|
|
256
|
-
async
|
|
257
|
-
return this.request("
|
|
280
|
+
async KillMySqlThreads(req, cb) {
|
|
281
|
+
return this.request("KillMySqlThreads", req, cb);
|
|
258
282
|
}
|
|
259
283
|
/**
|
|
260
|
-
*
|
|
284
|
+
* 验证用户数据库账号权限,获取会话token。
|
|
261
285
|
*/
|
|
262
|
-
async
|
|
263
|
-
return this.request("
|
|
286
|
+
async VerifyUserAccount(req, cb) {
|
|
287
|
+
return this.request("VerifyUserAccount", req, cb);
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* 统计排序指定时间段内的top慢sql。
|
|
291
|
+
*/
|
|
292
|
+
async DescribeSlowLogQueryTimeStats(req, cb) {
|
|
293
|
+
return this.request("DescribeSlowLogQueryTimeStats", req, cb);
|
|
264
294
|
}
|
|
265
295
|
/**
|
|
266
296
|
* 自治中心-终止自治任务(单次)
|
|
267
297
|
*/
|
|
268
|
-
async
|
|
269
|
-
return this.request("
|
|
298
|
+
async DescribeDBAutonomyEvents(req, cb) {
|
|
299
|
+
return this.request("DescribeDBAutonomyEvents", req, cb);
|
|
270
300
|
}
|
|
271
301
|
/**
|
|
272
|
-
*
|
|
302
|
+
* 查询安全审计日志导出文件下载链接。目前日志文件下载仅提供腾讯云内网地址,请通过广州地域的腾讯云服务器进行下载。
|
|
273
303
|
*/
|
|
274
|
-
async
|
|
275
|
-
return this.request("
|
|
304
|
+
async DescribeSecurityAuditLogDownloadUrls(req, cb) {
|
|
305
|
+
return this.request("DescribeSecurityAuditLogDownloadUrls", req, cb);
|
|
276
306
|
}
|
|
277
307
|
/**
|
|
278
|
-
*
|
|
308
|
+
* 查询SQL模板。
|
|
279
309
|
*/
|
|
280
|
-
async
|
|
281
|
-
return this.request("
|
|
310
|
+
async DescribeSqlTemplate(req, cb) {
|
|
311
|
+
return this.request("DescribeSqlTemplate", req, cb);
|
|
282
312
|
}
|
|
283
313
|
/**
|
|
284
|
-
*
|
|
314
|
+
* 根据实例ID获取指定时间段的性能趋势。
|
|
285
315
|
*/
|
|
286
|
-
async
|
|
287
|
-
return this.request("
|
|
316
|
+
async DescribeDBPerfTimeSeries(req, cb) {
|
|
317
|
+
return this.request("DescribeDBPerfTimeSeries", req, cb);
|
|
288
318
|
}
|
|
289
319
|
/**
|
|
290
|
-
*
|
|
320
|
+
* 查询健康报告生成任务列表。
|
|
291
321
|
*/
|
|
292
|
-
async
|
|
293
|
-
return this.request("
|
|
322
|
+
async DescribeDBDiagReportTasks(req, cb) {
|
|
323
|
+
return this.request("DescribeDBDiagReportTasks", req, cb);
|
|
294
324
|
}
|
|
295
325
|
/**
|
|
296
|
-
*
|
|
326
|
+
* 获取邮件发送联系组的相关信息。
|
|
297
327
|
*/
|
|
298
|
-
async
|
|
299
|
-
return this.request("
|
|
328
|
+
async DescribeAllUserGroup(req, cb) {
|
|
329
|
+
return this.request("DescribeAllUserGroup", req, cb);
|
|
300
330
|
}
|
|
301
331
|
/**
|
|
302
|
-
*
|
|
332
|
+
* 查询实例列表
|
|
303
333
|
*/
|
|
304
|
-
async
|
|
305
|
-
return this.request("
|
|
334
|
+
async DescribeAuditInstanceList(req, cb) {
|
|
335
|
+
return this.request("DescribeAuditInstanceList", req, cb);
|
|
306
336
|
}
|
|
307
337
|
/**
|
|
308
|
-
*
|
|
338
|
+
* 获取慢日志统计柱状图。
|
|
309
339
|
*/
|
|
310
|
-
async
|
|
311
|
-
return this.request("
|
|
340
|
+
async DescribeSlowLogTimeSeriesStats(req, cb) {
|
|
341
|
+
return this.request("DescribeSlowLogTimeSeriesStats", req, cb);
|
|
312
342
|
}
|
|
313
343
|
/**
|
|
314
|
-
*
|
|
344
|
+
* 延迟分析-命令字分析-查询命令延迟趋势
|
|
315
345
|
*/
|
|
316
|
-
async
|
|
317
|
-
return this.request("
|
|
346
|
+
async DescribeRedisCmdPerfTimeSeries(req, cb) {
|
|
347
|
+
return this.request("DescribeRedisCmdPerfTimeSeries", req, cb);
|
|
318
348
|
}
|
|
319
349
|
/**
|
|
320
|
-
*
|
|
350
|
+
* 获取指定时间段内的实例空间使用概览,包括磁盘增长量(MB)、磁盘剩余(MB)、磁盘总量(MB)及预计可用天数。
|
|
321
351
|
*/
|
|
322
|
-
async
|
|
323
|
-
return this.request("
|
|
352
|
+
async DescribeDBSpaceStatus(req, cb) {
|
|
353
|
+
return this.request("DescribeDBSpaceStatus", req, cb);
|
|
324
354
|
}
|
|
325
355
|
/**
|
|
326
|
-
*
|
|
356
|
+
* 创建中断会话的任务。
|
|
327
357
|
*/
|
|
328
|
-
async
|
|
329
|
-
return this.request("
|
|
358
|
+
async CreateMongoDBKillTask(req, cb) {
|
|
359
|
+
return this.request("CreateMongoDBKillTask", req, cb);
|
|
330
360
|
}
|
|
331
361
|
/**
|
|
332
|
-
*
|
|
362
|
+
* 查询安全审计日志导出任务列表。
|
|
333
363
|
*/
|
|
334
|
-
async
|
|
335
|
-
return this.request("
|
|
364
|
+
async DescribeSecurityAuditLogExportTasks(req, cb) {
|
|
365
|
+
return this.request("DescribeSecurityAuditLogExportTasks", req, cb);
|
|
336
366
|
}
|
|
337
367
|
/**
|
|
338
|
-
*
|
|
368
|
+
* 获取邮件发送中联系人的相关信息。
|
|
339
369
|
*/
|
|
340
|
-
async
|
|
341
|
-
return this.request("
|
|
370
|
+
async DescribeAllUserContact(req, cb) {
|
|
371
|
+
return this.request("DescribeAllUserContact", req, cb);
|
|
342
372
|
}
|
|
343
373
|
/**
|
|
344
374
|
* 自治中心-终止自治任务(单次);注意: 接口调用需要加白名单。
|
|
@@ -359,184 +389,160 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
359
389
|
return this.request("DescribeProxyProcessStatistics", req, cb);
|
|
360
390
|
}
|
|
361
391
|
/**
|
|
362
|
-
*
|
|
363
|
-
*/
|
|
364
|
-
async CreateDBDiagReportTask(req, cb) {
|
|
365
|
-
return this.request("CreateDBDiagReportTask", req, cb);
|
|
366
|
-
}
|
|
367
|
-
/**
|
|
368
|
-
* 获取实例信息列表。Region统一选择广州。
|
|
369
|
-
*/
|
|
370
|
-
async DescribeDiagDBInstances(req, cb) {
|
|
371
|
-
return this.request("DescribeDiagDBInstances", req, cb);
|
|
372
|
-
}
|
|
373
|
-
/**
|
|
374
|
-
* 获取指定时间段内的健康得分趋势
|
|
375
|
-
*/
|
|
376
|
-
async DescribeHealthScoreTimeSeries(req, cb) {
|
|
377
|
-
return this.request("DescribeHealthScoreTimeSeries", req, cb);
|
|
378
|
-
}
|
|
379
|
-
/**
|
|
380
|
-
* 删除实例SQL限流任务。
|
|
381
|
-
*/
|
|
382
|
-
async DeleteSqlFilters(req, cb) {
|
|
383
|
-
return this.request("DeleteSqlFilters", req, cb);
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* 修改告警策略
|
|
392
|
+
* 查询实例SQL限流任务列表。
|
|
387
393
|
*/
|
|
388
|
-
async
|
|
389
|
-
return this.request("
|
|
394
|
+
async DescribeSqlFilters(req, cb) {
|
|
395
|
+
return this.request("DescribeSqlFilters", req, cb);
|
|
390
396
|
}
|
|
391
397
|
/**
|
|
392
|
-
*
|
|
398
|
+
* 通知模板查询
|
|
393
399
|
*/
|
|
394
|
-
async
|
|
395
|
-
return this.request("
|
|
400
|
+
async DescribeAlarmTemplate(req, cb) {
|
|
401
|
+
return this.request("DescribeAlarmTemplate", req, cb);
|
|
396
402
|
}
|
|
397
403
|
/**
|
|
398
|
-
*
|
|
404
|
+
* 创建健康报告的浏览地址。
|
|
399
405
|
*/
|
|
400
|
-
async
|
|
401
|
-
return this.request("
|
|
406
|
+
async CreateDBDiagReportUrl(req, cb) {
|
|
407
|
+
return this.request("CreateDBDiagReportUrl", req, cb);
|
|
402
408
|
}
|
|
403
409
|
/**
|
|
404
|
-
*
|
|
410
|
+
* 用于查询 redis 执行 kill 会话任务后代理节点的执行结果,入参异步任务 ID 从接口 CreateProxySessionKillTask 调用成功后取得。当前 product 只支持:redis。
|
|
405
411
|
*/
|
|
406
|
-
async
|
|
407
|
-
return this.request("
|
|
412
|
+
async DescribeProxySessionKillTasks(req, cb) {
|
|
413
|
+
return this.request("DescribeProxySessionKillTasks", req, cb);
|
|
408
414
|
}
|
|
409
415
|
/**
|
|
410
|
-
*
|
|
416
|
+
* 根据任务id删除健康报告生成任务
|
|
411
417
|
*/
|
|
412
|
-
async
|
|
413
|
-
return this.request("
|
|
418
|
+
async DeleteDBDiagReportTasks(req, cb) {
|
|
419
|
+
return this.request("DeleteDBDiagReportTasks", req, cb);
|
|
414
420
|
}
|
|
415
421
|
/**
|
|
416
|
-
*
|
|
422
|
+
* 获取实例Top库的实时空间统计信息,默认返回按大小排序。
|
|
417
423
|
*/
|
|
418
|
-
async
|
|
419
|
-
return this.request("
|
|
424
|
+
async DescribeTopSpaceSchemas(req, cb) {
|
|
425
|
+
return this.request("DescribeTopSpaceSchemas", req, cb);
|
|
420
426
|
}
|
|
421
427
|
/**
|
|
422
|
-
*
|
|
428
|
+
* 获取指定时间段内的健康得分趋势
|
|
423
429
|
*/
|
|
424
|
-
async
|
|
425
|
-
return this.request("
|
|
430
|
+
async DescribeHealthScoreTimeSeries(req, cb) {
|
|
431
|
+
return this.request("DescribeHealthScoreTimeSeries", req, cb);
|
|
426
432
|
}
|
|
427
433
|
/**
|
|
428
|
-
*
|
|
434
|
+
* 用于创建云数据库实例的审计日志文件
|
|
429
435
|
*/
|
|
430
|
-
async
|
|
431
|
-
return this.request("
|
|
436
|
+
async DescribeAuditLogFiles(req, cb) {
|
|
437
|
+
return this.request("DescribeAuditLogFiles", req, cb);
|
|
432
438
|
}
|
|
433
439
|
/**
|
|
434
|
-
*
|
|
440
|
+
* 用于删除云数据库实例的审计日志文件。
|
|
435
441
|
*/
|
|
436
|
-
async
|
|
437
|
-
return this.request("
|
|
442
|
+
async DeleteAuditLogFile(req, cb) {
|
|
443
|
+
return this.request("DeleteAuditLogFile", req, cb);
|
|
438
444
|
}
|
|
439
445
|
/**
|
|
440
|
-
*
|
|
446
|
+
* 获取指定时间段内的诊断事件列表,支持依据风险等级、实例ID等条件过滤。
|
|
441
447
|
*/
|
|
442
|
-
async
|
|
443
|
-
return this.request("
|
|
448
|
+
async DescribeDBDiagEvents(req, cb) {
|
|
449
|
+
return this.request("DescribeDBDiagEvents", req, cb);
|
|
444
450
|
}
|
|
445
451
|
/**
|
|
446
|
-
*
|
|
452
|
+
* 热Key分析
|
|
447
453
|
*/
|
|
448
|
-
async
|
|
449
|
-
return this.request("
|
|
454
|
+
async DescribeRedisTopHotKeys(req, cb) {
|
|
455
|
+
return this.request("DescribeRedisTopHotKeys", req, cb);
|
|
450
456
|
}
|
|
451
457
|
/**
|
|
452
|
-
*
|
|
458
|
+
* 查询MongoDB实时会话列表
|
|
453
459
|
*/
|
|
454
|
-
async
|
|
455
|
-
return this.request("
|
|
460
|
+
async DescribeMongoDBProcessList(req, cb) {
|
|
461
|
+
return this.request("DescribeMongoDBProcessList", req, cb);
|
|
456
462
|
}
|
|
457
463
|
/**
|
|
458
|
-
*
|
|
464
|
+
* 获取SQL优化建议。【产品用户回馈,此接口限免开放,后续将并入dbbrain专业版】
|
|
459
465
|
*/
|
|
460
|
-
async
|
|
461
|
-
return this.request("
|
|
466
|
+
async DescribeUserSqlAdvice(req, cb) {
|
|
467
|
+
return this.request("DescribeUserSqlAdvice", req, cb);
|
|
462
468
|
}
|
|
463
469
|
/**
|
|
464
|
-
*
|
|
470
|
+
* 创建邮件配置。其中入参ProfileType表示所创建配置的类型,ProfileType 取值包括:dbScan_mail_configuration(数据库巡检邮件配置)、scheduler_mail_configuration(定期生成健康报告的邮件发送配置)。Region统一选择广州,和实例所属地域无关。
|
|
465
471
|
*/
|
|
466
|
-
async
|
|
467
|
-
return this.request("
|
|
472
|
+
async CreateMailProfile(req, cb) {
|
|
473
|
+
return this.request("CreateMailProfile", req, cb);
|
|
468
474
|
}
|
|
469
475
|
/**
|
|
470
|
-
*
|
|
476
|
+
* 删除Redis实例的大key分析任务。
|
|
471
477
|
*/
|
|
472
|
-
async
|
|
473
|
-
return this.request("
|
|
478
|
+
async DeleteRedisBigKeyAnalysisTasks(req, cb) {
|
|
479
|
+
return this.request("DeleteRedisBigKeyAnalysisTasks", req, cb);
|
|
474
480
|
}
|
|
475
481
|
/**
|
|
476
|
-
*
|
|
482
|
+
* 自治中心-终止自治任务(单次)
|
|
477
483
|
*/
|
|
478
|
-
async
|
|
479
|
-
return this.request("
|
|
484
|
+
async CancelRedisBigKeyAnalysisTasks(req, cb) {
|
|
485
|
+
return this.request("CancelRedisBigKeyAnalysisTasks", req, cb);
|
|
480
486
|
}
|
|
481
487
|
/**
|
|
482
|
-
*
|
|
488
|
+
* 修改审计配置相关信息,如高频存储时长等
|
|
483
489
|
*/
|
|
484
|
-
async
|
|
485
|
-
return this.request("
|
|
490
|
+
async ModifyAuditService(req, cb) {
|
|
491
|
+
return this.request("ModifyAuditService", req, cb);
|
|
486
492
|
}
|
|
487
493
|
/**
|
|
488
|
-
*
|
|
494
|
+
* 获取指定时间段内Redis 访问命令 cost top N
|
|
489
495
|
*/
|
|
490
|
-
async
|
|
491
|
-
return this.request("
|
|
496
|
+
async DescribeRedisTopCostCommands(req, cb) {
|
|
497
|
+
return this.request("DescribeRedisTopCostCommands", req, cb);
|
|
492
498
|
}
|
|
493
499
|
/**
|
|
494
|
-
*
|
|
500
|
+
* 按照Sql模板+schema的聚合方式,统计排序指定时间段内的top慢sql。
|
|
495
501
|
*/
|
|
496
|
-
async
|
|
497
|
-
return this.request("
|
|
502
|
+
async DescribeSlowLogTopSqls(req, cb) {
|
|
503
|
+
return this.request("DescribeSlowLogTopSqls", req, cb);
|
|
498
504
|
}
|
|
499
505
|
/**
|
|
500
|
-
*
|
|
506
|
+
* 自治中心-终止自治事件
|
|
501
507
|
*/
|
|
502
|
-
async
|
|
503
|
-
return this.request("
|
|
508
|
+
async CancelDBAutonomyEvent(req, cb) {
|
|
509
|
+
return this.request("CancelDBAutonomyEvent", req, cb);
|
|
504
510
|
}
|
|
505
511
|
/**
|
|
506
|
-
*
|
|
512
|
+
* 创建健康报告,并可以选择是否发送邮件。
|
|
507
513
|
*/
|
|
508
|
-
async
|
|
509
|
-
return this.request("
|
|
514
|
+
async CreateDBDiagReportTask(req, cb) {
|
|
515
|
+
return this.request("CreateDBDiagReportTask", req, cb);
|
|
510
516
|
}
|
|
511
517
|
/**
|
|
512
|
-
*
|
|
518
|
+
* 获取实例信息列表。Region统一选择广州。
|
|
513
519
|
*/
|
|
514
|
-
async
|
|
515
|
-
return this.request("
|
|
520
|
+
async DescribeDiagDBInstances(req, cb) {
|
|
521
|
+
return this.request("DescribeDiagDBInstances", req, cb);
|
|
516
522
|
}
|
|
517
523
|
/**
|
|
518
|
-
*
|
|
524
|
+
* 删除实例SQL限流任务。
|
|
519
525
|
*/
|
|
520
|
-
async
|
|
521
|
-
return this.request("
|
|
526
|
+
async DeleteSqlFilters(req, cb) {
|
|
527
|
+
return this.request("DeleteSqlFilters", req, cb);
|
|
522
528
|
}
|
|
523
529
|
/**
|
|
524
|
-
*
|
|
530
|
+
* 自治中心-终止自治任务(单次);注意:接口需要加白名单。
|
|
525
531
|
*/
|
|
526
|
-
async
|
|
527
|
-
return this.request("
|
|
532
|
+
async CreateUserAutonomyProfile(req, cb) {
|
|
533
|
+
return this.request("CreateUserAutonomyProfile", req, cb);
|
|
528
534
|
}
|
|
529
535
|
/**
|
|
530
|
-
*
|
|
536
|
+
* 获取 Redis 实例所有 proxy 节点的实时会话详情列表。
|
|
531
537
|
*/
|
|
532
|
-
async
|
|
533
|
-
return this.request("
|
|
538
|
+
async DescribeRedisProcessList(req, cb) {
|
|
539
|
+
return this.request("DescribeRedisProcessList", req, cb);
|
|
534
540
|
}
|
|
535
541
|
/**
|
|
536
|
-
*
|
|
542
|
+
* 开启数据库审计服务
|
|
537
543
|
*/
|
|
538
|
-
async
|
|
539
|
-
return this.request("
|
|
544
|
+
async OpenAuditService(req, cb) {
|
|
545
|
+
return this.request("OpenAuditService", req, cb);
|
|
540
546
|
}
|
|
541
547
|
}
|
|
542
548
|
exports.Client = Client;
|