tencentcloud-sdk-nodejs-intl-en 3.0.356 → 3.0.360
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/package.json +1 -1
- package/tencentcloud/cbs/v20170312/cbs_client.js +5 -4
- package/tencentcloud/cbs/v20170312/models.js +209 -140
- package/tencentcloud/cdb/v20170320/cdb_client.js +28 -41
- package/tencentcloud/cdb/v20170320/models.js +204 -238
- package/tencentcloud/chdfs/v20201112/models.js +65 -5
- package/tencentcloud/clb/v20180317/clb_client.js +27 -1
- package/tencentcloud/clb/v20180317/models.js +338 -31
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/dbbrain/v20210527/dbbrain_client.js +15 -2
- package/tencentcloud/dbbrain/v20210527/models.js +179 -64
- package/tencentcloud/tke/v20180525/models.js +8 -1
|
@@ -25,6 +25,7 @@ const ScoreItem = models.ScoreItem;
|
|
|
25
25
|
const InstanceConfs = models.InstanceConfs;
|
|
26
26
|
const CreateSecurityAuditLogExportTaskRequest = models.CreateSecurityAuditLogExportTaskRequest;
|
|
27
27
|
const DescribeDBDiagEventResponse = models.DescribeDBDiagEventResponse;
|
|
28
|
+
const DescribeDBDiagEventsResponse = models.DescribeDBDiagEventsResponse;
|
|
28
29
|
const DescribeDBDiagReportTasksResponse = models.DescribeDBDiagReportTasksResponse;
|
|
29
30
|
const AddUserContactResponse = models.AddUserContactResponse;
|
|
30
31
|
const ModifyDiagDBInstanceConfResponse = models.ModifyDiagDBInstanceConfResponse;
|
|
@@ -40,12 +41,12 @@ const DescribeDBSpaceStatusRequest = models.DescribeDBSpaceStatusRequest;
|
|
|
40
41
|
const TimeSlice = models.TimeSlice;
|
|
41
42
|
const ModifyDiagDBInstanceConfRequest = models.ModifyDiagDBInstanceConfRequest;
|
|
42
43
|
const DescribeSecurityAuditLogDownloadUrlsRequest = models.DescribeSecurityAuditLogDownloadUrlsRequest;
|
|
43
|
-
const
|
|
44
|
+
const MySqlProcess = models.MySqlProcess;
|
|
44
45
|
const CreateMailProfileResponse = models.CreateMailProfileResponse;
|
|
45
46
|
const DescribeSlowLogTimeSeriesStatsRequest = models.DescribeSlowLogTimeSeriesStatsRequest;
|
|
46
47
|
const CreateDBDiagReportUrlResponse = models.CreateDBDiagReportUrlResponse;
|
|
47
48
|
const DescribeDBDiagHistoryRequest = models.DescribeDBDiagHistoryRequest;
|
|
48
|
-
const
|
|
49
|
+
const CreateDBDiagReportTaskResponse = models.CreateDBDiagReportTaskResponse;
|
|
49
50
|
const DiagHistoryEventItem = models.DiagHistoryEventItem;
|
|
50
51
|
const SlowLogHost = models.SlowLogHost;
|
|
51
52
|
const CreateMailProfileRequest = models.CreateMailProfileRequest;
|
|
@@ -92,6 +93,7 @@ const MonitorFloatMetric = models.MonitorFloatMetric;
|
|
|
92
93
|
const DescribeAllUserGroupResponse = models.DescribeAllUserGroupResponse;
|
|
93
94
|
const DescribeUserSqlAdviceResponse = models.DescribeUserSqlAdviceResponse;
|
|
94
95
|
const DescribeDBSpaceStatusResponse = models.DescribeDBSpaceStatusResponse;
|
|
96
|
+
const DescribeDBDiagEventsRequest = models.DescribeDBDiagEventsRequest;
|
|
95
97
|
const GroupItem = models.GroupItem;
|
|
96
98
|
const DescribeTopSpaceTableTimeSeriesRequest = models.DescribeTopSpaceTableTimeSeriesRequest;
|
|
97
99
|
const DescribeDBDiagReportTasksRequest = models.DescribeDBDiagReportTasksRequest;
|
|
@@ -193,6 +195,17 @@ class DbbrainClient extends AbstractClient {
|
|
|
193
195
|
this.request("DescribeAllUserGroup", req, resp, cb);
|
|
194
196
|
}
|
|
195
197
|
|
|
198
|
+
/**
|
|
199
|
+
* This API is used to obtain the diagnosis event list in a specified time period by risk level, instance ID, etc.
|
|
200
|
+
* @param {DescribeDBDiagEventsRequest} req
|
|
201
|
+
* @param {function(string, DescribeDBDiagEventsResponse):void} cb
|
|
202
|
+
* @public
|
|
203
|
+
*/
|
|
204
|
+
DescribeDBDiagEvents(req, cb) {
|
|
205
|
+
let resp = new DescribeDBDiagEventsResponse();
|
|
206
|
+
this.request("DescribeDBDiagEvents", req, resp, cb);
|
|
207
|
+
}
|
|
208
|
+
|
|
196
209
|
/**
|
|
197
210
|
* This API is used to get the slow log statistics histogram.
|
|
198
211
|
* @param {DescribeSlowLogTimeSeriesStatsRequest} req
|
|
@@ -569,6 +569,56 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
|
|
572
|
+
/**
|
|
573
|
+
* DescribeDBDiagEvents response structure.
|
|
574
|
+
* @class
|
|
575
|
+
*/
|
|
576
|
+
class DescribeDBDiagEventsResponse extends AbstractModel {
|
|
577
|
+
constructor(){
|
|
578
|
+
super();
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* Total number of diagnosis events.
|
|
582
|
+
* @type {number || null}
|
|
583
|
+
*/
|
|
584
|
+
this.TotalCount = null;
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Diagnosis event list.
|
|
588
|
+
* @type {Array.<DiagHistoryEventItem> || null}
|
|
589
|
+
*/
|
|
590
|
+
this.Items = null;
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
594
|
+
* @type {string || null}
|
|
595
|
+
*/
|
|
596
|
+
this.RequestId = null;
|
|
597
|
+
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* @private
|
|
602
|
+
*/
|
|
603
|
+
deserialize(params) {
|
|
604
|
+
if (!params) {
|
|
605
|
+
return;
|
|
606
|
+
}
|
|
607
|
+
this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
|
|
608
|
+
|
|
609
|
+
if (params.Items) {
|
|
610
|
+
this.Items = new Array();
|
|
611
|
+
for (let z in params.Items) {
|
|
612
|
+
let obj = new DiagHistoryEventItem();
|
|
613
|
+
obj.deserialize(params.Items[z]);
|
|
614
|
+
this.Items.push(obj);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
618
|
+
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
|
|
572
622
|
/**
|
|
573
623
|
* DescribeDBDiagReportTasks response structure.
|
|
574
624
|
* @class
|
|
@@ -1392,25 +1442,60 @@ class DescribeSecurityAuditLogDownloadUrlsRequest extends AbstractModel {
|
|
|
1392
1442
|
}
|
|
1393
1443
|
|
|
1394
1444
|
/**
|
|
1395
|
-
*
|
|
1445
|
+
* Relational database thread
|
|
1396
1446
|
* @class
|
|
1397
1447
|
*/
|
|
1398
|
-
class
|
|
1448
|
+
class MySqlProcess extends AbstractModel {
|
|
1399
1449
|
constructor(){
|
|
1400
1450
|
super();
|
|
1401
1451
|
|
|
1402
1452
|
/**
|
|
1403
|
-
*
|
|
1404
|
-
|
|
1405
|
-
* @type {number || null}
|
|
1453
|
+
* Thread ID.
|
|
1454
|
+
* @type {string || null}
|
|
1406
1455
|
*/
|
|
1407
|
-
this.
|
|
1456
|
+
this.ID = null;
|
|
1408
1457
|
|
|
1409
1458
|
/**
|
|
1410
|
-
*
|
|
1459
|
+
* Thread operation account name.
|
|
1411
1460
|
* @type {string || null}
|
|
1412
1461
|
*/
|
|
1413
|
-
this.
|
|
1462
|
+
this.User = null;
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* Thread operation host address.
|
|
1466
|
+
* @type {string || null}
|
|
1467
|
+
*/
|
|
1468
|
+
this.Host = null;
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* Thread operation database.
|
|
1472
|
+
* @type {string || null}
|
|
1473
|
+
*/
|
|
1474
|
+
this.DB = null;
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* Thread operation status.
|
|
1478
|
+
* @type {string || null}
|
|
1479
|
+
*/
|
|
1480
|
+
this.State = null;
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* Thread execution type.
|
|
1484
|
+
* @type {string || null}
|
|
1485
|
+
*/
|
|
1486
|
+
this.Command = null;
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* Thread operation duration in seconds.
|
|
1490
|
+
* @type {string || null}
|
|
1491
|
+
*/
|
|
1492
|
+
this.Time = null;
|
|
1493
|
+
|
|
1494
|
+
/**
|
|
1495
|
+
* Thread operation statement.
|
|
1496
|
+
* @type {string || null}
|
|
1497
|
+
*/
|
|
1498
|
+
this.Info = null;
|
|
1414
1499
|
|
|
1415
1500
|
}
|
|
1416
1501
|
|
|
@@ -1421,8 +1506,14 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1421
1506
|
if (!params) {
|
|
1422
1507
|
return;
|
|
1423
1508
|
}
|
|
1424
|
-
this.
|
|
1425
|
-
this.
|
|
1509
|
+
this.ID = 'ID' in params ? params.ID : null;
|
|
1510
|
+
this.User = 'User' in params ? params.User : null;
|
|
1511
|
+
this.Host = 'Host' in params ? params.Host : null;
|
|
1512
|
+
this.DB = 'DB' in params ? params.DB : null;
|
|
1513
|
+
this.State = 'State' in params ? params.State : null;
|
|
1514
|
+
this.Command = 'Command' in params ? params.Command : null;
|
|
1515
|
+
this.Time = 'Time' in params ? params.Time : null;
|
|
1516
|
+
this.Info = 'Info' in params ? params.Info : null;
|
|
1426
1517
|
|
|
1427
1518
|
}
|
|
1428
1519
|
}
|
|
@@ -1596,60 +1687,25 @@ class DescribeDBDiagHistoryRequest extends AbstractModel {
|
|
|
1596
1687
|
}
|
|
1597
1688
|
|
|
1598
1689
|
/**
|
|
1599
|
-
*
|
|
1690
|
+
* CreateDBDiagReportTask response structure.
|
|
1600
1691
|
* @class
|
|
1601
1692
|
*/
|
|
1602
|
-
class
|
|
1693
|
+
class CreateDBDiagReportTaskResponse extends AbstractModel {
|
|
1603
1694
|
constructor(){
|
|
1604
1695
|
super();
|
|
1605
1696
|
|
|
1606
1697
|
/**
|
|
1607
|
-
*
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
this.ID = null;
|
|
1611
|
-
|
|
1612
|
-
/**
|
|
1613
|
-
* Thread operation account name.
|
|
1614
|
-
* @type {string || null}
|
|
1615
|
-
*/
|
|
1616
|
-
this.User = null;
|
|
1617
|
-
|
|
1618
|
-
/**
|
|
1619
|
-
* Thread operation host address.
|
|
1620
|
-
* @type {string || null}
|
|
1621
|
-
*/
|
|
1622
|
-
this.Host = null;
|
|
1623
|
-
|
|
1624
|
-
/**
|
|
1625
|
-
* Thread operation database.
|
|
1626
|
-
* @type {string || null}
|
|
1627
|
-
*/
|
|
1628
|
-
this.DB = null;
|
|
1629
|
-
|
|
1630
|
-
/**
|
|
1631
|
-
* Thread operation status.
|
|
1632
|
-
* @type {string || null}
|
|
1633
|
-
*/
|
|
1634
|
-
this.State = null;
|
|
1635
|
-
|
|
1636
|
-
/**
|
|
1637
|
-
* Thread execution type.
|
|
1638
|
-
* @type {string || null}
|
|
1639
|
-
*/
|
|
1640
|
-
this.Command = null;
|
|
1641
|
-
|
|
1642
|
-
/**
|
|
1643
|
-
* Thread operation duration in seconds.
|
|
1644
|
-
* @type {string || null}
|
|
1698
|
+
* Async task request ID, which can be used to query the execution result of an async task.
|
|
1699
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
1700
|
+
* @type {number || null}
|
|
1645
1701
|
*/
|
|
1646
|
-
this.
|
|
1702
|
+
this.AsyncRequestId = null;
|
|
1647
1703
|
|
|
1648
1704
|
/**
|
|
1649
|
-
*
|
|
1705
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
1650
1706
|
* @type {string || null}
|
|
1651
1707
|
*/
|
|
1652
|
-
this.
|
|
1708
|
+
this.RequestId = null;
|
|
1653
1709
|
|
|
1654
1710
|
}
|
|
1655
1711
|
|
|
@@ -1660,14 +1716,8 @@ class MySqlProcess extends AbstractModel {
|
|
|
1660
1716
|
if (!params) {
|
|
1661
1717
|
return;
|
|
1662
1718
|
}
|
|
1663
|
-
this.
|
|
1664
|
-
this.
|
|
1665
|
-
this.Host = 'Host' in params ? params.Host : null;
|
|
1666
|
-
this.DB = 'DB' in params ? params.DB : null;
|
|
1667
|
-
this.State = 'State' in params ? params.State : null;
|
|
1668
|
-
this.Command = 'Command' in params ? params.Command : null;
|
|
1669
|
-
this.Time = 'Time' in params ? params.Time : null;
|
|
1670
|
-
this.Info = 'Info' in params ? params.Info : null;
|
|
1719
|
+
this.AsyncRequestId = 'AsyncRequestId' in params ? params.AsyncRequestId : null;
|
|
1720
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
1671
1721
|
|
|
1672
1722
|
}
|
|
1673
1723
|
}
|
|
@@ -3542,7 +3592,7 @@ class DescribeSlowLogTopSqlsRequest extends AbstractModel {
|
|
|
3542
3592
|
this.StartTime = null;
|
|
3543
3593
|
|
|
3544
3594
|
/**
|
|
3545
|
-
* End time
|
|
3595
|
+
* End time in the format of "2019-09-11 10:13:14". The interval between the end time and the start time can be up to 7 days.
|
|
3546
3596
|
* @type {string || null}
|
|
3547
3597
|
*/
|
|
3548
3598
|
this.EndTime = null;
|
|
@@ -4307,6 +4357,69 @@ class DescribeDBSpaceStatusResponse extends AbstractModel {
|
|
|
4307
4357
|
}
|
|
4308
4358
|
}
|
|
4309
4359
|
|
|
4360
|
+
/**
|
|
4361
|
+
* DescribeDBDiagEvents request structure.
|
|
4362
|
+
* @class
|
|
4363
|
+
*/
|
|
4364
|
+
class DescribeDBDiagEventsRequest extends AbstractModel {
|
|
4365
|
+
constructor(){
|
|
4366
|
+
super();
|
|
4367
|
+
|
|
4368
|
+
/**
|
|
4369
|
+
* Start time in the format of “2021-05-27 00:00:00”. The earliest time that can be queried is 30 days before the current time.
|
|
4370
|
+
* @type {string || null}
|
|
4371
|
+
*/
|
|
4372
|
+
this.StartTime = null;
|
|
4373
|
+
|
|
4374
|
+
/**
|
|
4375
|
+
* End time in the format of "2021-05-27 01:00:00". The interval between the end time and the start time can be up to 7 days.
|
|
4376
|
+
* @type {string || null}
|
|
4377
|
+
*/
|
|
4378
|
+
this.EndTime = null;
|
|
4379
|
+
|
|
4380
|
+
/**
|
|
4381
|
+
* Risk level list. Valid values in descending order of severity: `1` (critical), `2` (serious), `3` (alarm), `4` (warning), `5` (healthy).
|
|
4382
|
+
* @type {Array.<number> || null}
|
|
4383
|
+
*/
|
|
4384
|
+
this.Severities = null;
|
|
4385
|
+
|
|
4386
|
+
/**
|
|
4387
|
+
* Instance ID list.
|
|
4388
|
+
* @type {Array.<string> || null}
|
|
4389
|
+
*/
|
|
4390
|
+
this.InstanceIds = null;
|
|
4391
|
+
|
|
4392
|
+
/**
|
|
4393
|
+
* Offset. Default value: 0.
|
|
4394
|
+
* @type {number || null}
|
|
4395
|
+
*/
|
|
4396
|
+
this.Offset = null;
|
|
4397
|
+
|
|
4398
|
+
/**
|
|
4399
|
+
* Number of returned results. Default value: 20. Maximum value: 50.
|
|
4400
|
+
* @type {number || null}
|
|
4401
|
+
*/
|
|
4402
|
+
this.Limit = null;
|
|
4403
|
+
|
|
4404
|
+
}
|
|
4405
|
+
|
|
4406
|
+
/**
|
|
4407
|
+
* @private
|
|
4408
|
+
*/
|
|
4409
|
+
deserialize(params) {
|
|
4410
|
+
if (!params) {
|
|
4411
|
+
return;
|
|
4412
|
+
}
|
|
4413
|
+
this.StartTime = 'StartTime' in params ? params.StartTime : null;
|
|
4414
|
+
this.EndTime = 'EndTime' in params ? params.EndTime : null;
|
|
4415
|
+
this.Severities = 'Severities' in params ? params.Severities : null;
|
|
4416
|
+
this.InstanceIds = 'InstanceIds' in params ? params.InstanceIds : null;
|
|
4417
|
+
this.Offset = 'Offset' in params ? params.Offset : null;
|
|
4418
|
+
this.Limit = 'Limit' in params ? params.Limit : null;
|
|
4419
|
+
|
|
4420
|
+
}
|
|
4421
|
+
}
|
|
4422
|
+
|
|
4310
4423
|
/**
|
|
4311
4424
|
* Describes the group information.
|
|
4312
4425
|
* @class
|
|
@@ -5010,6 +5123,7 @@ module.exports = {
|
|
|
5010
5123
|
InstanceConfs: InstanceConfs,
|
|
5011
5124
|
CreateSecurityAuditLogExportTaskRequest: CreateSecurityAuditLogExportTaskRequest,
|
|
5012
5125
|
DescribeDBDiagEventResponse: DescribeDBDiagEventResponse,
|
|
5126
|
+
DescribeDBDiagEventsResponse: DescribeDBDiagEventsResponse,
|
|
5013
5127
|
DescribeDBDiagReportTasksResponse: DescribeDBDiagReportTasksResponse,
|
|
5014
5128
|
AddUserContactResponse: AddUserContactResponse,
|
|
5015
5129
|
ModifyDiagDBInstanceConfResponse: ModifyDiagDBInstanceConfResponse,
|
|
@@ -5025,12 +5139,12 @@ module.exports = {
|
|
|
5025
5139
|
TimeSlice: TimeSlice,
|
|
5026
5140
|
ModifyDiagDBInstanceConfRequest: ModifyDiagDBInstanceConfRequest,
|
|
5027
5141
|
DescribeSecurityAuditLogDownloadUrlsRequest: DescribeSecurityAuditLogDownloadUrlsRequest,
|
|
5028
|
-
|
|
5142
|
+
MySqlProcess: MySqlProcess,
|
|
5029
5143
|
CreateMailProfileResponse: CreateMailProfileResponse,
|
|
5030
5144
|
DescribeSlowLogTimeSeriesStatsRequest: DescribeSlowLogTimeSeriesStatsRequest,
|
|
5031
5145
|
CreateDBDiagReportUrlResponse: CreateDBDiagReportUrlResponse,
|
|
5032
5146
|
DescribeDBDiagHistoryRequest: DescribeDBDiagHistoryRequest,
|
|
5033
|
-
|
|
5147
|
+
CreateDBDiagReportTaskResponse: CreateDBDiagReportTaskResponse,
|
|
5034
5148
|
DiagHistoryEventItem: DiagHistoryEventItem,
|
|
5035
5149
|
SlowLogHost: SlowLogHost,
|
|
5036
5150
|
CreateMailProfileRequest: CreateMailProfileRequest,
|
|
@@ -5077,6 +5191,7 @@ module.exports = {
|
|
|
5077
5191
|
DescribeAllUserGroupResponse: DescribeAllUserGroupResponse,
|
|
5078
5192
|
DescribeUserSqlAdviceResponse: DescribeUserSqlAdviceResponse,
|
|
5079
5193
|
DescribeDBSpaceStatusResponse: DescribeDBSpaceStatusResponse,
|
|
5194
|
+
DescribeDBDiagEventsRequest: DescribeDBDiagEventsRequest,
|
|
5080
5195
|
GroupItem: GroupItem,
|
|
5081
5196
|
DescribeTopSpaceTableTimeSeriesRequest: DescribeTopSpaceTableTimeSeriesRequest,
|
|
5082
5197
|
DescribeDBDiagReportTasksRequest: DescribeDBDiagReportTasksRequest,
|
|
@@ -3007,6 +3007,12 @@ class ClusterBasicSettings extends AbstractModel {
|
|
|
3007
3007
|
*/
|
|
3008
3008
|
this.NeedWorkSecurityGroup = null;
|
|
3009
3009
|
|
|
3010
|
+
/**
|
|
3011
|
+
* When the Cilium Overlay add-on is selected, TKE will take two IPs from the subnet to create the private network CLB.
|
|
3012
|
+
* @type {string || null}
|
|
3013
|
+
*/
|
|
3014
|
+
this.SubnetId = null;
|
|
3015
|
+
|
|
3010
3016
|
}
|
|
3011
3017
|
|
|
3012
3018
|
/**
|
|
@@ -3033,6 +3039,7 @@ class ClusterBasicSettings extends AbstractModel {
|
|
|
3033
3039
|
}
|
|
3034
3040
|
this.OsCustomizeType = 'OsCustomizeType' in params ? params.OsCustomizeType : null;
|
|
3035
3041
|
this.NeedWorkSecurityGroup = 'NeedWorkSecurityGroup' in params ? params.NeedWorkSecurityGroup : null;
|
|
3042
|
+
this.SubnetId = 'SubnetId' in params ? params.SubnetId : null;
|
|
3036
3043
|
|
|
3037
3044
|
}
|
|
3038
3045
|
}
|
|
@@ -5267,7 +5274,7 @@ class CreateClusterRequest extends AbstractModel {
|
|
|
5267
5274
|
this.InstanceAdvancedSettings = null;
|
|
5268
5275
|
|
|
5269
5276
|
/**
|
|
5270
|
-
*
|
|
5277
|
+
* The configuration information for existing instances. All instances must be in the same VPC. Up to 100 instances are allowed in one VPC. Spot instances are not supported.
|
|
5271
5278
|
* @type {Array.<ExistedInstancesForNode> || null}
|
|
5272
5279
|
*/
|
|
5273
5280
|
this.ExistedInstancesForNode = null;
|