tencentcloud-sdk-nodejs-cynosdb 4.0.372 → 4.0.375

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.
@@ -126,7 +126,7 @@ export interface ModifyMaintainPeriodConfigRequest {
126
126
  MaintainDuration: number
127
127
 
128
128
  /**
129
- * 每周维护日期
129
+ * 每周维护日期,日期取值范围[Mon, Tue, Wed, Thu, Fri, Sat, Sun]
130
130
  */
131
131
  MaintainWeekDays: Array<string>
132
132
  }
@@ -151,6 +151,16 @@ export interface DescribeRollbackTimeRangeResponse {
151
151
  RequestId?: string
152
152
  }
153
153
 
154
+ /**
155
+ * ModifyBackupName返回参数结构体
156
+ */
157
+ export interface ModifyBackupNameResponse {
158
+ /**
159
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
160
+ */
161
+ RequestId?: string
162
+ }
163
+
154
164
  /**
155
165
  * AssociateSecurityGroups请求参数结构体
156
166
  */
@@ -171,6 +181,21 @@ export interface AssociateSecurityGroupsRequest {
171
181
  Zone: string
172
182
  }
173
183
 
184
+ /**
185
+ * DescribeBinlogDownloadUrl请求参数结构体
186
+ */
187
+ export interface DescribeBinlogDownloadUrlRequest {
188
+ /**
189
+ * 集群ID
190
+ */
191
+ ClusterId: string
192
+
193
+ /**
194
+ * Binlog文件ID
195
+ */
196
+ BinlogId: number
197
+ }
198
+
174
199
  /**
175
200
  * CreateAccounts返回参数结构体
176
201
  */
@@ -236,6 +261,27 @@ export interface AccountParam {
236
261
  ParamValue: string
237
262
  }
238
263
 
264
+ /**
265
+ * DescribeBinlogs返回参数结构体
266
+ */
267
+ export interface DescribeBinlogsResponse {
268
+ /**
269
+ * 记录总条数
270
+ */
271
+ TotalCount: number
272
+
273
+ /**
274
+ * Binlog列表
275
+ 注意:此字段可能返回 null,表示取不到有效值。
276
+ */
277
+ Binlogs: Array<BinlogItem>
278
+
279
+ /**
280
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
281
+ */
282
+ RequestId?: string
283
+ }
284
+
239
285
  /**
240
286
  * DescribeInstances返回参数结构体
241
287
  */
@@ -332,9 +378,9 @@ export interface Account {
332
378
  }
333
379
 
334
380
  /**
335
- * ModifyBackupConfig返回参数结构体
381
+ * ModifyClusterName返回参数结构体
336
382
  */
337
- export interface ModifyBackupConfigResponse {
383
+ export interface ModifyClusterNameResponse {
338
384
  /**
339
385
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
340
386
  */
@@ -533,18 +579,63 @@ export interface CynosdbInstanceGrp {
533
579
  }
534
580
 
535
581
  /**
536
- * 集群绑定的标签信息,包含标签键TagKey和标签值TagValue
582
+ * 实例慢查询信息
537
583
  */
538
- export interface Tag {
584
+ export interface SlowQueriesItem {
539
585
  /**
540
- * 标签键
586
+ * 执行时间戳
541
587
  */
542
- TagKey: string
588
+ Timestamp: number
543
589
 
544
590
  /**
545
- * 标签值
591
+ * 执行时长,单位秒
546
592
  */
547
- TagValue: string
593
+ QueryTime: number
594
+
595
+ /**
596
+ * sql语句
597
+ */
598
+ SqlText: string
599
+
600
+ /**
601
+ * 客户端host
602
+ */
603
+ UserHost: string
604
+
605
+ /**
606
+ * 用户名
607
+ */
608
+ UserName: string
609
+
610
+ /**
611
+ * 数据库名
612
+ */
613
+ Database: string
614
+
615
+ /**
616
+ * 锁时长,单位秒
617
+ */
618
+ LockTime: number
619
+
620
+ /**
621
+ * 扫描行数
622
+ */
623
+ RowsExamined: number
624
+
625
+ /**
626
+ * 返回行数
627
+ */
628
+ RowsSent: number
629
+
630
+ /**
631
+ * sql模版
632
+ */
633
+ SqlTemplate: string
634
+
635
+ /**
636
+ * sql语句md5
637
+ */
638
+ SqlMd5: string
548
639
  }
549
640
 
550
641
  /**
@@ -720,7 +811,7 @@ export interface ModifyAccountParamsRequest {
720
811
  Account: InputAccount
721
812
 
722
813
  /**
723
- * 数据库表权限数组,当前仅支持参数:max_user_connections
814
+ * 数据库表权限数组,当前仅支持参数:max_user_connections,max_user_connections不能大于10240
724
815
  */
725
816
  AccountParams: Array<AccountParam>
726
817
  }
@@ -795,12 +886,26 @@ export interface IsolateInstanceRequest {
795
886
  InstanceIdList: Array<string>
796
887
 
797
888
  /**
798
- * 数据库类型,取值范围:
799
- <li> MYSQL </li>
800
- */
889
+ * 该参数已废弃
890
+ */
801
891
  DbType?: string
802
892
  }
803
893
 
894
+ /**
895
+ * ExportInstanceSlowQueries返回参数结构体
896
+ */
897
+ export interface ExportInstanceSlowQueriesResponse {
898
+ /**
899
+ * 慢查询导出内容
900
+ */
901
+ FileContent: string
902
+
903
+ /**
904
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
905
+ */
906
+ RequestId?: string
907
+ }
908
+
804
909
  /**
805
910
  * DescribeDBSecurityGroups请求参数结构体
806
911
  */
@@ -876,6 +981,21 @@ export interface DescribeClusterDetailRequest {
876
981
  ClusterId: string
877
982
  }
878
983
 
984
+ /**
985
+ * 集群绑定的标签信息,包含标签键TagKey和标签值TagValue
986
+ */
987
+ export interface Tag {
988
+ /**
989
+ * 标签键
990
+ */
991
+ TagKey: string
992
+
993
+ /**
994
+ * 标签值
995
+ */
996
+ TagValue: string
997
+ }
998
+
879
999
  /**
880
1000
  * DescribeProjectSecurityGroups返回参数结构体
881
1001
  */
@@ -991,6 +1111,41 @@ export interface BackupFileInfo {
991
1111
  SnapshotTime: string
992
1112
  }
993
1113
 
1114
+ /**
1115
+ * mysql表权限
1116
+ */
1117
+ export interface TablePrivileges {
1118
+ /**
1119
+ * 数据库名
1120
+ */
1121
+ Db: string
1122
+
1123
+ /**
1124
+ * 表名
1125
+ */
1126
+ TableName: string
1127
+
1128
+ /**
1129
+ * 权限列表
1130
+ */
1131
+ Privileges: Array<string>
1132
+ }
1133
+
1134
+ /**
1135
+ * DescribeBinlogDownloadUrl返回参数结构体
1136
+ */
1137
+ export interface DescribeBinlogDownloadUrlResponse {
1138
+ /**
1139
+ * 下载地址
1140
+ */
1141
+ DownloadUrl: string
1142
+
1143
+ /**
1144
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1145
+ */
1146
+ RequestId?: string
1147
+ }
1148
+
994
1149
  /**
995
1150
  * DescribeBackupList请求参数结构体
996
1151
  */
@@ -1734,6 +1889,21 @@ export interface SecurityGroup {
1734
1889
  SecurityGroupRemark: string
1735
1890
  }
1736
1891
 
1892
+ /**
1893
+ * DescribeBackupDownloadUrl请求参数结构体
1894
+ */
1895
+ export interface DescribeBackupDownloadUrlRequest {
1896
+ /**
1897
+ * 集群ID
1898
+ */
1899
+ ClusterId: string
1900
+
1901
+ /**
1902
+ * 备份ID
1903
+ */
1904
+ BackupId: number
1905
+ }
1906
+
1737
1907
  /**
1738
1908
  * 网络信息
1739
1909
  */
@@ -1819,6 +1989,26 @@ export interface DescribeRollbackTimeValidityResponse {
1819
1989
  RequestId?: string
1820
1990
  }
1821
1991
 
1992
+ /**
1993
+ * DescribeInstanceSlowQueries返回参数结构体
1994
+ */
1995
+ export interface DescribeInstanceSlowQueriesResponse {
1996
+ /**
1997
+ * 总条数
1998
+ */
1999
+ TotalCount: number
2000
+
2001
+ /**
2002
+ * 慢查询记录
2003
+ */
2004
+ SlowQueries: Array<SlowQueriesItem>
2005
+
2006
+ /**
2007
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2008
+ */
2009
+ RequestId?: string
2010
+ }
2011
+
1822
2012
  /**
1823
2013
  * GrantAccountPrivileges返回参数结构体
1824
2014
  */
@@ -1829,6 +2019,21 @@ export interface GrantAccountPrivilegesResponse {
1829
2019
  RequestId?: string
1830
2020
  }
1831
2021
 
2022
+ /**
2023
+ * DescribeBackupDownloadUrl返回参数结构体
2024
+ */
2025
+ export interface DescribeBackupDownloadUrlResponse {
2026
+ /**
2027
+ * 备份下载地址
2028
+ */
2029
+ DownloadUrl: string
2030
+
2031
+ /**
2032
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2033
+ */
2034
+ RequestId?: string
2035
+ }
2036
+
1832
2037
  /**
1833
2038
  * ResumeServerless请求参数结构体
1834
2039
  */
@@ -1855,9 +2060,9 @@ export interface BillingResourceInfo {
1855
2060
  }
1856
2061
 
1857
2062
  /**
1858
- * ModifyClusterName返回参数结构体
2063
+ * ModifyBackupConfig返回参数结构体
1859
2064
  */
1860
- export interface ModifyClusterNameResponse {
2065
+ export interface ModifyBackupConfigResponse {
1861
2066
  /**
1862
2067
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1863
2068
  */
@@ -1875,6 +2080,56 @@ export interface DescribeInstanceSpecsRequest {
1875
2080
  DbType: string
1876
2081
  }
1877
2082
 
2083
+ /**
2084
+ * ExportInstanceSlowQueries请求参数结构体
2085
+ */
2086
+ export interface ExportInstanceSlowQueriesRequest {
2087
+ /**
2088
+ * 实例ID
2089
+ */
2090
+ InstanceId: string
2091
+
2092
+ /**
2093
+ * 事务开始最早时间
2094
+ */
2095
+ StartTime?: string
2096
+
2097
+ /**
2098
+ * 事务开始最晚时间
2099
+ */
2100
+ EndTime?: string
2101
+
2102
+ /**
2103
+ * 限制条数
2104
+ */
2105
+ Limit?: number
2106
+
2107
+ /**
2108
+ * 偏移量
2109
+ */
2110
+ Offset?: number
2111
+
2112
+ /**
2113
+ * 用户名
2114
+ */
2115
+ Username?: string
2116
+
2117
+ /**
2118
+ * 客户端host
2119
+ */
2120
+ Host?: string
2121
+
2122
+ /**
2123
+ * 数据库名
2124
+ */
2125
+ Database?: string
2126
+
2127
+ /**
2128
+ * 文件类型,可选值:csv, original
2129
+ */
2130
+ FileType?: string
2131
+ }
2132
+
1878
2133
  /**
1879
2134
  * UpgradeInstance返回参数结构体
1880
2135
  */
@@ -2110,18 +2365,33 @@ pause
2110
2365
  }
2111
2366
 
2112
2367
  /**
2113
- * SetRenewFlag返回参数结构体
2368
+ * Binlog描述
2114
2369
  */
2115
- export interface SetRenewFlagResponse {
2370
+ export interface BinlogItem {
2116
2371
  /**
2117
- * 操作成功实例数
2372
+ * Binlog文件名称
2118
2373
  */
2119
- Count: number
2374
+ FileName: string
2120
2375
 
2121
2376
  /**
2122
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2377
+ * 文件大小,单位:字节
2123
2378
  */
2124
- RequestId?: string
2379
+ FileSize: number
2380
+
2381
+ /**
2382
+ * 事务最早时间
2383
+ */
2384
+ StartTime: string
2385
+
2386
+ /**
2387
+ * 事务最晚时间
2388
+ */
2389
+ FinishTime: string
2390
+
2391
+ /**
2392
+ * Binlog文件ID
2393
+ */
2394
+ BinlogId: number
2125
2395
  }
2126
2396
 
2127
2397
  /**
@@ -2189,6 +2459,21 @@ export interface InstanceSpec {
2189
2459
  MinStorageSize: number
2190
2460
  }
2191
2461
 
2462
+ /**
2463
+ * SetRenewFlag返回参数结构体
2464
+ */
2465
+ export interface SetRenewFlagResponse {
2466
+ /**
2467
+ * 操作成功实例数
2468
+ */
2469
+ Count: number
2470
+
2471
+ /**
2472
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2473
+ */
2474
+ RequestId?: string
2475
+ }
2476
+
2192
2477
  /**
2193
2478
  * DescribeClusterParamLogs请求参数结构体
2194
2479
  */
@@ -2234,7 +2519,7 @@ export interface UpgradeInstanceRequest {
2234
2519
  UpgradeType: string
2235
2520
 
2236
2521
  /**
2237
- * 存储上限,为0表示使用标准配置
2522
+ * 该参数已废弃
2238
2523
  */
2239
2524
  StorageLimit?: number
2240
2525
 
@@ -2244,9 +2529,8 @@ export interface UpgradeInstanceRequest {
2244
2529
  AutoVoucher?: number
2245
2530
 
2246
2531
  /**
2247
- * 数据库类型,取值范围:
2248
- <li> MYSQL </li>
2249
- */
2532
+ * 该参数已废弃
2533
+ */
2250
2534
  DbType?: string
2251
2535
 
2252
2536
  /**
@@ -2315,6 +2599,16 @@ export interface RollBackClusterResponse {
2315
2599
  RequestId?: string
2316
2600
  }
2317
2601
 
2602
+ /**
2603
+ * DescribeBinlogSaveDays请求参数结构体
2604
+ */
2605
+ export interface DescribeBinlogSaveDaysRequest {
2606
+ /**
2607
+ * 集群ID
2608
+ */
2609
+ ClusterId: string
2610
+ }
2611
+
2318
2612
  /**
2319
2613
  * DescribeClusterDetail返回参数结构体
2320
2614
  */
@@ -2375,9 +2669,8 @@ export interface IsolateClusterRequest {
2375
2669
  ClusterId: string
2376
2670
 
2377
2671
  /**
2378
- * 数据库类型,取值范围:
2379
- <li> MYSQL </li>
2380
- */
2672
+ * 该参数已废用
2673
+ */
2381
2674
  DbType?: string
2382
2675
  }
2383
2676
 
@@ -2421,22 +2714,22 @@ export interface AddInstancesRequest {
2421
2714
  Memory: number
2422
2715
 
2423
2716
  /**
2424
- * 新增只读实例数,取值范围为(0,16]
2717
+ * 新增只读实例数,取值范围为[0,4]
2425
2718
  */
2426
2719
  ReadOnlyCount: number
2427
2720
 
2428
2721
  /**
2429
- * 实例组ID,在已有RO组中新增实例时使用,不传则新增RO
2722
+ * 实例组ID,在已有RO组中新增实例时使用,不传则新增RO组。当前版本不建议传输该值。
2430
2723
  */
2431
2724
  InstanceGrpId?: string
2432
2725
 
2433
2726
  /**
2434
- * 所属VPC网络ID
2727
+ * 所属VPC网络ID,该参数已废弃
2435
2728
  */
2436
2729
  VpcId?: string
2437
2730
 
2438
2731
  /**
2439
- * 所属子网ID,如果设置了VpcId,则SubnetId必填
2732
+ * 所属子网ID,如果设置了VpcId,则SubnetId必填。该参数已废弃。
2440
2733
  */
2441
2734
  SubnetId?: string
2442
2735
 
@@ -2446,7 +2739,7 @@ export interface AddInstancesRequest {
2446
2739
  Port?: number
2447
2740
 
2448
2741
  /**
2449
- * 实例名称,字符串长度范围为[0,64)
2742
+ * 实例名称,字符串长度范围为[0,64),取值范围为大小写字母,0-9数字,'_','-','.'
2450
2743
  */
2451
2744
  InstanceName?: string
2452
2745
 
@@ -2910,23 +3203,38 @@ export interface DisassociateSecurityGroupsRequest {
2910
3203
  }
2911
3204
 
2912
3205
  /**
2913
- * mysql表权限
3206
+ * ModifyBackupName请求参数结构体
2914
3207
  */
2915
- export interface TablePrivileges {
3208
+ export interface ModifyBackupNameRequest {
2916
3209
  /**
2917
- * 数据库名
3210
+ * 集群ID
2918
3211
  */
2919
- Db: string
3212
+ ClusterId: string
2920
3213
 
2921
3214
  /**
2922
- * 表名
3215
+ * 备份文件ID
2923
3216
  */
2924
- TableName: string
3217
+ BackupId: number
2925
3218
 
2926
3219
  /**
2927
- * 权限列表
3220
+ * 备注名,长度不能超过60个字符
2928
3221
  */
2929
- Privileges: Array<string>
3222
+ BackupName: string
3223
+ }
3224
+
3225
+ /**
3226
+ * DescribeBinlogSaveDays返回参数结构体
3227
+ */
3228
+ export interface DescribeBinlogSaveDaysResponse {
3229
+ /**
3230
+ * Binlog保留天数
3231
+ */
3232
+ BinlogSaveDays: number
3233
+
3234
+ /**
3235
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3236
+ */
3237
+ RequestId?: string
2930
3238
  }
2931
3239
 
2932
3240
  /**
@@ -3119,21 +3427,106 @@ export interface ModifyBackupConfigRequest {
3119
3427
  BackupTimeEnd: number
3120
3428
 
3121
3429
  /**
3122
- * 表示保留备份时长, 单位秒,超过该时间将被清理, 七天表示为3600*24*7=604800
3430
+ * 表示保留备份时长, 单位秒,超过该时间将被清理, 七天表示为3600*24*7=604800,最大为158112000
3123
3431
  */
3124
3432
  ReserveDuration: number
3125
3433
 
3126
3434
  /**
3127
- * 备份频率,长度为7的数组,分别对应周一到周日的备份方式,full-全量备份,increment-增量备份
3435
+ * 该参数目前不支持修改,无需填写。备份频率,长度为7的数组,分别对应周一到周日的备份方式,full-全量备份,increment-增量备份
3128
3436
  */
3129
3437
  BackupFreq?: Array<string>
3130
3438
 
3131
3439
  /**
3132
- * 备份方式,logic-逻辑备份,snapshot-快照备份
3440
+ * 该参数目前不支持修改,无需填写。备份方式,logic-逻辑备份,snapshot-快照备份
3133
3441
  */
3134
3442
  BackupType?: string
3135
3443
  }
3136
3444
 
3445
+ /**
3446
+ * DescribeInstanceSlowQueries请求参数结构体
3447
+ */
3448
+ export interface DescribeInstanceSlowQueriesRequest {
3449
+ /**
3450
+ * 实例ID
3451
+ */
3452
+ InstanceId: string
3453
+
3454
+ /**
3455
+ * 事务开始最早时间
3456
+ */
3457
+ StartTime?: string
3458
+
3459
+ /**
3460
+ * 事务开始最晚时间
3461
+ */
3462
+ EndTime?: string
3463
+
3464
+ /**
3465
+ * 限制条数
3466
+ */
3467
+ Limit?: number
3468
+
3469
+ /**
3470
+ * 偏移量
3471
+ */
3472
+ Offset?: number
3473
+
3474
+ /**
3475
+ * 用户名
3476
+ */
3477
+ Username?: string
3478
+
3479
+ /**
3480
+ * 客户端host
3481
+ */
3482
+ Host?: string
3483
+
3484
+ /**
3485
+ * 数据库名
3486
+ */
3487
+ Database?: string
3488
+
3489
+ /**
3490
+ * 排序字段,可选值:QueryTime,LockTime,RowsExamined,RowsSent
3491
+ */
3492
+ OrderBy?: string
3493
+
3494
+ /**
3495
+ * 排序类型,可选值:asc,desc
3496
+ */
3497
+ OrderByType?: string
3498
+ }
3499
+
3500
+ /**
3501
+ * DescribeBinlogs请求参数结构体
3502
+ */
3503
+ export interface DescribeBinlogsRequest {
3504
+ /**
3505
+ * 集群ID
3506
+ */
3507
+ ClusterId: string
3508
+
3509
+ /**
3510
+ * 开始时间
3511
+ */
3512
+ StartTime?: string
3513
+
3514
+ /**
3515
+ * 结束时间
3516
+ */
3517
+ EndTime?: string
3518
+
3519
+ /**
3520
+ * 偏移量
3521
+ */
3522
+ Offset?: number
3523
+
3524
+ /**
3525
+ * 限制条数
3526
+ */
3527
+ Limit?: number
3528
+ }
3529
+
3137
3530
  /**
3138
3531
  * 账号,包含accountName和host
3139
3532
  */