tencentcloud-sdk-nodejs-dbbrain 4.0.697 → 4.0.699

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.
@@ -127,6 +127,57 @@ export interface HealthReportTask {
127
127
  */
128
128
  HealthStatus: HealthStatus;
129
129
  }
130
+ /**
131
+ * 安全审计日志导出任务信息
132
+ */
133
+ export interface SecLogExportTaskInfo {
134
+ /**
135
+ * 异步任务Id。
136
+ */
137
+ AsyncRequestId: number;
138
+ /**
139
+ * 任务开始时间。
140
+ 注意:此字段可能返回 null,表示取不到有效值。
141
+ */
142
+ StartTime: string;
143
+ /**
144
+ * 任务结束时间。
145
+ 注意:此字段可能返回 null,表示取不到有效值。
146
+ */
147
+ EndTime: string;
148
+ /**
149
+ * 任务创建时间。
150
+ */
151
+ CreateTime: string;
152
+ /**
153
+ * 任务状态。
154
+ */
155
+ Status: string;
156
+ /**
157
+ * 任务执行进度。
158
+ */
159
+ Progress: number;
160
+ /**
161
+ * 导出日志开始时间。
162
+ 注意:此字段可能返回 null,表示取不到有效值。
163
+ */
164
+ LogStartTime: string;
165
+ /**
166
+ * 导出日志结束时间。
167
+ 注意:此字段可能返回 null,表示取不到有效值。
168
+ */
169
+ LogEndTime: string;
170
+ /**
171
+ * 日志文件总大小,单位KB。
172
+ 注意:此字段可能返回 null,表示取不到有效值。
173
+ */
174
+ TotalSize: number;
175
+ /**
176
+ * 风险等级列表。0 无风险;1 低风险;2 中风险;3 高风险。
177
+ 注意:此字段可能返回 null,表示取不到有效值。
178
+ */
179
+ DangerLevels: Array<number | bigint>;
180
+ }
130
181
  /**
131
182
  * OpenAuditService返回参数结构体
132
183
  */
@@ -213,6 +264,31 @@ export interface DescribeAuditLogFilesResponse {
213
264
  */
214
265
  RequestId?: string;
215
266
  }
267
+ /**
268
+ * DescribeIndexRecommendAggregationSlowLogs请求参数结构体
269
+ */
270
+ export interface DescribeIndexRecommendAggregationSlowLogsRequest {
271
+ /**
272
+ * 服务产品类型,支持值包括:"mongodb" - 云数据库 。
273
+ */
274
+ Product: string;
275
+ /**
276
+ * 实例ID。
277
+ */
278
+ InstanceId: string;
279
+ /**
280
+ * 数据库名称。
281
+ */
282
+ Db: string;
283
+ /**
284
+ * 表明。
285
+ */
286
+ Collection: string;
287
+ /**
288
+ * 签名。
289
+ */
290
+ Signs: Array<string>;
291
+ }
216
292
  /**
217
293
  * DescribeSlowLogs请求参数结构体
218
294
  */
@@ -1096,6 +1172,27 @@ export interface AlarmsRules {
1096
1172
  */
1097
1173
  Value?: number;
1098
1174
  }
1175
+ /**
1176
+ * DescribeRedisProcessList请求参数结构体
1177
+ */
1178
+ export interface DescribeRedisProcessListRequest {
1179
+ /**
1180
+ * Redis 实例ID。
1181
+ */
1182
+ InstanceId: string;
1183
+ /**
1184
+ * 服务产品类型,支持值包括 "redis" - 云数据库 Redis。
1185
+ */
1186
+ Product: string;
1187
+ /**
1188
+ * 查询的Proxy节点数量上限,默认值为20,最大值为50。
1189
+ */
1190
+ Limit?: number;
1191
+ /**
1192
+ * Proxy节点的偏移量,默认值为0。
1193
+ */
1194
+ Offset?: number;
1195
+ }
1099
1196
  /**
1100
1197
  * 单位时间间隔内的慢日志统计
1101
1198
  */
@@ -1238,6 +1335,15 @@ export interface CreateMailProfileResponse {
1238
1335
  */
1239
1336
  RequestId?: string;
1240
1337
  }
1338
+ /**
1339
+ * UpdateMonitorSwitch返回参数结构体
1340
+ */
1341
+ export interface UpdateMonitorSwitchResponse {
1342
+ /**
1343
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1344
+ */
1345
+ RequestId?: string;
1346
+ }
1241
1347
  /**
1242
1348
  * DescribeSlowLogTimeSeriesStats请求参数结构体
1243
1349
  */
@@ -1364,6 +1470,39 @@ export interface AuditInstance {
1364
1470
  */
1365
1471
  InstanceInfo?: AuditInstanceInfo;
1366
1472
  }
1473
+ /**
1474
+ * 推荐的索引
1475
+ */
1476
+ export interface IndexesToBuild {
1477
+ /**
1478
+ * 索引id,唯一标识一个索引。
1479
+ */
1480
+ Id?: number;
1481
+ /**
1482
+ * 创建索引命令。
1483
+ */
1484
+ IndexCommand?: string;
1485
+ /**
1486
+ * 索引字符串。
1487
+ */
1488
+ IndexStr?: string;
1489
+ /**
1490
+ * 优化级别,1-4,优先级从高到低。
1491
+ */
1492
+ Level?: number;
1493
+ /**
1494
+ * 索引得分。
1495
+ */
1496
+ Score?: number;
1497
+ /**
1498
+ * 签名。
1499
+ */
1500
+ Signs?: Array<string>;
1501
+ /**
1502
+ * 0-待创建;1-创建中。
1503
+ */
1504
+ Status?: number;
1505
+ }
1367
1506
  /**
1368
1507
  * DeleteSqlFilters返回参数结构体
1369
1508
  */
@@ -1505,6 +1644,19 @@ export interface DescribeProxyProcessStatisticsResponse {
1505
1644
  */
1506
1645
  RequestId?: string;
1507
1646
  }
1647
+ /**
1648
+ * DescribeIndexRecommendInfo请求参数结构体
1649
+ */
1650
+ export interface DescribeIndexRecommendInfoRequest {
1651
+ /**
1652
+ * 服务产品类型,支持值包括:"mongodb" - 云数据库 。
1653
+ */
1654
+ Product: string;
1655
+ /**
1656
+ * 实例ID。
1657
+ */
1658
+ InstanceId: string;
1659
+ }
1508
1660
  /**
1509
1661
  * 慢日志来源地址详情。
1510
1662
  */
@@ -1823,6 +1975,41 @@ export interface DescribeSqlFiltersResponse {
1823
1975
  */
1824
1976
  RequestId?: string;
1825
1977
  }
1978
+ /**
1979
+ * Mongodb索引项
1980
+ */
1981
+ export interface MongoDBIndex {
1982
+ /**
1983
+ * 实例id。
1984
+ */
1985
+ ClusterId?: string;
1986
+ /**
1987
+ * 表名。
1988
+ */
1989
+ Collection?: string;
1990
+ /**
1991
+ * 库名。
1992
+ */
1993
+ Db?: string;
1994
+ /**
1995
+ * 优化级别,1-4,优先级从高到低。
1996
+ */
1997
+ Level?: number;
1998
+ /**
1999
+ * 得分。
2000
+ */
2001
+ Score?: number;
2002
+ /**
2003
+ * 推荐索引列表。
2004
+ 注意:此字段可能返回 null,表示取不到有效值。
2005
+ */
2006
+ IndexesToBuild?: Array<IndexesToBuild>;
2007
+ /**
2008
+ * 无效索引列表。
2009
+ 注意:此字段可能返回 null,表示取不到有效值。
2010
+ */
2011
+ IndexesToDrop?: Array<IndexesToDrop>;
2012
+ }
1826
2013
  /**
1827
2014
  * CreateDBDiagReportUrl请求参数结构体
1828
2015
  */
@@ -1841,17 +2028,13 @@ export interface CreateDBDiagReportUrlRequest {
1841
2028
  Product?: string;
1842
2029
  }
1843
2030
  /**
1844
- * DescribeSecurityAuditLogExportTasks返回参数结构体
2031
+ * CloseAuditService返回参数结构体
1845
2032
  */
1846
- export interface DescribeSecurityAuditLogExportTasksResponse {
1847
- /**
1848
- * 安全审计日志导出任务列表。
1849
- */
1850
- Tasks: Array<SecLogExportTaskInfo>;
2033
+ export interface CloseAuditServiceResponse {
1851
2034
  /**
1852
- * 安全审计日志导出任务总数。
2035
+ * 0-关闭审计成功,非0关闭审计失败。
1853
2036
  */
1854
- TotalCount: number;
2037
+ TaskId?: number;
1855
2038
  /**
1856
2039
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1857
2040
  */
@@ -2004,37 +2187,30 @@ export interface DescribeDBDiagHistoryResponse {
2004
2187
  RequestId?: string;
2005
2188
  }
2006
2189
  /**
2007
- * DescribeDiagDBInstances请求参数结构体
2190
+ * mongodb慢查模板概览明细
2008
2191
  */
2009
- export interface DescribeDiagDBInstancesRequest {
2010
- /**
2011
- * 是否是DBbrain支持的实例,固定传 true。
2012
- */
2013
- IsSupported: boolean;
2192
+ export interface Aggregation {
2014
2193
  /**
2015
- * 服务产品类型,支持值包括:"mysql" - 云数据库 MySQL,"cynosdb" - 云数据库 TDSQL-C for MySQL,"dbbrain-mysql" - 自建 MySQL,默认为"mysql"。
2016
- */
2017
- Product: string;
2018
- /**
2019
- * 分页参数,偏移量。
2194
+ * 平均执行时间(ms)。
2020
2195
  */
2021
- Offset: number;
2196
+ AvgExecTime?: number;
2022
2197
  /**
2023
- * 分页参数,分页值,最大值为100。
2198
+ * 平均扫描行数。
2024
2199
  */
2025
- Limit: number;
2200
+ AvgDocsExamined?: number;
2026
2201
  /**
2027
- * 根据实例名称条件查询。
2202
+ * 产生慢查次数(/天)。
2028
2203
  */
2029
- InstanceNames?: Array<string>;
2204
+ SlowLogCount?: number;
2030
2205
  /**
2031
- * 根据实例ID条件查询。
2206
+ * 内存排序次数。
2032
2207
  */
2033
- InstanceIds?: Array<string>;
2208
+ SortCount?: number;
2034
2209
  /**
2035
- * 根据地域条件查询。
2210
+ * 慢查模板概览。
2211
+ 注意:此字段可能返回 null,表示取不到有效值。
2036
2212
  */
2037
- Regions?: Array<string>;
2213
+ SlowLogs?: Array<string>;
2038
2214
  }
2039
2215
  /**
2040
2216
  * ModifySqlFilters请求参数结构体
@@ -2793,6 +2969,20 @@ export interface ModifyAuditServiceRequest {
2793
2969
  */
2794
2970
  HotLogExpireDay: number;
2795
2971
  }
2972
+ /**
2973
+ * DescribeIndexRecommendAggregationSlowLogs返回参数结构体
2974
+ */
2975
+ export interface DescribeIndexRecommendAggregationSlowLogsResponse {
2976
+ /**
2977
+ * 查询实例慢查询聚合结果。
2978
+ 注意:此字段可能返回 null,表示取不到有效值。
2979
+ */
2980
+ Aggregation?: Aggregation;
2981
+ /**
2982
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2983
+ */
2984
+ RequestId?: string;
2985
+ }
2796
2986
  /**
2797
2987
  * DescribeDBDiagEvents返回参数结构体
2798
2988
  */
@@ -2858,6 +3048,76 @@ export interface DescribeRedisTopBigKeysRequest {
2858
3048
  */
2859
3049
  Limit?: number;
2860
3050
  }
3051
+ /**
3052
+ * DescribeIndexRecommendInfo返回参数结构体
3053
+ */
3054
+ export interface DescribeIndexRecommendInfoResponse {
3055
+ /**
3056
+ * 索引推荐的集合数量。
3057
+ */
3058
+ CollectionNum?: number;
3059
+ /**
3060
+ * 索引推荐的索引数量。
3061
+ */
3062
+ IndexNum?: number;
3063
+ /**
3064
+ * 索引项。
3065
+ */
3066
+ Items?: Array<MongoDBIndex>;
3067
+ /**
3068
+ * 优化级别,1-4,优先级从高到低。
3069
+ */
3070
+ Level?: number;
3071
+ /**
3072
+ * 历史优化数。
3073
+ */
3074
+ Optimized?: number;
3075
+ /**
3076
+ * 累计优化条数。
3077
+ */
3078
+ OptimizedCount?: number;
3079
+ /**
3080
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3081
+ */
3082
+ RequestId?: string;
3083
+ }
3084
+ /**
3085
+ * 实时会话详情。
3086
+ */
3087
+ export interface Process {
3088
+ /**
3089
+ * 会话 ID。
3090
+ */
3091
+ Id?: number;
3092
+ /**
3093
+ * 访问来源,IP 地址和端口号。
3094
+ */
3095
+ Address?: string;
3096
+ /**
3097
+ * 文件描述符。
3098
+ */
3099
+ FileDescriptor?: number;
3100
+ /**
3101
+ * 会话名称,使用 CLIENT SETNAME 命令设置。
3102
+ */
3103
+ Name?: string;
3104
+ /**
3105
+ * 最后一次执行的命令。
3106
+ */
3107
+ LastCommand?: string;
3108
+ /**
3109
+ * 会话存活时间,单位:秒。
3110
+ */
3111
+ Age?: number;
3112
+ /**
3113
+ * 最后一次执行命令后空闲的时间,单位:秒。
3114
+ */
3115
+ Idle?: number;
3116
+ /**
3117
+ * 会话所属的 Proxy节点 ID。
3118
+ */
3119
+ ProxyId?: string;
3120
+ }
2861
3121
  /**
2862
3122
  * ModifyAuditService返回参数结构体
2863
3123
  */
@@ -3303,9 +3563,17 @@ export interface DescribeAllUserGroupResponse {
3303
3563
  RequestId?: string;
3304
3564
  }
3305
3565
  /**
3306
- * UpdateMonitorSwitch返回参数结构体
3566
+ * DescribeRedisProcessList返回参数结构体
3307
3567
  */
3308
- export interface UpdateMonitorSwitchResponse {
3568
+ export interface DescribeRedisProcessListResponse {
3569
+ /**
3570
+ * 该实例的Proxy节点数量,可用于分页查询。
3571
+ */
3572
+ ProxyCount?: number;
3573
+ /**
3574
+ * 实时会话详情列表。
3575
+ */
3576
+ Processes?: Array<Process>;
3309
3577
  /**
3310
3578
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3311
3579
  */
@@ -3556,6 +3824,27 @@ export interface DescribeTopSpaceTableTimeSeriesRequest {
3556
3824
  */
3557
3825
  Product?: string;
3558
3826
  }
3827
+ /**
3828
+ * DescribeUserSqlAdvice请求参数结构体
3829
+ */
3830
+ export interface DescribeUserSqlAdviceRequest {
3831
+ /**
3832
+ * 实例ID。
3833
+ */
3834
+ InstanceId: string;
3835
+ /**
3836
+ * SQL语句。
3837
+ */
3838
+ SqlText: string;
3839
+ /**
3840
+ * 库名。
3841
+ */
3842
+ Schema?: string;
3843
+ /**
3844
+ * 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL;"dbbrain-mysql" - 自建 MySQL,默认为"mysql"。
3845
+ */
3846
+ Product?: string;
3847
+ }
3559
3848
  /**
3560
3849
  * DescribeDBDiagReportTasks请求参数结构体
3561
3850
  */
@@ -3657,55 +3946,29 @@ export interface SlowLogInfoItem {
3657
3946
  RowsSent?: number;
3658
3947
  }
3659
3948
  /**
3660
- * 安全审计日志导出任务信息
3949
+ * 无效索引
3661
3950
  */
3662
- export interface SecLogExportTaskInfo {
3663
- /**
3664
- * 异步任务Id。
3665
- */
3666
- AsyncRequestId: number;
3667
- /**
3668
- * 任务开始时间。
3669
- 注意:此字段可能返回 null,表示取不到有效值。
3670
- */
3671
- StartTime: string;
3672
- /**
3673
- * 任务结束时间。
3674
- 注意:此字段可能返回 null,表示取不到有效值。
3675
- */
3676
- EndTime: string;
3677
- /**
3678
- * 任务创建时间。
3679
- */
3680
- CreateTime: string;
3951
+ export interface IndexesToDrop {
3681
3952
  /**
3682
- * 任务状态。
3953
+ * 索引字符串。
3683
3954
  */
3684
- Status: string;
3955
+ IndexStr?: string;
3685
3956
  /**
3686
- * 任务执行进度。
3957
+ * 索引得分。
3687
3958
  */
3688
- Progress: number;
3959
+ Score?: number;
3689
3960
  /**
3690
- * 导出日志开始时间。
3691
- 注意:此字段可能返回 null,表示取不到有效值。
3961
+ * 无效原因。
3692
3962
  */
3693
- LogStartTime: string;
3963
+ Reason?: string;
3694
3964
  /**
3695
- * 导出日志结束时间。
3696
- 注意:此字段可能返回 null,表示取不到有效值。
3965
+ * 删除索引命令。
3697
3966
  */
3698
- LogEndTime: string;
3967
+ IndexCommand?: string;
3699
3968
  /**
3700
- * 日志文件总大小,单位KB。
3701
- 注意:此字段可能返回 null,表示取不到有效值。
3702
- */
3703
- TotalSize: number;
3704
- /**
3705
- * 风险等级列表。0 无风险;1 低风险;2 中风险;3 高风险。
3706
- 注意:此字段可能返回 null,表示取不到有效值。
3969
+ * 索引名。
3707
3970
  */
3708
- DangerLevels: Array<number | bigint>;
3971
+ IndexName?: string;
3709
3972
  }
3710
3973
  /**
3711
3974
  * DescribeHealthScore返回参数结构体
@@ -3721,13 +3984,17 @@ export interface DescribeHealthScoreResponse {
3721
3984
  RequestId?: string;
3722
3985
  }
3723
3986
  /**
3724
- * CloseAuditService返回参数结构体
3987
+ * DescribeSecurityAuditLogExportTasks返回参数结构体
3725
3988
  */
3726
- export interface CloseAuditServiceResponse {
3989
+ export interface DescribeSecurityAuditLogExportTasksResponse {
3727
3990
  /**
3728
- * 0-关闭审计成功,非0关闭审计失败。
3991
+ * 安全审计日志导出任务列表。
3729
3992
  */
3730
- TaskId?: number;
3993
+ Tasks: Array<SecLogExportTaskInfo>;
3994
+ /**
3995
+ * 安全审计日志导出任务总数。
3996
+ */
3997
+ TotalCount: number;
3731
3998
  /**
3732
3999
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3733
4000
  */
@@ -3847,25 +4114,37 @@ export interface DeleteSqlFiltersRequest {
3847
4114
  Product?: string;
3848
4115
  }
3849
4116
  /**
3850
- * DescribeUserSqlAdvice请求参数结构体
4117
+ * DescribeDiagDBInstances请求参数结构体
3851
4118
  */
3852
- export interface DescribeUserSqlAdviceRequest {
4119
+ export interface DescribeDiagDBInstancesRequest {
3853
4120
  /**
3854
- * 实例ID
4121
+ * 是否是DBbrain支持的实例,固定传 true
3855
4122
  */
3856
- InstanceId: string;
4123
+ IsSupported: boolean;
3857
4124
  /**
3858
- * SQL语句。
4125
+ * 服务产品类型,支持值包括:"mysql" - 云数据库 MySQL,"cynosdb" - 云数据库 TDSQL-C for MySQL,"dbbrain-mysql" - 自建 MySQL,默认为"mysql"。
3859
4126
  */
3860
- SqlText: string;
4127
+ Product: string;
3861
4128
  /**
3862
- * 库名。
4129
+ * 分页参数,偏移量。
3863
4130
  */
3864
- Schema?: string;
4131
+ Offset: number;
3865
4132
  /**
3866
- * 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL;"dbbrain-mysql" - 自建 MySQL,默认为"mysql"
4133
+ * 分页参数,分页值,最大值为100
3867
4134
  */
3868
- Product?: string;
4135
+ Limit: number;
4136
+ /**
4137
+ * 根据实例名称条件查询。
4138
+ */
4139
+ InstanceNames?: Array<string>;
4140
+ /**
4141
+ * 根据实例ID条件查询。
4142
+ */
4143
+ InstanceIds?: Array<string>;
4144
+ /**
4145
+ * 根据地域条件查询。
4146
+ */
4147
+ Regions?: Array<string>;
3869
4148
  }
3870
4149
  /**
3871
4150
  * 表结构。