tencentcloud-sdk-nodejs-dbbrain 4.0.585 → 4.0.586
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 +298 -0
- package/SERVICE_CHANGELOG.md +424 -61
- package/package.json +1 -1
- package/products.md +22 -22
- package/src/services/dbbrain/v20210527/dbbrain_client.ts +48 -10
- package/src/services/dbbrain/v20210527/dbbrain_models.ts +301 -73
- 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 +254 -62
|
@@ -135,6 +135,25 @@ export interface TableSpaceTimeSeries {
|
|
|
135
135
|
*/
|
|
136
136
|
SeriesData: MonitorFloatMetricSeriesData;
|
|
137
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* DescribeAuditLogFiles返回参数结构体
|
|
140
|
+
*/
|
|
141
|
+
export interface DescribeAuditLogFilesResponse {
|
|
142
|
+
/**
|
|
143
|
+
* 符合条件的审计日志文件个数。
|
|
144
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
145
|
+
*/
|
|
146
|
+
TotalCount?: number;
|
|
147
|
+
/**
|
|
148
|
+
* 审计日志文件详情。
|
|
149
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
150
|
+
*/
|
|
151
|
+
Items?: Array<AuditLogFile>;
|
|
152
|
+
/**
|
|
153
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
154
|
+
*/
|
|
155
|
+
RequestId?: string;
|
|
156
|
+
}
|
|
138
157
|
/**
|
|
139
158
|
* DescribeSlowLogs请求参数结构体
|
|
140
159
|
*/
|
|
@@ -442,6 +461,35 @@ export interface DescribeTopSpaceSchemaTimeSeriesResponse {
|
|
|
442
461
|
*/
|
|
443
462
|
RequestId?: string;
|
|
444
463
|
}
|
|
464
|
+
/**
|
|
465
|
+
* 过滤条件。可按设置的过滤条件过滤日志。
|
|
466
|
+
*/
|
|
467
|
+
export interface AuditLogFilter {
|
|
468
|
+
/**
|
|
469
|
+
* 客户端地址。
|
|
470
|
+
*/
|
|
471
|
+
Host?: Array<string>;
|
|
472
|
+
/**
|
|
473
|
+
* 数据库名称。
|
|
474
|
+
*/
|
|
475
|
+
DBName?: Array<string>;
|
|
476
|
+
/**
|
|
477
|
+
* 用户名。
|
|
478
|
+
*/
|
|
479
|
+
User?: Array<string>;
|
|
480
|
+
/**
|
|
481
|
+
* 返回行数。表示筛选返回行数大于该值的审计日志。
|
|
482
|
+
*/
|
|
483
|
+
SentRows?: number;
|
|
484
|
+
/**
|
|
485
|
+
* 影响行数。表示筛选影响行数大于该值的审计日志。
|
|
486
|
+
*/
|
|
487
|
+
AffectRows?: number;
|
|
488
|
+
/**
|
|
489
|
+
* 执行时间。单位为:µs。表示筛选执行时间大于该值的审计日志。
|
|
490
|
+
*/
|
|
491
|
+
ExecTime?: number;
|
|
492
|
+
}
|
|
445
493
|
/**
|
|
446
494
|
* 慢日志TopSql
|
|
447
495
|
*/
|
|
@@ -548,29 +596,13 @@ export interface SlowLogTopSqlItem {
|
|
|
548
596
|
Md5: string;
|
|
549
597
|
}
|
|
550
598
|
/**
|
|
551
|
-
*
|
|
599
|
+
* CreateKillTask返回参数结构体
|
|
552
600
|
*/
|
|
553
|
-
export interface
|
|
554
|
-
/**
|
|
555
|
-
* 无主键表总数。
|
|
556
|
-
*/
|
|
557
|
-
NoPrimaryKeyTableCount?: number;
|
|
558
|
-
/**
|
|
559
|
-
* 与昨日扫描无主键表的差值,正数为增加,负数为减少,0为无变化。
|
|
560
|
-
*/
|
|
561
|
-
NoPrimaryKeyTableCountDiff?: number;
|
|
562
|
-
/**
|
|
563
|
-
* 记录的无主键表总数(不超过无主键表总数),可用于分页查询。
|
|
564
|
-
*/
|
|
565
|
-
NoPrimaryKeyTableRecordCount?: number;
|
|
566
|
-
/**
|
|
567
|
-
* 无主键表列表。
|
|
568
|
-
*/
|
|
569
|
-
NoPrimaryKeyTables?: Array<Table>;
|
|
601
|
+
export interface CreateKillTaskResponse {
|
|
570
602
|
/**
|
|
571
|
-
*
|
|
603
|
+
* kill会话任务创建成功返回1
|
|
572
604
|
*/
|
|
573
|
-
|
|
605
|
+
Status: number;
|
|
574
606
|
/**
|
|
575
607
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
576
608
|
*/
|
|
@@ -826,6 +858,15 @@ export interface ContactItem {
|
|
|
826
858
|
*/
|
|
827
859
|
Mail: string;
|
|
828
860
|
}
|
|
861
|
+
/**
|
|
862
|
+
* DeleteAuditLogFile返回参数结构体
|
|
863
|
+
*/
|
|
864
|
+
export interface DeleteAuditLogFileResponse {
|
|
865
|
+
/**
|
|
866
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
867
|
+
*/
|
|
868
|
+
RequestId?: string;
|
|
869
|
+
}
|
|
829
870
|
/**
|
|
830
871
|
* DescribeDBSpaceStatus请求参数结构体
|
|
831
872
|
*/
|
|
@@ -1062,13 +1103,13 @@ export interface DescribeDBDiagHistoryRequest {
|
|
|
1062
1103
|
Product?: string;
|
|
1063
1104
|
}
|
|
1064
1105
|
/**
|
|
1065
|
-
*
|
|
1106
|
+
* CreateAuditLogFile返回参数结构体
|
|
1066
1107
|
*/
|
|
1067
|
-
export interface
|
|
1108
|
+
export interface CreateAuditLogFileResponse {
|
|
1068
1109
|
/**
|
|
1069
|
-
*
|
|
1110
|
+
* 审计日志文件下载的任务ID
|
|
1070
1111
|
*/
|
|
1071
|
-
|
|
1112
|
+
AsyncRequestId?: number;
|
|
1072
1113
|
/**
|
|
1073
1114
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1074
1115
|
*/
|
|
@@ -1130,45 +1171,17 @@ export interface CreateDBDiagReportUrlResponse {
|
|
|
1130
1171
|
RequestId?: string;
|
|
1131
1172
|
}
|
|
1132
1173
|
/**
|
|
1133
|
-
*
|
|
1174
|
+
* CreateProxySessionKillTask请求参数结构体
|
|
1134
1175
|
*/
|
|
1135
|
-
export interface
|
|
1176
|
+
export interface CreateProxySessionKillTaskRequest {
|
|
1136
1177
|
/**
|
|
1137
|
-
*
|
|
1178
|
+
* 实例 ID。
|
|
1138
1179
|
*/
|
|
1139
1180
|
InstanceId: string;
|
|
1140
1181
|
/**
|
|
1141
|
-
*
|
|
1142
|
-
*/
|
|
1143
|
-
Duration: number;
|
|
1144
|
-
/**
|
|
1145
|
-
* 任务过滤条件,客户端IP。
|
|
1146
|
-
*/
|
|
1147
|
-
Host?: string;
|
|
1148
|
-
/**
|
|
1149
|
-
* 任务过滤条件,数据库库名,多个","隔开。
|
|
1150
|
-
*/
|
|
1151
|
-
DB?: string;
|
|
1152
|
-
/**
|
|
1153
|
-
* 任务过滤条件,相关命令,多个","隔开。
|
|
1154
|
-
*/
|
|
1155
|
-
Command?: string;
|
|
1156
|
-
/**
|
|
1157
|
-
* 任务过滤条件,支持单条件前缀匹配。
|
|
1158
|
-
*/
|
|
1159
|
-
Info?: string;
|
|
1160
|
-
/**
|
|
1161
|
-
* 任务过滤条件,用户类型。
|
|
1162
|
-
*/
|
|
1163
|
-
User?: string;
|
|
1164
|
-
/**
|
|
1165
|
-
* 任务过滤条件,会话持续时长,单位秒。
|
|
1166
|
-
*/
|
|
1167
|
-
Time?: number;
|
|
1168
|
-
/**
|
|
1169
|
-
* 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
|
|
1182
|
+
* 服务产品类型,支持值包括: "redis" - 云数据库 Redis。
|
|
1170
1183
|
*/
|
|
1171
|
-
Product
|
|
1184
|
+
Product: string;
|
|
1172
1185
|
}
|
|
1173
1186
|
/**
|
|
1174
1187
|
* DeleteDBDiagReportTasks返回参数结构体
|
|
@@ -2339,17 +2352,45 @@ export interface DescribeAllUserGroupRequest {
|
|
|
2339
2352
|
Names?: Array<string>;
|
|
2340
2353
|
}
|
|
2341
2354
|
/**
|
|
2342
|
-
*
|
|
2355
|
+
* CreateKillTask请求参数结构体
|
|
2343
2356
|
*/
|
|
2344
|
-
export interface
|
|
2357
|
+
export interface CreateKillTaskRequest {
|
|
2345
2358
|
/**
|
|
2346
|
-
*
|
|
2359
|
+
* kill会话任务的关联实例ID。
|
|
2347
2360
|
*/
|
|
2348
2361
|
InstanceId: string;
|
|
2349
2362
|
/**
|
|
2350
|
-
*
|
|
2363
|
+
* 任务持续时间,单位秒,手动关闭任务传-1。
|
|
2351
2364
|
*/
|
|
2352
|
-
|
|
2365
|
+
Duration: number;
|
|
2366
|
+
/**
|
|
2367
|
+
* 任务过滤条件,客户端IP。
|
|
2368
|
+
*/
|
|
2369
|
+
Host?: string;
|
|
2370
|
+
/**
|
|
2371
|
+
* 任务过滤条件,数据库库名,多个","隔开。
|
|
2372
|
+
*/
|
|
2373
|
+
DB?: string;
|
|
2374
|
+
/**
|
|
2375
|
+
* 任务过滤条件,相关命令,多个","隔开。
|
|
2376
|
+
*/
|
|
2377
|
+
Command?: string;
|
|
2378
|
+
/**
|
|
2379
|
+
* 任务过滤条件,支持单条件前缀匹配。
|
|
2380
|
+
*/
|
|
2381
|
+
Info?: string;
|
|
2382
|
+
/**
|
|
2383
|
+
* 任务过滤条件,用户类型。
|
|
2384
|
+
*/
|
|
2385
|
+
User?: string;
|
|
2386
|
+
/**
|
|
2387
|
+
* 任务过滤条件,会话持续时长,单位秒。
|
|
2388
|
+
*/
|
|
2389
|
+
Time?: number;
|
|
2390
|
+
/**
|
|
2391
|
+
* 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
|
|
2392
|
+
*/
|
|
2393
|
+
Product?: string;
|
|
2353
2394
|
}
|
|
2354
2395
|
/**
|
|
2355
2396
|
* CreateSecurityAuditLogExportTask返回参数结构体
|
|
@@ -2428,6 +2469,53 @@ export interface CreateProxySessionKillTaskResponse {
|
|
|
2428
2469
|
*/
|
|
2429
2470
|
RequestId?: string;
|
|
2430
2471
|
}
|
|
2472
|
+
/**
|
|
2473
|
+
* 审计日志文件
|
|
2474
|
+
*/
|
|
2475
|
+
export interface AuditLogFile {
|
|
2476
|
+
/**
|
|
2477
|
+
* 审计日志文件生成异步任务ID。
|
|
2478
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2479
|
+
*/
|
|
2480
|
+
AsyncRequestId?: number;
|
|
2481
|
+
/**
|
|
2482
|
+
* 审计日志文件名称。
|
|
2483
|
+
*/
|
|
2484
|
+
FileName?: string;
|
|
2485
|
+
/**
|
|
2486
|
+
* 审计日志文件创建时间。格式为 : "2019-03-20 17:09:13"。
|
|
2487
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2488
|
+
*/
|
|
2489
|
+
CreateTime?: string;
|
|
2490
|
+
/**
|
|
2491
|
+
* 文件状态值。可能返回的值为:
|
|
2492
|
+
"creating" - 生成中;
|
|
2493
|
+
"failed" - 创建失败;
|
|
2494
|
+
"success" - 已生成;
|
|
2495
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2496
|
+
*/
|
|
2497
|
+
Status?: string;
|
|
2498
|
+
/**
|
|
2499
|
+
* 文件大小,单位为 KB。
|
|
2500
|
+
*/
|
|
2501
|
+
FileSize?: number;
|
|
2502
|
+
/**
|
|
2503
|
+
* 审计日志下载地址。
|
|
2504
|
+
*/
|
|
2505
|
+
DownloadUrl?: string;
|
|
2506
|
+
/**
|
|
2507
|
+
* 错误信息。
|
|
2508
|
+
*/
|
|
2509
|
+
ErrMsg?: string;
|
|
2510
|
+
/**
|
|
2511
|
+
* 文件生成进度。
|
|
2512
|
+
*/
|
|
2513
|
+
Progress?: number;
|
|
2514
|
+
/**
|
|
2515
|
+
* 文件生成成功时间。
|
|
2516
|
+
*/
|
|
2517
|
+
FinishTime?: string;
|
|
2518
|
+
}
|
|
2431
2519
|
/**
|
|
2432
2520
|
* DescribeSlowLogTimeSeriesStats返回参数结构体
|
|
2433
2521
|
*/
|
|
@@ -2535,6 +2623,56 @@ export interface DescribeAllUserGroupResponse {
|
|
|
2535
2623
|
*/
|
|
2536
2624
|
RequestId?: string;
|
|
2537
2625
|
}
|
|
2626
|
+
/**
|
|
2627
|
+
* CreateAuditLogFile请求参数结构体
|
|
2628
|
+
*/
|
|
2629
|
+
export interface CreateAuditLogFileRequest {
|
|
2630
|
+
/**
|
|
2631
|
+
* 服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB for MariaDB。
|
|
2632
|
+
*/
|
|
2633
|
+
Product: string;
|
|
2634
|
+
/**
|
|
2635
|
+
* 与Product保持一致。如:"dcdb" ,"mariadb"
|
|
2636
|
+
*/
|
|
2637
|
+
NodeRequestType: string;
|
|
2638
|
+
/**
|
|
2639
|
+
* 实例 ID 。
|
|
2640
|
+
*/
|
|
2641
|
+
InstanceId: string;
|
|
2642
|
+
/**
|
|
2643
|
+
* 开始时间,如“2019-09-10 12:13:14”。
|
|
2644
|
+
*/
|
|
2645
|
+
StartTime: string;
|
|
2646
|
+
/**
|
|
2647
|
+
* 截止时间,如“2019-09-11 10:13:14”。
|
|
2648
|
+
*/
|
|
2649
|
+
EndTime: string;
|
|
2650
|
+
/**
|
|
2651
|
+
* 过滤条件。可按设置的过滤条件过滤日志。
|
|
2652
|
+
*/
|
|
2653
|
+
Filter?: AuditLogFilter;
|
|
2654
|
+
}
|
|
2655
|
+
/**
|
|
2656
|
+
* DeleteAuditLogFile请求参数结构体
|
|
2657
|
+
*/
|
|
2658
|
+
export interface DeleteAuditLogFileRequest {
|
|
2659
|
+
/**
|
|
2660
|
+
* 服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB for MariaDB。
|
|
2661
|
+
*/
|
|
2662
|
+
Product: string;
|
|
2663
|
+
/**
|
|
2664
|
+
* 与Product保持一致。如:"dcdb" ,"mariadb"
|
|
2665
|
+
*/
|
|
2666
|
+
NodeRequestType: string;
|
|
2667
|
+
/**
|
|
2668
|
+
* 实例 ID 。
|
|
2669
|
+
*/
|
|
2670
|
+
InstanceId: string;
|
|
2671
|
+
/**
|
|
2672
|
+
* 审计日志文件生成异步任务ID。
|
|
2673
|
+
*/
|
|
2674
|
+
AsyncRequestId: number;
|
|
2675
|
+
}
|
|
2538
2676
|
/**
|
|
2539
2677
|
* ModifyDiagDBInstanceConf返回参数结构体
|
|
2540
2678
|
*/
|
|
@@ -2954,6 +3092,60 @@ export interface DescribeSlowLogTopSqlsResponse {
|
|
|
2954
3092
|
*/
|
|
2955
3093
|
RequestId?: string;
|
|
2956
3094
|
}
|
|
3095
|
+
/**
|
|
3096
|
+
* DescribeNoPrimaryKeyTables返回参数结构体
|
|
3097
|
+
*/
|
|
3098
|
+
export interface DescribeNoPrimaryKeyTablesResponse {
|
|
3099
|
+
/**
|
|
3100
|
+
* 无主键表总数。
|
|
3101
|
+
*/
|
|
3102
|
+
NoPrimaryKeyTableCount?: number;
|
|
3103
|
+
/**
|
|
3104
|
+
* 与昨日扫描无主键表的差值,正数为增加,负数为减少,0为无变化。
|
|
3105
|
+
*/
|
|
3106
|
+
NoPrimaryKeyTableCountDiff?: number;
|
|
3107
|
+
/**
|
|
3108
|
+
* 记录的无主键表总数(不超过无主键表总数),可用于分页查询。
|
|
3109
|
+
*/
|
|
3110
|
+
NoPrimaryKeyTableRecordCount?: number;
|
|
3111
|
+
/**
|
|
3112
|
+
* 无主键表列表。
|
|
3113
|
+
*/
|
|
3114
|
+
NoPrimaryKeyTables?: Array<Table>;
|
|
3115
|
+
/**
|
|
3116
|
+
* 采集时间戳(秒)。
|
|
3117
|
+
*/
|
|
3118
|
+
Timestamp?: number;
|
|
3119
|
+
/**
|
|
3120
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3121
|
+
*/
|
|
3122
|
+
RequestId?: string;
|
|
3123
|
+
}
|
|
3124
|
+
/**
|
|
3125
|
+
* DescribeAuditLogFiles请求参数结构体
|
|
3126
|
+
*/
|
|
3127
|
+
export interface DescribeAuditLogFilesRequest {
|
|
3128
|
+
/**
|
|
3129
|
+
* 服务产品类型,支持值包括: "dcdb" - 云数据库 Tdsql, "mariadb" - 云数据库 MariaDB for MariaDB。
|
|
3130
|
+
*/
|
|
3131
|
+
Product: string;
|
|
3132
|
+
/**
|
|
3133
|
+
* 与Product保持一致。如:"dcdb" ,"mariadb"
|
|
3134
|
+
*/
|
|
3135
|
+
NodeRequestType: string;
|
|
3136
|
+
/**
|
|
3137
|
+
* 实例 ID 。
|
|
3138
|
+
*/
|
|
3139
|
+
InstanceId: string;
|
|
3140
|
+
/**
|
|
3141
|
+
* 偏移量,默认为0。
|
|
3142
|
+
*/
|
|
3143
|
+
Offset?: number;
|
|
3144
|
+
/**
|
|
3145
|
+
* 查询数目,默认为20,最大为100。
|
|
3146
|
+
*/
|
|
3147
|
+
Limit?: number;
|
|
3148
|
+
}
|
|
2957
3149
|
/**
|
|
2958
3150
|
* DeleteSqlFilters请求参数结构体
|
|
2959
3151
|
*/
|