tencentcloud-sdk-nodejs-dbbrain 4.0.431 → 4.0.432
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 +1 -1
- package/package.json +1 -1
- package/src/services/dbbrain/index.ts +6 -9
- package/src/services/dbbrain/v20191016/dbbrain_client.ts +329 -252
- package/src/services/dbbrain/v20191016/dbbrain_models.ts +1702 -1786
- package/src/services/dbbrain/v20191016/index.ts +3 -3
- package/src/services/dbbrain/v20210527/dbbrain_client.ts +541 -419
- package/src/services/dbbrain/v20210527/dbbrain_models.ts +2460 -2579
- package/src/services/dbbrain/v20210527/index.ts +3 -3
- package/tencentcloud/services/dbbrain/v20191016/dbbrain_models.d.ts +784 -784
- package/tencentcloud/services/dbbrain/v20191016/index.js +1 -1
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +1109 -1109
- package/tencentcloud/services/dbbrain/v20210527/index.js +1 -1
|
@@ -17,90 +17,89 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
20
|
+
SchemaSpaceTimeSeries,
|
|
21
|
+
DescribeSlowLogUserHostStatsRequest,
|
|
22
|
+
DescribeSlowLogTimeSeriesStatsRequest,
|
|
23
|
+
DescribeTopSpaceSchemasResponse,
|
|
24
|
+
TimeSlice,
|
|
25
|
+
HealthScoreInfo,
|
|
26
|
+
DescribeTopSpaceTableTimeSeriesResponse,
|
|
27
|
+
CreateSchedulerMailProfileRequest,
|
|
28
|
+
ContactItem,
|
|
29
|
+
DescribeHealthScoreResponse,
|
|
30
|
+
DescribeDBDiagHistoryResponse,
|
|
31
|
+
ScoreItem,
|
|
32
|
+
DescribeDiagDBInstancesRequest,
|
|
33
|
+
DescribeDBSpaceStatusRequest,
|
|
34
|
+
DescribeAllUserContactResponse,
|
|
35
|
+
DescribeUserSqlAdviceResponse,
|
|
36
|
+
DescribeTopSpaceSchemasRequest,
|
|
37
|
+
ModifyDiagDBInstanceConfRequest,
|
|
38
|
+
MonitorMetric,
|
|
39
|
+
CreateDBDiagReportTaskRequest,
|
|
40
|
+
MonitorFloatMetric,
|
|
41
|
+
DescribeSecurityAuditLogDownloadUrlsRequest,
|
|
42
|
+
DescribeSecurityAuditLogExportTasksRequest,
|
|
43
|
+
AddUserContactRequest,
|
|
44
|
+
DescribeAllUserGroupResponse,
|
|
45
|
+
InstanceBasicInfo,
|
|
46
|
+
SchemaItem,
|
|
47
|
+
CreateMailProfileResponse,
|
|
48
|
+
DescribeTopSpaceTablesRequest,
|
|
49
|
+
ProfileInfo,
|
|
50
|
+
DescribeAllUserContactRequest,
|
|
51
|
+
DescribeDBDiagEventRequest,
|
|
52
|
+
CreateSecurityAuditLogExportTaskRequest,
|
|
53
|
+
DescribeDBSpaceStatusResponse,
|
|
54
|
+
DiagHistoryEventItem,
|
|
55
|
+
DescribeDBDiagEventResponse,
|
|
56
|
+
DescribeDBDiagHistoryRequest,
|
|
57
|
+
TableSpaceTimeSeries,
|
|
58
|
+
GroupItem,
|
|
59
|
+
InstanceInfo,
|
|
60
|
+
DescribeSlowLogUserHostStatsResponse,
|
|
61
|
+
DescribeDBDiagReportTasksResponse,
|
|
62
|
+
AddUserContactResponse,
|
|
63
|
+
HealthReportTask,
|
|
64
|
+
DescribeDBDiagReportTasksRequest,
|
|
65
|
+
CreateDBDiagReportTaskResponse,
|
|
66
|
+
MonitorMetricSeriesData,
|
|
67
|
+
ModifyDiagDBInstanceConfResponse,
|
|
68
|
+
CreateDBDiagReportUrlResponse,
|
|
69
|
+
ScoreDetail,
|
|
70
|
+
DescribeTopSpaceSchemaTimeSeriesResponse,
|
|
71
|
+
DeleteSecurityAuditLogExportTasksRequest,
|
|
72
|
+
CreateSchedulerMailProfileResponse,
|
|
73
|
+
SlowLogTopSqlItem,
|
|
74
|
+
SlowLogHost,
|
|
75
|
+
DescribeSlowLogTopSqlsResponse,
|
|
76
|
+
SecLogExportTaskInfo,
|
|
77
|
+
CreateMailProfileRequest,
|
|
78
|
+
DescribeTopSpaceSchemaTimeSeriesRequest,
|
|
79
|
+
MonitorFloatMetricSeriesData,
|
|
80
|
+
MailConfiguration,
|
|
81
|
+
DescribeTopSpaceTableTimeSeriesRequest,
|
|
82
|
+
DescribeSlowLogTopSqlsRequest,
|
|
83
|
+
DescribeMailProfileResponse,
|
|
84
|
+
TableSpaceData,
|
|
85
|
+
DescribeSecurityAuditLogDownloadUrlsResponse,
|
|
86
|
+
EventInfo,
|
|
87
|
+
DescribeMailProfileRequest,
|
|
88
|
+
DescribeHealthScoreRequest,
|
|
89
|
+
DeleteSecurityAuditLogExportTasksResponse,
|
|
90
|
+
IssueTypeInfo,
|
|
91
|
+
InstanceConfs,
|
|
92
|
+
DescribeDiagDBInstancesResponse,
|
|
93
|
+
HealthStatus,
|
|
94
|
+
DescribeUserSqlAdviceRequest,
|
|
95
|
+
DescribeAllUserGroupRequest,
|
|
96
|
+
CreateDBDiagReportUrlRequest,
|
|
97
|
+
DescribeSlowLogTimeSeriesStatsResponse,
|
|
98
|
+
DescribeSecurityAuditLogExportTasksResponse,
|
|
99
|
+
CreateSecurityAuditLogExportTaskResponse,
|
|
100
|
+
UserProfile,
|
|
101
|
+
SchemaSpaceData,
|
|
102
|
+
DescribeTopSpaceTablesResponse,
|
|
104
103
|
} from "./dbbrain_models"
|
|
105
104
|
|
|
106
105
|
/**
|
|
@@ -108,199 +107,277 @@ import {
|
|
|
108
107
|
* @class
|
|
109
108
|
*/
|
|
110
109
|
export class Client extends TencentCloudCommon.AbstractClient {
|
|
110
|
+
constructor(clientConfig: TencentCloudCommon.ClientConfig) {
|
|
111
|
+
super("dbbrain.tencentcloudapi.com", "2019-10-16", clientConfig)
|
|
112
|
+
}
|
|
111
113
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* 获取发送邮件的配置, 包括数据库巡检的邮件配置以及定期生成健康报告的邮件发送配置。Region统一选择广州。
|
|
125
|
-
*/
|
|
126
|
-
async DescribeMailProfile(req: DescribeMailProfileRequest, cb?: (error: string, rep: DescribeMailProfileResponse) => void): Promise<DescribeMailProfileResponse> {
|
|
127
|
-
return this.request("DescribeMailProfile", req, cb);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* 该接口用于创建定期生成健康报告并邮件发送的配置,将健康报告的定期生成时间作为参数传入(周一至周日),用于设置健康报告的定期生成时间,同时保存相应的定期邮件发送的配置。
|
|
132
|
-
*/
|
|
133
|
-
async CreateSchedulerMailProfile(req: CreateSchedulerMailProfileRequest, cb?: (error: string, rep: CreateSchedulerMailProfileResponse) => void): Promise<CreateSchedulerMailProfileResponse> {
|
|
134
|
-
return this.request("CreateSchedulerMailProfile", req, cb);
|
|
135
|
-
}
|
|
114
|
+
/**
|
|
115
|
+
* 查询安全审计日志导出文件下载链接。目前日志文件下载仅提供腾讯云内网地址,请通过广州地域的腾讯云服务器进行下载。
|
|
116
|
+
*/
|
|
117
|
+
async DescribeSecurityAuditLogDownloadUrls(
|
|
118
|
+
req: DescribeSecurityAuditLogDownloadUrlsRequest,
|
|
119
|
+
cb?: (error: string, rep: DescribeSecurityAuditLogDownloadUrlsResponse) => void
|
|
120
|
+
): Promise<DescribeSecurityAuditLogDownloadUrlsResponse> {
|
|
121
|
+
return this.request("DescribeSecurityAuditLogDownloadUrls", req, cb)
|
|
122
|
+
}
|
|
136
123
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
124
|
+
/**
|
|
125
|
+
* 获取发送邮件的配置, 包括数据库巡检的邮件配置以及定期生成健康报告的邮件发送配置。Region统一选择广州。
|
|
126
|
+
*/
|
|
127
|
+
async DescribeMailProfile(
|
|
128
|
+
req: DescribeMailProfileRequest,
|
|
129
|
+
cb?: (error: string, rep: DescribeMailProfileResponse) => void
|
|
130
|
+
): Promise<DescribeMailProfileResponse> {
|
|
131
|
+
return this.request("DescribeMailProfile", req, cb)
|
|
132
|
+
}
|
|
143
133
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
134
|
+
/**
|
|
135
|
+
* 该接口用于创建定期生成健康报告并邮件发送的配置,将健康报告的定期生成时间作为参数传入(周一至周日),用于设置健康报告的定期生成时间,同时保存相应的定期邮件发送的配置。
|
|
136
|
+
*/
|
|
137
|
+
async CreateSchedulerMailProfile(
|
|
138
|
+
req: CreateSchedulerMailProfileRequest,
|
|
139
|
+
cb?: (error: string, rep: CreateSchedulerMailProfileResponse) => void
|
|
140
|
+
): Promise<CreateSchedulerMailProfileResponse> {
|
|
141
|
+
return this.request("CreateSchedulerMailProfile", req, cb)
|
|
142
|
+
}
|
|
150
143
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
144
|
+
/**
|
|
145
|
+
* 获取实例Top库的实时空间统计信息,默认返回按大小排序。
|
|
146
|
+
*/
|
|
147
|
+
async DescribeTopSpaceSchemas(
|
|
148
|
+
req: DescribeTopSpaceSchemasRequest,
|
|
149
|
+
cb?: (error: string, rep: DescribeTopSpaceSchemasResponse) => void
|
|
150
|
+
): Promise<DescribeTopSpaceSchemasResponse> {
|
|
151
|
+
return this.request("DescribeTopSpaceSchemas", req, cb)
|
|
152
|
+
}
|
|
157
153
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
154
|
+
/**
|
|
155
|
+
* 查询健康报告生成任务列表。
|
|
156
|
+
*/
|
|
157
|
+
async DescribeDBDiagReportTasks(
|
|
158
|
+
req: DescribeDBDiagReportTasksRequest,
|
|
159
|
+
cb?: (error: string, rep: DescribeDBDiagReportTasksResponse) => void
|
|
160
|
+
): Promise<DescribeDBDiagReportTasksResponse> {
|
|
161
|
+
return this.request("DescribeDBDiagReportTasks", req, cb)
|
|
162
|
+
}
|
|
164
163
|
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
164
|
+
/**
|
|
165
|
+
* 获取邮件发送联系组的相关信息。
|
|
166
|
+
*/
|
|
167
|
+
async DescribeAllUserGroup(
|
|
168
|
+
req: DescribeAllUserGroupRequest,
|
|
169
|
+
cb?: (error: string, rep: DescribeAllUserGroupResponse) => void
|
|
170
|
+
): Promise<DescribeAllUserGroupResponse> {
|
|
171
|
+
return this.request("DescribeAllUserGroup", req, cb)
|
|
172
|
+
}
|
|
171
173
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
/**
|
|
175
|
+
* 获取慢日志统计柱状图。
|
|
176
|
+
*/
|
|
177
|
+
async DescribeSlowLogTimeSeriesStats(
|
|
178
|
+
req: DescribeSlowLogTimeSeriesStatsRequest,
|
|
179
|
+
cb?: (error: string, rep: DescribeSlowLogTimeSeriesStatsResponse) => void
|
|
180
|
+
): Promise<DescribeSlowLogTimeSeriesStatsResponse> {
|
|
181
|
+
return this.request("DescribeSlowLogTimeSeriesStats", req, cb)
|
|
182
|
+
}
|
|
178
183
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
184
|
+
/**
|
|
185
|
+
* 获取慢日志来源地址统计分布图。
|
|
186
|
+
*/
|
|
187
|
+
async DescribeSlowLogUserHostStats(
|
|
188
|
+
req: DescribeSlowLogUserHostStatsRequest,
|
|
189
|
+
cb?: (error: string, rep: DescribeSlowLogUserHostStatsResponse) => void
|
|
190
|
+
): Promise<DescribeSlowLogUserHostStatsResponse> {
|
|
191
|
+
return this.request("DescribeSlowLogUserHostStats", req, cb)
|
|
192
|
+
}
|
|
185
193
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
194
|
+
/**
|
|
195
|
+
* 获取实例Top表的实时空间统计信息,默认返回按大小排序。
|
|
196
|
+
*/
|
|
197
|
+
async DescribeTopSpaceTables(
|
|
198
|
+
req: DescribeTopSpaceTablesRequest,
|
|
199
|
+
cb?: (error: string, rep: DescribeTopSpaceTablesResponse) => void
|
|
200
|
+
): Promise<DescribeTopSpaceTablesResponse> {
|
|
201
|
+
return this.request("DescribeTopSpaceTables", req, cb)
|
|
202
|
+
}
|
|
192
203
|
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
204
|
+
/**
|
|
205
|
+
* 获取指定时间段内的实例空间使用概览,包括磁盘增长量(MB)、磁盘剩余(MB)、磁盘总量(MB)及预计可用天数。
|
|
206
|
+
*/
|
|
207
|
+
async DescribeDBSpaceStatus(
|
|
208
|
+
req: DescribeDBSpaceStatusRequest,
|
|
209
|
+
cb?: (error: string, rep: DescribeDBSpaceStatusResponse) => void
|
|
210
|
+
): Promise<DescribeDBSpaceStatusResponse> {
|
|
211
|
+
return this.request("DescribeDBSpaceStatus", req, cb)
|
|
212
|
+
}
|
|
199
213
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
214
|
+
/**
|
|
215
|
+
* 创建邮件配置。其中入参ProfileType表示所创建配置的类型,ProfileType 取值包括:dbScan_mail_configuration(数据库巡检邮件配置)、scheduler_mail_configuration(定期生成健康报告的邮件发送配置)。Region统一选择广州,和实例所属地域无关。
|
|
216
|
+
*/
|
|
217
|
+
async CreateMailProfile(
|
|
218
|
+
req: CreateMailProfileRequest,
|
|
219
|
+
cb?: (error: string, rep: CreateMailProfileResponse) => void
|
|
220
|
+
): Promise<CreateMailProfileResponse> {
|
|
221
|
+
return this.request("CreateMailProfile", req, cb)
|
|
222
|
+
}
|
|
206
223
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
224
|
+
/**
|
|
225
|
+
* 根据实例ID获取指定时间段(30分钟)的健康得分,以及异常扣分项。
|
|
226
|
+
*/
|
|
227
|
+
async DescribeHealthScore(
|
|
228
|
+
req: DescribeHealthScoreRequest,
|
|
229
|
+
cb?: (error: string, rep: DescribeHealthScoreResponse) => void
|
|
230
|
+
): Promise<DescribeHealthScoreResponse> {
|
|
231
|
+
return this.request("DescribeHealthScore", req, cb)
|
|
232
|
+
}
|
|
213
233
|
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
234
|
+
/**
|
|
235
|
+
* 创建安全审计日志导出任务。
|
|
236
|
+
*/
|
|
237
|
+
async CreateSecurityAuditLogExportTask(
|
|
238
|
+
req: CreateSecurityAuditLogExportTaskRequest,
|
|
239
|
+
cb?: (error: string, rep: CreateSecurityAuditLogExportTaskResponse) => void
|
|
240
|
+
): Promise<CreateSecurityAuditLogExportTaskResponse> {
|
|
241
|
+
return this.request("CreateSecurityAuditLogExportTask", req, cb)
|
|
242
|
+
}
|
|
220
243
|
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
244
|
+
/**
|
|
245
|
+
* 删除安全审计日志导出任务。
|
|
246
|
+
*/
|
|
247
|
+
async DeleteSecurityAuditLogExportTasks(
|
|
248
|
+
req: DeleteSecurityAuditLogExportTasksRequest,
|
|
249
|
+
cb?: (error: string, rep: DeleteSecurityAuditLogExportTasksResponse) => void
|
|
250
|
+
): Promise<DeleteSecurityAuditLogExportTasksResponse> {
|
|
251
|
+
return this.request("DeleteSecurityAuditLogExportTasks", req, cb)
|
|
252
|
+
}
|
|
227
253
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
254
|
+
/**
|
|
255
|
+
* 按照Sql模板+schema的聚合方式,统计排序指定时间段内的top慢sql。
|
|
256
|
+
*/
|
|
257
|
+
async DescribeSlowLogTopSqls(
|
|
258
|
+
req: DescribeSlowLogTopSqlsRequest,
|
|
259
|
+
cb?: (error: string, rep: DescribeSlowLogTopSqlsResponse) => void
|
|
260
|
+
): Promise<DescribeSlowLogTopSqlsResponse> {
|
|
261
|
+
return this.request("DescribeSlowLogTopSqls", req, cb)
|
|
262
|
+
}
|
|
234
263
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
264
|
+
/**
|
|
265
|
+
* 查询安全审计日志导出任务列表。
|
|
266
|
+
*/
|
|
267
|
+
async DescribeSecurityAuditLogExportTasks(
|
|
268
|
+
req: DescribeSecurityAuditLogExportTasksRequest,
|
|
269
|
+
cb?: (error: string, rep: DescribeSecurityAuditLogExportTasksResponse) => void
|
|
270
|
+
): Promise<DescribeSecurityAuditLogExportTasksResponse> {
|
|
271
|
+
return this.request("DescribeSecurityAuditLogExportTasks", req, cb)
|
|
272
|
+
}
|
|
241
273
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
274
|
+
/**
|
|
275
|
+
* 获取邮件发送中联系人的相关信息。
|
|
276
|
+
*/
|
|
277
|
+
async DescribeAllUserContact(
|
|
278
|
+
req: DescribeAllUserContactRequest,
|
|
279
|
+
cb?: (error: string, rep: DescribeAllUserContactResponse) => void
|
|
280
|
+
): Promise<DescribeAllUserContactResponse> {
|
|
281
|
+
return this.request("DescribeAllUserContact", req, cb)
|
|
282
|
+
}
|
|
248
283
|
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
284
|
+
/**
|
|
285
|
+
* 获取实例异常诊断事件的详情信息。
|
|
286
|
+
*/
|
|
287
|
+
async DescribeDBDiagEvent(
|
|
288
|
+
req: DescribeDBDiagEventRequest,
|
|
289
|
+
cb?: (error: string, rep: DescribeDBDiagEventResponse) => void
|
|
290
|
+
): Promise<DescribeDBDiagEventResponse> {
|
|
291
|
+
return this.request("DescribeDBDiagEvent", req, cb)
|
|
292
|
+
}
|
|
255
293
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
294
|
+
/**
|
|
295
|
+
* 获取实例诊断事件的列表。
|
|
296
|
+
*/
|
|
297
|
+
async DescribeDBDiagHistory(
|
|
298
|
+
req: DescribeDBDiagHistoryRequest,
|
|
299
|
+
cb?: (error: string, rep: DescribeDBDiagHistoryResponse) => void
|
|
300
|
+
): Promise<DescribeDBDiagHistoryResponse> {
|
|
301
|
+
return this.request("DescribeDBDiagHistory", req, cb)
|
|
302
|
+
}
|
|
262
303
|
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
304
|
+
/**
|
|
305
|
+
* 创建健康报告,并可以选择是否发送邮件。
|
|
306
|
+
*/
|
|
307
|
+
async CreateDBDiagReportTask(
|
|
308
|
+
req: CreateDBDiagReportTaskRequest,
|
|
309
|
+
cb?: (error: string, rep: CreateDBDiagReportTaskResponse) => void
|
|
310
|
+
): Promise<CreateDBDiagReportTaskResponse> {
|
|
311
|
+
return this.request("CreateDBDiagReportTask", req, cb)
|
|
312
|
+
}
|
|
269
313
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
314
|
+
/**
|
|
315
|
+
* 获取实例信息列表。Region统一选择广州。
|
|
316
|
+
*/
|
|
317
|
+
async DescribeDiagDBInstances(
|
|
318
|
+
req: DescribeDiagDBInstancesRequest,
|
|
319
|
+
cb?: (error: string, rep: DescribeDiagDBInstancesResponse) => void
|
|
320
|
+
): Promise<DescribeDiagDBInstancesResponse> {
|
|
321
|
+
return this.request("DescribeDiagDBInstances", req, cb)
|
|
322
|
+
}
|
|
276
323
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
324
|
+
/**
|
|
325
|
+
* 添加邮件接收联系人的姓名, 邮件地址,返回值为添加成功的联系人id。Region统一选择广州。
|
|
326
|
+
*/
|
|
327
|
+
async AddUserContact(
|
|
328
|
+
req: AddUserContactRequest,
|
|
329
|
+
cb?: (error: string, rep: AddUserContactResponse) => void
|
|
330
|
+
): Promise<AddUserContactResponse> {
|
|
331
|
+
return this.request("AddUserContact", req, cb)
|
|
332
|
+
}
|
|
283
333
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
334
|
+
/**
|
|
335
|
+
* 获取实例占用空间最大的前几个库在指定时间段内的每日由DBbrain定时采集的空间数据,默认返回按大小排序。
|
|
336
|
+
*/
|
|
337
|
+
async DescribeTopSpaceSchemaTimeSeries(
|
|
338
|
+
req: DescribeTopSpaceSchemaTimeSeriesRequest,
|
|
339
|
+
cb?: (error: string, rep: DescribeTopSpaceSchemaTimeSeriesResponse) => void
|
|
340
|
+
): Promise<DescribeTopSpaceSchemaTimeSeriesResponse> {
|
|
341
|
+
return this.request("DescribeTopSpaceSchemaTimeSeries", req, cb)
|
|
342
|
+
}
|
|
290
343
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
344
|
+
/**
|
|
345
|
+
* 获取SQL优化建议。
|
|
346
|
+
*/
|
|
347
|
+
async DescribeUserSqlAdvice(
|
|
348
|
+
req: DescribeUserSqlAdviceRequest,
|
|
349
|
+
cb?: (error: string, rep: DescribeUserSqlAdviceResponse) => void
|
|
350
|
+
): Promise<DescribeUserSqlAdviceResponse> {
|
|
351
|
+
return this.request("DescribeUserSqlAdvice", req, cb)
|
|
352
|
+
}
|
|
297
353
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
354
|
+
/**
|
|
355
|
+
* 获取实例占用空间最大的前几张表在指定时间段内的每日由DBbrain定时采集的空间数据,默认返回按大小排序。
|
|
356
|
+
*/
|
|
357
|
+
async DescribeTopSpaceTableTimeSeries(
|
|
358
|
+
req: DescribeTopSpaceTableTimeSeriesRequest,
|
|
359
|
+
cb?: (error: string, rep: DescribeTopSpaceTableTimeSeriesResponse) => void
|
|
360
|
+
): Promise<DescribeTopSpaceTableTimeSeriesResponse> {
|
|
361
|
+
return this.request("DescribeTopSpaceTableTimeSeries", req, cb)
|
|
362
|
+
}
|
|
304
363
|
|
|
364
|
+
/**
|
|
365
|
+
* 修改实例巡检开关。
|
|
366
|
+
*/
|
|
367
|
+
async ModifyDiagDBInstanceConf(
|
|
368
|
+
req: ModifyDiagDBInstanceConfRequest,
|
|
369
|
+
cb?: (error: string, rep: ModifyDiagDBInstanceConfResponse) => void
|
|
370
|
+
): Promise<ModifyDiagDBInstanceConfResponse> {
|
|
371
|
+
return this.request("ModifyDiagDBInstanceConf", req, cb)
|
|
372
|
+
}
|
|
305
373
|
|
|
374
|
+
/**
|
|
375
|
+
* 创建健康报告的浏览地址。
|
|
376
|
+
*/
|
|
377
|
+
async CreateDBDiagReportUrl(
|
|
378
|
+
req: CreateDBDiagReportUrlRequest,
|
|
379
|
+
cb?: (error: string, rep: CreateDBDiagReportUrlResponse) => void
|
|
380
|
+
): Promise<CreateDBDiagReportUrlResponse> {
|
|
381
|
+
return this.request("CreateDBDiagReportUrl", req, cb)
|
|
382
|
+
}
|
|
306
383
|
}
|