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.
@@ -94,7 +94,7 @@ export interface ModifyMaintainPeriodConfigRequest {
94
94
  */
95
95
  MaintainDuration: number;
96
96
  /**
97
- * 每周维护日期
97
+ * 每周维护日期,日期取值范围[Mon, Tue, Wed, Thu, Fri, Sat, Sun]
98
98
  */
99
99
  MaintainWeekDays: Array<string>;
100
100
  }
@@ -115,6 +115,15 @@ export interface DescribeRollbackTimeRangeResponse {
115
115
  */
116
116
  RequestId?: string;
117
117
  }
118
+ /**
119
+ * ModifyBackupName返回参数结构体
120
+ */
121
+ export interface ModifyBackupNameResponse {
122
+ /**
123
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
124
+ */
125
+ RequestId?: string;
126
+ }
118
127
  /**
119
128
  * AssociateSecurityGroups请求参数结构体
120
129
  */
@@ -132,6 +141,19 @@ export interface AssociateSecurityGroupsRequest {
132
141
  */
133
142
  Zone: string;
134
143
  }
144
+ /**
145
+ * DescribeBinlogDownloadUrl请求参数结构体
146
+ */
147
+ export interface DescribeBinlogDownloadUrlRequest {
148
+ /**
149
+ * 集群ID
150
+ */
151
+ ClusterId: string;
152
+ /**
153
+ * Binlog文件ID
154
+ */
155
+ BinlogId: number;
156
+ }
135
157
  /**
136
158
  * CreateAccounts返回参数结构体
137
159
  */
@@ -189,6 +211,24 @@ export interface AccountParam {
189
211
  */
190
212
  ParamValue: string;
191
213
  }
214
+ /**
215
+ * DescribeBinlogs返回参数结构体
216
+ */
217
+ export interface DescribeBinlogsResponse {
218
+ /**
219
+ * 记录总条数
220
+ */
221
+ TotalCount: number;
222
+ /**
223
+ * Binlog列表
224
+ 注意:此字段可能返回 null,表示取不到有效值。
225
+ */
226
+ Binlogs: Array<BinlogItem>;
227
+ /**
228
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
229
+ */
230
+ RequestId?: string;
231
+ }
192
232
  /**
193
233
  * DescribeInstances返回参数结构体
194
234
  */
@@ -269,9 +309,9 @@ export interface Account {
269
309
  Host: string;
270
310
  }
271
311
  /**
272
- * ModifyBackupConfig返回参数结构体
312
+ * ModifyClusterName返回参数结构体
273
313
  */
274
- export interface ModifyBackupConfigResponse {
314
+ export interface ModifyClusterNameResponse {
275
315
  /**
276
316
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
277
317
  */
@@ -439,17 +479,53 @@ export interface CynosdbInstanceGrp {
439
479
  InstanceSet: Array<CynosdbInstance>;
440
480
  }
441
481
  /**
442
- * 集群绑定的标签信息,包含标签键TagKey和标签值TagValue
482
+ * 实例慢查询信息
443
483
  */
444
- export interface Tag {
484
+ export interface SlowQueriesItem {
445
485
  /**
446
- * 标签键
486
+ * 执行时间戳
447
487
  */
448
- TagKey: string;
488
+ Timestamp: number;
449
489
  /**
450
- * 标签值
490
+ * 执行时长,单位秒
451
491
  */
452
- TagValue: string;
492
+ QueryTime: number;
493
+ /**
494
+ * sql语句
495
+ */
496
+ SqlText: string;
497
+ /**
498
+ * 客户端host
499
+ */
500
+ UserHost: string;
501
+ /**
502
+ * 用户名
503
+ */
504
+ UserName: string;
505
+ /**
506
+ * 数据库名
507
+ */
508
+ Database: string;
509
+ /**
510
+ * 锁时长,单位秒
511
+ */
512
+ LockTime: number;
513
+ /**
514
+ * 扫描行数
515
+ */
516
+ RowsExamined: number;
517
+ /**
518
+ * 返回行数
519
+ */
520
+ RowsSent: number;
521
+ /**
522
+ * sql模版
523
+ */
524
+ SqlTemplate: string;
525
+ /**
526
+ * sql语句md5
527
+ */
528
+ SqlMd5: string;
453
529
  }
454
530
  /**
455
531
  * ActivateInstance请求参数结构体
@@ -600,7 +676,7 @@ export interface ModifyAccountParamsRequest {
600
676
  */
601
677
  Account: InputAccount;
602
678
  /**
603
- * 数据库表权限数组,当前仅支持参数:max_user_connections
679
+ * 数据库表权限数组,当前仅支持参数:max_user_connections,max_user_connections不能大于10240
604
680
  */
605
681
  AccountParams: Array<AccountParam>;
606
682
  }
@@ -665,11 +741,23 @@ export interface IsolateInstanceRequest {
665
741
  */
666
742
  InstanceIdList: Array<string>;
667
743
  /**
668
- * 数据库类型,取值范围:
669
- <li> MYSQL </li>
670
- */
744
+ * 该参数已废弃
745
+ */
671
746
  DbType?: string;
672
747
  }
748
+ /**
749
+ * ExportInstanceSlowQueries返回参数结构体
750
+ */
751
+ export interface ExportInstanceSlowQueriesResponse {
752
+ /**
753
+ * 慢查询导出内容
754
+ */
755
+ FileContent: string;
756
+ /**
757
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
758
+ */
759
+ RequestId?: string;
760
+ }
673
761
  /**
674
762
  * DescribeDBSecurityGroups请求参数结构体
675
763
  */
@@ -734,6 +822,19 @@ export interface DescribeClusterDetailRequest {
734
822
  */
735
823
  ClusterId: string;
736
824
  }
825
+ /**
826
+ * 集群绑定的标签信息,包含标签键TagKey和标签值TagValue
827
+ */
828
+ export interface Tag {
829
+ /**
830
+ * 标签键
831
+ */
832
+ TagKey: string;
833
+ /**
834
+ * 标签值
835
+ */
836
+ TagValue: string;
837
+ }
737
838
  /**
738
839
  * DescribeProjectSecurityGroups返回参数结构体
739
840
  */
@@ -831,6 +932,36 @@ export interface BackupFileInfo {
831
932
  */
832
933
  SnapshotTime: string;
833
934
  }
935
+ /**
936
+ * mysql表权限
937
+ */
938
+ export interface TablePrivileges {
939
+ /**
940
+ * 数据库名
941
+ */
942
+ Db: string;
943
+ /**
944
+ * 表名
945
+ */
946
+ TableName: string;
947
+ /**
948
+ * 权限列表
949
+ */
950
+ Privileges: Array<string>;
951
+ }
952
+ /**
953
+ * DescribeBinlogDownloadUrl返回参数结构体
954
+ */
955
+ export interface DescribeBinlogDownloadUrlResponse {
956
+ /**
957
+ * 下载地址
958
+ */
959
+ DownloadUrl: string;
960
+ /**
961
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
962
+ */
963
+ RequestId?: string;
964
+ }
834
965
  /**
835
966
  * DescribeBackupList请求参数结构体
836
967
  */
@@ -1447,6 +1578,19 @@ export interface SecurityGroup {
1447
1578
  */
1448
1579
  SecurityGroupRemark: string;
1449
1580
  }
1581
+ /**
1582
+ * DescribeBackupDownloadUrl请求参数结构体
1583
+ */
1584
+ export interface DescribeBackupDownloadUrlRequest {
1585
+ /**
1586
+ * 集群ID
1587
+ */
1588
+ ClusterId: string;
1589
+ /**
1590
+ * 备份ID
1591
+ */
1592
+ BackupId: number;
1593
+ }
1450
1594
  /**
1451
1595
  * 网络信息
1452
1596
  */
@@ -1520,6 +1664,23 @@ export interface DescribeRollbackTimeValidityResponse {
1520
1664
  */
1521
1665
  RequestId?: string;
1522
1666
  }
1667
+ /**
1668
+ * DescribeInstanceSlowQueries返回参数结构体
1669
+ */
1670
+ export interface DescribeInstanceSlowQueriesResponse {
1671
+ /**
1672
+ * 总条数
1673
+ */
1674
+ TotalCount: number;
1675
+ /**
1676
+ * 慢查询记录
1677
+ */
1678
+ SlowQueries: Array<SlowQueriesItem>;
1679
+ /**
1680
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1681
+ */
1682
+ RequestId?: string;
1683
+ }
1523
1684
  /**
1524
1685
  * GrantAccountPrivileges返回参数结构体
1525
1686
  */
@@ -1529,6 +1690,19 @@ export interface GrantAccountPrivilegesResponse {
1529
1690
  */
1530
1691
  RequestId?: string;
1531
1692
  }
1693
+ /**
1694
+ * DescribeBackupDownloadUrl返回参数结构体
1695
+ */
1696
+ export interface DescribeBackupDownloadUrlResponse {
1697
+ /**
1698
+ * 备份下载地址
1699
+ */
1700
+ DownloadUrl: string;
1701
+ /**
1702
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1703
+ */
1704
+ RequestId?: string;
1705
+ }
1532
1706
  /**
1533
1707
  * ResumeServerless请求参数结构体
1534
1708
  */
@@ -1552,9 +1726,9 @@ export interface BillingResourceInfo {
1552
1726
  InstanceIds: Array<string>;
1553
1727
  }
1554
1728
  /**
1555
- * ModifyClusterName返回参数结构体
1729
+ * ModifyBackupConfig返回参数结构体
1556
1730
  */
1557
- export interface ModifyClusterNameResponse {
1731
+ export interface ModifyBackupConfigResponse {
1558
1732
  /**
1559
1733
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1560
1734
  */
@@ -1570,6 +1744,47 @@ export interface DescribeInstanceSpecsRequest {
1570
1744
  */
1571
1745
  DbType: string;
1572
1746
  }
1747
+ /**
1748
+ * ExportInstanceSlowQueries请求参数结构体
1749
+ */
1750
+ export interface ExportInstanceSlowQueriesRequest {
1751
+ /**
1752
+ * 实例ID
1753
+ */
1754
+ InstanceId: string;
1755
+ /**
1756
+ * 事务开始最早时间
1757
+ */
1758
+ StartTime?: string;
1759
+ /**
1760
+ * 事务开始最晚时间
1761
+ */
1762
+ EndTime?: string;
1763
+ /**
1764
+ * 限制条数
1765
+ */
1766
+ Limit?: number;
1767
+ /**
1768
+ * 偏移量
1769
+ */
1770
+ Offset?: number;
1771
+ /**
1772
+ * 用户名
1773
+ */
1774
+ Username?: string;
1775
+ /**
1776
+ * 客户端host
1777
+ */
1778
+ Host?: string;
1779
+ /**
1780
+ * 数据库名
1781
+ */
1782
+ Database?: string;
1783
+ /**
1784
+ * 文件类型,可选值:csv, original
1785
+ */
1786
+ FileType?: string;
1787
+ }
1573
1788
  /**
1574
1789
  * UpgradeInstance返回参数结构体
1575
1790
  */
@@ -1764,17 +1979,29 @@ export interface CynosdbCluster {
1764
1979
  NetAddrs?: Array<NetAddr>;
1765
1980
  }
1766
1981
  /**
1767
- * SetRenewFlag返回参数结构体
1982
+ * Binlog描述
1768
1983
  */
1769
- export interface SetRenewFlagResponse {
1984
+ export interface BinlogItem {
1770
1985
  /**
1771
- * 操作成功实例数
1986
+ * Binlog文件名称
1772
1987
  */
1773
- Count: number;
1988
+ FileName: string;
1774
1989
  /**
1775
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1990
+ * 文件大小,单位:字节
1776
1991
  */
1777
- RequestId?: string;
1992
+ FileSize: number;
1993
+ /**
1994
+ * 事务最早时间
1995
+ */
1996
+ StartTime: string;
1997
+ /**
1998
+ * 事务最晚时间
1999
+ */
2000
+ FinishTime: string;
2001
+ /**
2002
+ * Binlog文件ID
2003
+ */
2004
+ BinlogId: number;
1778
2005
  }
1779
2006
  /**
1780
2007
  * OfflineCluster返回参数结构体
@@ -1831,6 +2058,19 @@ export interface InstanceSpec {
1831
2058
  */
1832
2059
  MinStorageSize: number;
1833
2060
  }
2061
+ /**
2062
+ * SetRenewFlag返回参数结构体
2063
+ */
2064
+ export interface SetRenewFlagResponse {
2065
+ /**
2066
+ * 操作成功实例数
2067
+ */
2068
+ Count: number;
2069
+ /**
2070
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2071
+ */
2072
+ RequestId?: string;
2073
+ }
1834
2074
  /**
1835
2075
  * DescribeClusterParamLogs请求参数结构体
1836
2076
  */
@@ -1869,7 +2109,7 @@ export interface UpgradeInstanceRequest {
1869
2109
  */
1870
2110
  UpgradeType: string;
1871
2111
  /**
1872
- * 存储上限,为0表示使用标准配置
2112
+ * 该参数已废弃
1873
2113
  */
1874
2114
  StorageLimit?: number;
1875
2115
  /**
@@ -1877,9 +2117,8 @@ export interface UpgradeInstanceRequest {
1877
2117
  */
1878
2118
  AutoVoucher?: number;
1879
2119
  /**
1880
- * 数据库类型,取值范围:
1881
- <li> MYSQL </li>
1882
- */
2120
+ * 该参数已废弃
2121
+ */
1883
2122
  DbType?: string;
1884
2123
  /**
1885
2124
  * 交易模式 0-下单并支付 1-下单
@@ -1937,6 +2176,15 @@ export interface RollBackClusterResponse {
1937
2176
  */
1938
2177
  RequestId?: string;
1939
2178
  }
2179
+ /**
2180
+ * DescribeBinlogSaveDays请求参数结构体
2181
+ */
2182
+ export interface DescribeBinlogSaveDaysRequest {
2183
+ /**
2184
+ * 集群ID
2185
+ */
2186
+ ClusterId: string;
2187
+ }
1940
2188
  /**
1941
2189
  * DescribeClusterDetail返回参数结构体
1942
2190
  */
@@ -1989,9 +2237,8 @@ export interface IsolateClusterRequest {
1989
2237
  */
1990
2238
  ClusterId: string;
1991
2239
  /**
1992
- * 数据库类型,取值范围:
1993
- <li> MYSQL </li>
1994
- */
2240
+ * 该参数已废用
2241
+ */
1995
2242
  DbType?: string;
1996
2243
  }
1997
2244
  /**
@@ -2028,19 +2275,19 @@ export interface AddInstancesRequest {
2028
2275
  */
2029
2276
  Memory: number;
2030
2277
  /**
2031
- * 新增只读实例数,取值范围为(0,16]
2278
+ * 新增只读实例数,取值范围为[0,4]
2032
2279
  */
2033
2280
  ReadOnlyCount: number;
2034
2281
  /**
2035
- * 实例组ID,在已有RO组中新增实例时使用,不传则新增RO
2282
+ * 实例组ID,在已有RO组中新增实例时使用,不传则新增RO组。当前版本不建议传输该值。
2036
2283
  */
2037
2284
  InstanceGrpId?: string;
2038
2285
  /**
2039
- * 所属VPC网络ID
2286
+ * 所属VPC网络ID,该参数已废弃
2040
2287
  */
2041
2288
  VpcId?: string;
2042
2289
  /**
2043
- * 所属子网ID,如果设置了VpcId,则SubnetId必填
2290
+ * 所属子网ID,如果设置了VpcId,则SubnetId必填。该参数已废弃。
2044
2291
  */
2045
2292
  SubnetId?: string;
2046
2293
  /**
@@ -2048,7 +2295,7 @@ export interface AddInstancesRequest {
2048
2295
  */
2049
2296
  Port?: number;
2050
2297
  /**
2051
- * 实例名称,字符串长度范围为[0,64)
2298
+ * 实例名称,字符串长度范围为[0,64),取值范围为大小写字母,0-9数字,'_','-','.'
2052
2299
  */
2053
2300
  InstanceName?: string;
2054
2301
  /**
@@ -2430,21 +2677,34 @@ export interface DisassociateSecurityGroupsRequest {
2430
2677
  Zone: string;
2431
2678
  }
2432
2679
  /**
2433
- * mysql表权限
2680
+ * ModifyBackupName请求参数结构体
2434
2681
  */
2435
- export interface TablePrivileges {
2682
+ export interface ModifyBackupNameRequest {
2436
2683
  /**
2437
- * 数据库名
2684
+ * 集群ID
2438
2685
  */
2439
- Db: string;
2686
+ ClusterId: string;
2440
2687
  /**
2441
- * 表名
2688
+ * 备份文件ID
2442
2689
  */
2443
- TableName: string;
2690
+ BackupId: number;
2444
2691
  /**
2445
- * 权限列表
2692
+ * 备注名,长度不能超过60个字符
2446
2693
  */
2447
- Privileges: Array<string>;
2694
+ BackupName: string;
2695
+ }
2696
+ /**
2697
+ * DescribeBinlogSaveDays返回参数结构体
2698
+ */
2699
+ export interface DescribeBinlogSaveDaysResponse {
2700
+ /**
2701
+ * Binlog保留天数
2702
+ */
2703
+ BinlogSaveDays: number;
2704
+ /**
2705
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2706
+ */
2707
+ RequestId?: string;
2448
2708
  }
2449
2709
  /**
2450
2710
  * ModifyClusterParam请求参数结构体
@@ -2608,18 +2868,88 @@ export interface ModifyBackupConfigRequest {
2608
2868
  */
2609
2869
  BackupTimeEnd: number;
2610
2870
  /**
2611
- * 表示保留备份时长, 单位秒,超过该时间将被清理, 七天表示为3600*24*7=604800
2871
+ * 表示保留备份时长, 单位秒,超过该时间将被清理, 七天表示为3600*24*7=604800,最大为158112000
2612
2872
  */
2613
2873
  ReserveDuration: number;
2614
2874
  /**
2615
- * 备份频率,长度为7的数组,分别对应周一到周日的备份方式,full-全量备份,increment-增量备份
2875
+ * 该参数目前不支持修改,无需填写。备份频率,长度为7的数组,分别对应周一到周日的备份方式,full-全量备份,increment-增量备份
2616
2876
  */
2617
2877
  BackupFreq?: Array<string>;
2618
2878
  /**
2619
- * 备份方式,logic-逻辑备份,snapshot-快照备份
2879
+ * 该参数目前不支持修改,无需填写。备份方式,logic-逻辑备份,snapshot-快照备份
2620
2880
  */
2621
2881
  BackupType?: string;
2622
2882
  }
2883
+ /**
2884
+ * DescribeInstanceSlowQueries请求参数结构体
2885
+ */
2886
+ export interface DescribeInstanceSlowQueriesRequest {
2887
+ /**
2888
+ * 实例ID
2889
+ */
2890
+ InstanceId: string;
2891
+ /**
2892
+ * 事务开始最早时间
2893
+ */
2894
+ StartTime?: string;
2895
+ /**
2896
+ * 事务开始最晚时间
2897
+ */
2898
+ EndTime?: string;
2899
+ /**
2900
+ * 限制条数
2901
+ */
2902
+ Limit?: number;
2903
+ /**
2904
+ * 偏移量
2905
+ */
2906
+ Offset?: number;
2907
+ /**
2908
+ * 用户名
2909
+ */
2910
+ Username?: string;
2911
+ /**
2912
+ * 客户端host
2913
+ */
2914
+ Host?: string;
2915
+ /**
2916
+ * 数据库名
2917
+ */
2918
+ Database?: string;
2919
+ /**
2920
+ * 排序字段,可选值:QueryTime,LockTime,RowsExamined,RowsSent
2921
+ */
2922
+ OrderBy?: string;
2923
+ /**
2924
+ * 排序类型,可选值:asc,desc
2925
+ */
2926
+ OrderByType?: string;
2927
+ }
2928
+ /**
2929
+ * DescribeBinlogs请求参数结构体
2930
+ */
2931
+ export interface DescribeBinlogsRequest {
2932
+ /**
2933
+ * 集群ID
2934
+ */
2935
+ ClusterId: string;
2936
+ /**
2937
+ * 开始时间
2938
+ */
2939
+ StartTime?: string;
2940
+ /**
2941
+ * 结束时间
2942
+ */
2943
+ EndTime?: string;
2944
+ /**
2945
+ * 偏移量
2946
+ */
2947
+ Offset?: number;
2948
+ /**
2949
+ * 限制条数
2950
+ */
2951
+ Limit?: number;
2952
+ }
2623
2953
  /**
2624
2954
  * 账号,包含accountName和host
2625
2955
  */