tencentcloud-sdk-nodejs-cdb 4.0.641 → 4.0.643
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 +469 -0
- package/SERVICE_CHANGELOG.md +561 -76
- package/package.json +1 -1
- package/products.md +31 -30
- package/src/services/cdb/v20170320/cdb_client.ts +13 -0
- package/src/services/cdb/v20170320/cdb_models.ts +145 -4
- package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +5 -1
- package/tencentcloud/services/cdb/v20170320/cdb_client.js +6 -0
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +142 -4
|
@@ -3995,6 +3995,89 @@ export interface RollbackTimeRange {
|
|
|
3995
3995
|
*/
|
|
3996
3996
|
End: string;
|
|
3997
3997
|
}
|
|
3998
|
+
/**
|
|
3999
|
+
* 审计日志详细信息
|
|
4000
|
+
*/
|
|
4001
|
+
export interface AuditLog {
|
|
4002
|
+
/**
|
|
4003
|
+
* 影响行数。
|
|
4004
|
+
*/
|
|
4005
|
+
AffectRows?: number;
|
|
4006
|
+
/**
|
|
4007
|
+
* 错误码。
|
|
4008
|
+
*/
|
|
4009
|
+
ErrCode?: number;
|
|
4010
|
+
/**
|
|
4011
|
+
* SQL 类型。
|
|
4012
|
+
*/
|
|
4013
|
+
SqlType?: string;
|
|
4014
|
+
/**
|
|
4015
|
+
* 审计策略名称,逐步下线。
|
|
4016
|
+
*/
|
|
4017
|
+
PolicyName?: string;
|
|
4018
|
+
/**
|
|
4019
|
+
* 数据库名称。
|
|
4020
|
+
*/
|
|
4021
|
+
DBName?: string;
|
|
4022
|
+
/**
|
|
4023
|
+
* SQL 语句。
|
|
4024
|
+
*/
|
|
4025
|
+
Sql?: string;
|
|
4026
|
+
/**
|
|
4027
|
+
* 客户端地址。
|
|
4028
|
+
*/
|
|
4029
|
+
Host?: string;
|
|
4030
|
+
/**
|
|
4031
|
+
* 用户名。
|
|
4032
|
+
*/
|
|
4033
|
+
User?: string;
|
|
4034
|
+
/**
|
|
4035
|
+
* 执行时间,微秒。
|
|
4036
|
+
*/
|
|
4037
|
+
ExecTime?: number;
|
|
4038
|
+
/**
|
|
4039
|
+
* 时间。
|
|
4040
|
+
*/
|
|
4041
|
+
Timestamp?: string;
|
|
4042
|
+
/**
|
|
4043
|
+
* 返回行数。
|
|
4044
|
+
*/
|
|
4045
|
+
SentRows?: number;
|
|
4046
|
+
/**
|
|
4047
|
+
* 线程ID。
|
|
4048
|
+
*/
|
|
4049
|
+
ThreadId?: number;
|
|
4050
|
+
/**
|
|
4051
|
+
* 扫描行数。
|
|
4052
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4053
|
+
*/
|
|
4054
|
+
CheckRows?: number;
|
|
4055
|
+
/**
|
|
4056
|
+
* cpu执行时间,微秒。
|
|
4057
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4058
|
+
*/
|
|
4059
|
+
CpuTime?: number;
|
|
4060
|
+
/**
|
|
4061
|
+
* IO等待时间,微秒。
|
|
4062
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4063
|
+
*/
|
|
4064
|
+
IoWaitTime?: number;
|
|
4065
|
+
/**
|
|
4066
|
+
* 锁等待时间,微秒。
|
|
4067
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4068
|
+
*/
|
|
4069
|
+
LockWaitTime?: number;
|
|
4070
|
+
/**
|
|
4071
|
+
* 开始时间,与timestamp构成一个精确到纳秒的时间。
|
|
4072
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4073
|
+
*/
|
|
4074
|
+
NsTime?: number;
|
|
4075
|
+
/**
|
|
4076
|
+
* 事物持续时间,微秒。
|
|
4077
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4078
|
+
*/
|
|
4079
|
+
TrxLivingTime?: number;
|
|
4080
|
+
}
|
|
3998
4081
|
/**
|
|
3999
4082
|
* DescribeAuditLogFiles请求参数结构体
|
|
4000
4083
|
*/
|
|
@@ -4400,6 +4483,46 @@ export interface DescribeAccountPrivilegesResponse {
|
|
|
4400
4483
|
*/
|
|
4401
4484
|
RequestId?: string;
|
|
4402
4485
|
}
|
|
4486
|
+
/**
|
|
4487
|
+
* DescribeAuditLogs请求参数结构体
|
|
4488
|
+
*/
|
|
4489
|
+
export interface DescribeAuditLogsRequest {
|
|
4490
|
+
/**
|
|
4491
|
+
* 实例 ID。
|
|
4492
|
+
*/
|
|
4493
|
+
InstanceId: string;
|
|
4494
|
+
/**
|
|
4495
|
+
* 开始时间。
|
|
4496
|
+
*/
|
|
4497
|
+
StartTime: string;
|
|
4498
|
+
/**
|
|
4499
|
+
* 结束时间。
|
|
4500
|
+
*/
|
|
4501
|
+
EndTime: string;
|
|
4502
|
+
/**
|
|
4503
|
+
* 分页参数,单次返回的数据条数。默认值为100,最大值为100。
|
|
4504
|
+
*/
|
|
4505
|
+
Limit?: number;
|
|
4506
|
+
/**
|
|
4507
|
+
* 分页偏移量。
|
|
4508
|
+
*/
|
|
4509
|
+
Offset?: number;
|
|
4510
|
+
/**
|
|
4511
|
+
* 排序方式。支持值包括:"ASC" - 升序,"DESC" - 降序。
|
|
4512
|
+
*/
|
|
4513
|
+
Order?: string;
|
|
4514
|
+
/**
|
|
4515
|
+
* 排序字段。支持值包括:
|
|
4516
|
+
"timestamp" - 时间戳;
|
|
4517
|
+
"affectRows" - 影响行数;
|
|
4518
|
+
"execTime" - 执行时间。
|
|
4519
|
+
*/
|
|
4520
|
+
OrderBy?: string;
|
|
4521
|
+
/**
|
|
4522
|
+
* 过滤条件。可按设置的过滤条件过滤日志。
|
|
4523
|
+
*/
|
|
4524
|
+
LogFilter?: Array<InstanceAuditLogFilters>;
|
|
4525
|
+
}
|
|
4403
4526
|
/**
|
|
4404
4527
|
* DescribeBackupConfig请求参数结构体
|
|
4405
4528
|
*/
|
|
@@ -5719,10 +5842,7 @@ export interface DeleteAuditRuleResponse {
|
|
|
5719
5842
|
*/
|
|
5720
5843
|
export interface InstanceAuditLogFilters {
|
|
5721
5844
|
/**
|
|
5722
|
-
*
|
|
5723
|
-
|
|
5724
|
-
分词搜索:
|
|
5725
|
-
sql - SQL语句;
|
|
5845
|
+
* 过滤项。sql 暂时不支持搜索。目前支持以下搜索条件:
|
|
5726
5846
|
|
|
5727
5847
|
等于、不等于、包含、不包含:
|
|
5728
5848
|
host - 客户端地址;
|
|
@@ -7299,6 +7419,24 @@ export interface DescribeTasksResponse {
|
|
|
7299
7419
|
*/
|
|
7300
7420
|
RequestId?: string;
|
|
7301
7421
|
}
|
|
7422
|
+
/**
|
|
7423
|
+
* DescribeAuditLogs返回参数结构体
|
|
7424
|
+
*/
|
|
7425
|
+
export interface DescribeAuditLogsResponse {
|
|
7426
|
+
/**
|
|
7427
|
+
* 符合条件的审计日志条数。
|
|
7428
|
+
*/
|
|
7429
|
+
TotalCount?: number;
|
|
7430
|
+
/**
|
|
7431
|
+
* 审计日志详情。
|
|
7432
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
7433
|
+
*/
|
|
7434
|
+
Items?: Array<AuditLog>;
|
|
7435
|
+
/**
|
|
7436
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
7437
|
+
*/
|
|
7438
|
+
RequestId?: string;
|
|
7439
|
+
}
|
|
7302
7440
|
/**
|
|
7303
7441
|
* DescribeAuditPolicies返回参数结构体
|
|
7304
7442
|
*/
|