tencentcloud-sdk-nodejs-sqlserver 4.0.582 → 4.0.584

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.
@@ -604,6 +604,15 @@ export interface DescribeDBSecurityGroupsResponse {
604
604
  */
605
605
  RequestId?: string;
606
606
  }
607
+ /**
608
+ * StartInstanceXEvent返回参数结构体
609
+ */
610
+ export interface StartInstanceXEventResponse {
611
+ /**
612
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
613
+ */
614
+ RequestId?: string;
615
+ }
607
616
  /**
608
617
  * 迁移的进度详情类型
609
618
  */
@@ -1200,49 +1209,33 @@ export interface ModifyMaintenanceSpanResponse {
1200
1209
  RequestId?: string;
1201
1210
  }
1202
1211
  /**
1203
- * InquiryPriceCreateDBInstances请求参数结构体
1212
+ * DescribeXEvents请求参数结构体
1204
1213
  */
1205
- export interface InquiryPriceCreateDBInstancesRequest {
1206
- /**
1207
- * 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
1208
- */
1209
- Zone: string;
1210
- /**
1211
- * 内存大小,单位:GB
1212
- */
1213
- Memory: number;
1214
- /**
1215
- * 实例容量大小,单位:GB。
1216
- */
1217
- Storage: number;
1218
- /**
1219
- * 计费类型,取值支持 PREPAID,POSTPAID。
1220
- */
1221
- InstanceChargeType?: string;
1214
+ export interface DescribeXEventsRequest {
1222
1215
  /**
1223
- * 购买时长,单位:月。取值为1到48,默认为1
1216
+ * 实例ID
1224
1217
  */
1225
- Period?: number;
1218
+ InstanceId: string;
1226
1219
  /**
1227
- * 一次性购买的实例数量。取值1-100,默认取值为1
1220
+ * 事件类型,slow-慢SQL事件,blocked-阻塞事件,deadlock-死锁事件
1228
1221
  */
1229
- GoodsNum?: number;
1222
+ EventType: string;
1230
1223
  /**
1231
- * sqlserver版本,目前只支持:2008R2(SQL Server 2008 Enterprise),2012SP3(SQL Server 2012 Enterprise),2016SP1(SQL Server 2016 Enterprise),201602(SQL Server 2016 Standard)2017(SQL Server 2017 Enterprise)版本。默认为2008R2版本
1224
+ * 扩展文件生成开始时间
1232
1225
  */
1233
- DBVersion?: string;
1226
+ StartTime: string;
1234
1227
  /**
1235
- * 预购买实例的CPU核心数
1228
+ * 扩展文件生成结束时间
1236
1229
  */
1237
- Cpu?: number;
1230
+ EndTime: string;
1238
1231
  /**
1239
- * 购买实例的类型 HA-高可用型(包括双机高可用,alwaysOn集群),RO-只读副本,SI-基础版,默认取值HA
1232
+ * 分页返回,页编号,默认值为第0页
1240
1233
  */
1241
- InstanceType?: string;
1234
+ Offset?: number;
1242
1235
  /**
1243
- * 购买实例的宿主机类型,PM-物理机, CLOUD_PREMIUM-虚拟机高性能云盘,CLOUD_SSD-虚拟机SSD云盘,默认取值PM
1236
+ * 分页返回,每页返回的数目,取值为1~100,默认值为20
1244
1237
  */
1245
- MachineType?: string;
1238
+ Limit?: number;
1246
1239
  }
1247
1240
  /**
1248
1241
  * RenewPostpaidDBInstance请求参数结构体
@@ -1797,6 +1790,51 @@ export interface DBCreateInfo {
1797
1790
  */
1798
1791
  Remark?: string;
1799
1792
  }
1793
+ /**
1794
+ * InquiryPriceCreateDBInstances请求参数结构体
1795
+ */
1796
+ export interface InquiryPriceCreateDBInstancesRequest {
1797
+ /**
1798
+ * 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
1799
+ */
1800
+ Zone: string;
1801
+ /**
1802
+ * 内存大小,单位:GB
1803
+ */
1804
+ Memory: number;
1805
+ /**
1806
+ * 实例容量大小,单位:GB。
1807
+ */
1808
+ Storage: number;
1809
+ /**
1810
+ * 计费类型,取值支持 PREPAID,POSTPAID。
1811
+ */
1812
+ InstanceChargeType?: string;
1813
+ /**
1814
+ * 购买时长,单位:月。取值为1到48,默认为1
1815
+ */
1816
+ Period?: number;
1817
+ /**
1818
+ * 一次性购买的实例数量。取值1-100,默认取值为1
1819
+ */
1820
+ GoodsNum?: number;
1821
+ /**
1822
+ * sqlserver版本,目前只支持:2008R2(SQL Server 2008 Enterprise),2012SP3(SQL Server 2012 Enterprise),2016SP1(SQL Server 2016 Enterprise),201602(SQL Server 2016 Standard)2017(SQL Server 2017 Enterprise)版本。默认为2008R2版本
1823
+ */
1824
+ DBVersion?: string;
1825
+ /**
1826
+ * 预购买实例的CPU核心数
1827
+ */
1828
+ Cpu?: number;
1829
+ /**
1830
+ * 购买实例的类型 HA-高可用型(包括双机高可用,alwaysOn集群),RO-只读副本,SI-基础版,默认取值HA
1831
+ */
1832
+ InstanceType?: string;
1833
+ /**
1834
+ * 购买实例的宿主机类型,PM-物理机, CLOUD_PREMIUM-虚拟机高性能云盘,CLOUD_SSD-虚拟机SSD云盘,默认取值PM
1835
+ */
1836
+ MachineType?: string;
1837
+ }
1800
1838
  /**
1801
1839
  * ModifyMigration返回参数结构体
1802
1840
  */
@@ -1977,6 +2015,47 @@ export interface ModifyAccountRemarkResponse {
1977
2015
  */
1978
2016
  RequestId?: string;
1979
2017
  }
2018
+ /**
2019
+ * 实例扩展事件详情
2020
+ */
2021
+ export interface Events {
2022
+ /**
2023
+ * ID
2024
+ */
2025
+ Id?: number;
2026
+ /**
2027
+ * 扩展事件文件名称
2028
+ */
2029
+ FileName?: string;
2030
+ /**
2031
+ * 扩展事件文件大小
2032
+ */
2033
+ Size?: number;
2034
+ /**
2035
+ * 事件类型,slow-慢SQL事件,blocked-阻塞事件,deadlock-死锁事件
2036
+ */
2037
+ EventType?: string;
2038
+ /**
2039
+ * 事件记录状态,1-成功,2-失败
2040
+ */
2041
+ Status?: number;
2042
+ /**
2043
+ * 扩展文件生成开始时间
2044
+ */
2045
+ StartTime?: string;
2046
+ /**
2047
+ * 扩展文件生成开始时间
2048
+ */
2049
+ EndTime?: string;
2050
+ /**
2051
+ * 内网下载地址
2052
+ */
2053
+ InternalAddr?: string;
2054
+ /**
2055
+ * 外网下载地址
2056
+ */
2057
+ ExternalAddr?: string;
2058
+ }
1980
2059
  /**
1981
2060
  * DescribeMigrations返回参数结构体
1982
2061
  */
@@ -2466,6 +2545,23 @@ export interface StartIncrementalMigrationRequest {
2466
2545
  */
2467
2546
  IncrementalMigrationId: string;
2468
2547
  }
2548
+ /**
2549
+ * DescribeXEvents返回参数结构体
2550
+ */
2551
+ export interface DescribeXEventsResponse {
2552
+ /**
2553
+ * 扩展事件列表
2554
+ */
2555
+ Events?: Array<Events>;
2556
+ /**
2557
+ * 扩展事件总数量
2558
+ */
2559
+ TotalCount?: number;
2560
+ /**
2561
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2562
+ */
2563
+ RequestId?: string;
2564
+ }
2469
2565
  /**
2470
2566
  * DescribeDBsNormal返回参数结构体
2471
2567
  */
@@ -2810,6 +2906,19 @@ export interface CreateDBRequest {
2810
2906
  */
2811
2907
  DBs: Array<DBCreateInfo>;
2812
2908
  }
2909
+ /**
2910
+ * 设置实例扩展事件阈值
2911
+ */
2912
+ export interface EventConfig {
2913
+ /**
2914
+ * 事件类型,slow-设置慢SQL阈值,blocked-设置阻塞、死锁阈值
2915
+ */
2916
+ EventType: string;
2917
+ /**
2918
+ * 阈值,单位毫秒。0表示关闭,大于0表示开启
2919
+ */
2920
+ Threshold: number;
2921
+ }
2813
2922
  /**
2814
2923
  * ModifyDBInstanceSecurityGroups返回参数结构体
2815
2924
  */
@@ -3881,6 +3990,47 @@ export interface ModifyDBInstanceRenewFlagRequest {
3881
3990
  */
3882
3991
  RenewFlags: Array<InstanceRenewInfo>;
3883
3992
  }
3993
+ /**
3994
+ * DescribeDBInstancesAttribute返回参数结构体
3995
+ */
3996
+ export interface DescribeDBInstancesAttributeResponse {
3997
+ /**
3998
+ * 实例ID
3999
+ */
4000
+ InstanceId?: string;
4001
+ /**
4002
+ * 定期备份状态 enable-开启,disable-关闭
4003
+ */
4004
+ RegularBackupEnable?: string;
4005
+ /**
4006
+ * 定期备份保留天数 [90 - 3650]天
4007
+ */
4008
+ RegularBackupSaveDays?: number;
4009
+ /**
4010
+ * 定期备份策略 years-每年,quarters-每季度,months-每月
4011
+ */
4012
+ RegularBackupStrategy?: string;
4013
+ /**
4014
+ * 定期备份保留个数
4015
+ */
4016
+ RegularBackupCounts?: number;
4017
+ /**
4018
+ * 定期备份开始日期,格式-YYYY-MM-DD 默认当前日期
4019
+ */
4020
+ RegularBackupStartTime?: string;
4021
+ /**
4022
+ * 阻塞进程阈值,单位毫秒
4023
+ */
4024
+ BlockedThreshold?: number;
4025
+ /**
4026
+ * 慢SQL、阻塞、死锁扩展事件文件保留时长
4027
+ */
4028
+ EventSaveDays?: number;
4029
+ /**
4030
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4031
+ */
4032
+ RequestId?: string;
4033
+ }
3884
4034
  /**
3885
4035
  * 备份文件详细信息
3886
4036
  */
@@ -4378,6 +4528,19 @@ export interface RenewDBInstanceResponse {
4378
4528
  */
4379
4529
  RequestId?: string;
4380
4530
  }
4531
+ /**
4532
+ * StartInstanceXEvent请求参数结构体
4533
+ */
4534
+ export interface StartInstanceXEventRequest {
4535
+ /**
4536
+ * 实例ID
4537
+ */
4538
+ InstanceId: string;
4539
+ /**
4540
+ * 开启、关闭扩展事件
4541
+ */
4542
+ EventConfig: Array<EventConfig>;
4543
+ }
4381
4544
  /**
4382
4545
  * 账号的数据库权限信息
4383
4546
  */
@@ -5434,6 +5597,15 @@ export interface DeleteDBInstanceResponse {
5434
5597
  */
5435
5598
  RequestId?: string;
5436
5599
  }
5600
+ /**
5601
+ * DescribeDBInstancesAttribute请求参数结构体
5602
+ */
5603
+ export interface DescribeDBInstancesAttributeRequest {
5604
+ /**
5605
+ * 实例ID
5606
+ */
5607
+ InstanceId: string;
5608
+ }
5437
5609
  /**
5438
5610
  * RestoreInstance返回参数结构体
5439
5611
  */