tencentcloud-sdk-nodejs 4.0.1032 → 4.0.1034
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/src/common/sdk_version.ts +1 -1
- package/src/services/aiart/v20221229/aiart_client.ts +39 -5
- package/src/services/aiart/v20221229/aiart_models.ts +247 -93
- package/src/services/billing/v20180709/billing_client.ts +7 -51
- package/src/services/billing/v20180709/billing_models.ts +0 -229
- package/src/services/ckafka/v20190819/ckafka_models.ts +4 -0
- package/src/services/cwp/v20180228/cwp_client.ts +1 -15
- package/src/services/cwp/v20180228/cwp_models.ts +26 -105
- package/src/services/dcdb/v20180411/dcdb_client.ts +51 -26
- package/src/services/dcdb/v20180411/dcdb_models.ts +118 -12
- package/src/services/dlc/v20210125/dlc_models.ts +57 -5
- package/src/services/domain/v20180808/domain_models.ts +4 -4
- package/src/services/es/v20180416/es_models.ts +5 -5
- package/src/services/ess/v20201111/ess_models.ts +1 -1
- package/src/services/essbasic/v20210526/essbasic_models.ts +1 -1
- package/src/services/facefusion/v20220927/facefusion_client.ts +0 -1
- package/src/services/faceid/v20180301/faceid_models.ts +4 -3
- package/src/services/gme/v20180711/gme_models.ts +5 -11
- package/src/services/keewidb/v20220308/keewidb_client.ts +3 -2
- package/src/services/keewidb/v20220308/keewidb_models.ts +1 -1
- package/src/services/lcic/v20220817/lcic_models.ts +0 -80
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +2 -8
- package/src/services/lke/v20231130/lke_models.ts +4 -0
- package/src/services/lkeap/v20240522/lkeap_client.ts +5 -5
- package/src/services/lkeap/v20240522/lkeap_models.ts +2 -3
- package/src/services/mna/v20210119/mna_client.ts +28 -3
- package/src/services/mna/v20210119/mna_models.ts +158 -40
- package/src/services/monitor/index.ts +2 -0
- package/src/services/monitor/v20230616/index.ts +6 -0
- package/src/services/monitor/v20230616/monitor_client.ts +53 -0
- package/src/services/monitor/v20230616/monitor_models.ts +143 -0
- package/src/services/mqtt/v20240516/mqtt_client.ts +164 -52
- package/src/services/mqtt/v20240516/mqtt_models.ts +479 -30
- package/src/services/ocr/v20181119/ocr_models.ts +29 -1
- package/src/services/ssl/v20191205/ssl_models.ts +1 -1
- package/src/services/taf/v20200210/taf_client.ts +2 -43
- package/src/services/taf/v20200210/taf_models.ts +11 -343
- package/src/services/teo/v20220901/teo_models.ts +2 -0
- package/src/services/tione/v20211111/tione_models.ts +5 -0
- package/src/services/trabbit/v20230418/trabbit_models.ts +4 -152
- package/src/services/trtc/v20190722/trtc_models.ts +0 -3
- package/src/services/vclm/v20240523/vclm_client.ts +7 -80
- package/src/services/vclm/v20240523/vclm_models.ts +103 -347
- package/src/services/wedata/v20210820/wedata_client.ts +23 -10
- package/src/services/wedata/v20210820/wedata_models.ts +201 -110
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/aiart/v20221229/aiart_client.d.ts +17 -1
- package/tencentcloud/services/aiart/v20221229/aiart_client.js +20 -0
- package/tencentcloud/services/aiart/v20221229/aiart_models.d.ts +241 -93
- package/tencentcloud/services/billing/v20180709/billing_client.d.ts +3 -21
- package/tencentcloud/services/billing/v20180709/billing_client.js +3 -27
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +0 -221
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +4 -0
- package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +1 -7
- package/tencentcloud/services/cwp/v20180228/cwp_client.js +0 -8
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +26 -103
- package/tencentcloud/services/dcdb/v20180411/dcdb_client.d.ts +17 -9
- package/tencentcloud/services/dcdb/v20180411/dcdb_client.js +24 -12
- package/tencentcloud/services/dcdb/v20180411/dcdb_models.d.ts +113 -12
- package/tencentcloud/services/dlc/v20210125/dlc_models.d.ts +57 -5
- package/tencentcloud/services/domain/v20180808/domain_models.d.ts +4 -4
- package/tencentcloud/services/es/v20180416/es_models.d.ts +5 -5
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +1 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +1 -1
- package/tencentcloud/services/facefusion/v20220927/facefusion_client.d.ts +0 -1
- package/tencentcloud/services/facefusion/v20220927/facefusion_client.js +0 -1
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +4 -3
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +5 -11
- package/tencentcloud/services/keewidb/v20220308/keewidb_client.d.ts +1 -0
- package/tencentcloud/services/keewidb/v20220308/keewidb_client.js +1 -0
- package/tencentcloud/services/keewidb/v20220308/keewidb_models.d.ts +1 -1
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +0 -80
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +2 -8
- package/tencentcloud/services/lke/v20231130/lke_models.d.ts +4 -0
- package/tencentcloud/services/lkeap/v20240522/lkeap_client.d.ts +5 -5
- package/tencentcloud/services/lkeap/v20240522/lkeap_client.js +5 -5
- package/tencentcloud/services/lkeap/v20240522/lkeap_models.d.ts +2 -3
- package/tencentcloud/services/mna/v20210119/mna_client.d.ts +9 -1
- package/tencentcloud/services/mna/v20210119/mna_client.js +12 -0
- package/tencentcloud/services/mna/v20210119/mna_models.d.ts +153 -40
- package/tencentcloud/services/monitor/index.d.ts +4 -0
- package/tencentcloud/services/monitor/index.js +2 -0
- package/tencentcloud/services/monitor/v20230616/index.d.ts +6 -0
- package/tencentcloud/services/monitor/v20230616/index.js +9 -0
- package/tencentcloud/services/monitor/v20230616/monitor_client.d.ts +20 -0
- package/tencentcloud/services/monitor/v20230616/monitor_client.js +43 -0
- package/tencentcloud/services/monitor/v20230616/monitor_models.d.ts +121 -0
- package/tencentcloud/services/monitor/v20230616/monitor_models.js +18 -0
- package/tencentcloud/services/mqtt/v20240516/mqtt_client.d.ts +57 -20
- package/tencentcloud/services/mqtt/v20240516/mqtt_client.js +81 -26
- package/tencentcloud/services/mqtt/v20240516/mqtt_models.d.ts +458 -30
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +29 -1
- package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +1 -1
- package/tencentcloud/services/taf/v20200210/taf_client.d.ts +1 -13
- package/tencentcloud/services/taf/v20200210/taf_client.js +0 -18
- package/tencentcloud/services/taf/v20200210/taf_models.d.ts +11 -332
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +2 -0
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +5 -0
- package/tencentcloud/services/trabbit/v20230418/trabbit_models.d.ts +4 -152
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +0 -3
- package/tencentcloud/services/vclm/v20240523/vclm_client.d.ts +1 -48
- package/tencentcloud/services/vclm/v20240523/vclm_client.js +0 -53
- package/tencentcloud/services/vclm/v20240523/vclm_models.d.ts +101 -337
- package/tencentcloud/services/wedata/v20210820/wedata_client.d.ts +7 -3
- package/tencentcloud/services/wedata/v20210820/wedata_client.js +9 -3
- package/tencentcloud/services/wedata/v20210820/wedata_models.d.ts +198 -110
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { DeleteL3ConnResponse, GetDeviceResponse, GetMultiFlowStatisticResponse, UpdateL3ConnResponse, UpdateHardwareResponse, UpdateL3SwitchRequest, DescribeQosResponse, AddL3ConnRequest, OrderPerLicenseResponse, GetFlowPackagesRequest, SetNotifyUrlResponse, UpdateL3CidrResponse, ModifyPackageRenewFlagRequest, GetFlowPackagesResponse, DeleteL3ConnRequest, GetVendorHardwareResponse, AddGroupRequest, GetGroupListRequest, GetGroupDetailRequest, GroupDeleteDeviceResponse, GroupAddDeviceRequest, GetStatisticDataResponse, GetPublicKeyRequest, GetFlowStatisticByGroupResponse, GetNetMonitorResponse, DeleteQosRequest, GetFlowStatisticByRegionRequest, GetFlowAlarmInfoRequest, GetVendorHardwareRequest, CreateEncryptedKeyRequest, DeleteDeviceRequest, DeleteGroupRequest, CreateEncryptedKeyResponse, UpdateL3SwitchResponse, GetL3ConnListResponse, CreateQosRequest, ModifyPackageRenewFlagResponse, DeleteQosResponse, GetDeviceRequest, ActivateHardwareResponse, GetFlowStatisticByGroupRequest, GetDevicesResponse, DescribeQosRequest, AddL3ConnResponse, GetDevicesRequest, SetNotifyUrlRequest, GetDevicePayModeRequest, CreateQosResponse, GetHardwareListRequest, GroupDeleteDeviceRequest, GetFlowStatisticByRegionResponse,
|
|
3
|
+
import { DeleteL3ConnResponse, GetDeviceResponse, GetMultiFlowStatisticResponse, UpdateL3ConnResponse, UpdateHardwareResponse, UpdateL3SwitchRequest, DescribeQosResponse, AddL3ConnRequest, OrderPerLicenseResponse, GetFlowPackagesRequest, SetNotifyUrlResponse, UpdateL3CidrResponse, ModifyPackageRenewFlagRequest, GetFlowPackagesResponse, DeleteL3ConnRequest, GetVendorHardwareResponse, GetActiveDeviceCountResponse, AddGroupRequest, GetGroupListRequest, GetGroupDetailRequest, GroupDeleteDeviceResponse, GroupAddDeviceRequest, GetStatisticDataResponse, GetPublicKeyRequest, GetFlowStatisticByGroupResponse, GetNetMonitorResponse, DeleteQosRequest, GetFlowStatisticByRegionRequest, GetFlowAlarmInfoRequest, GetVendorHardwareRequest, CreateEncryptedKeyRequest, DeleteDeviceRequest, DeleteGroupRequest, CreateEncryptedKeyResponse, UpdateL3SwitchResponse, GetL3ConnListResponse, CreateQosRequest, ModifyPackageRenewFlagResponse, DeleteQosResponse, GetDeviceRequest, ActivateHardwareResponse, GetFlowStatisticByGroupRequest, GetDevicesResponse, DescribeQosRequest, AddL3ConnResponse, GetDevicesRequest, SetNotifyUrlRequest, GetDevicePayModeRequest, GetFlowStatisticRequest, CreateQosResponse, DownloadActiveDeviceCountResponse, GetHardwareListRequest, GroupDeleteDeviceRequest, GetFlowStatisticByRegionResponse, GetMultiFlowStatisticRequest, GetFlowAlarmInfoResponse, OrderFlowPackageRequest, GetGroupDetailResponse, UpdateGroupResponse, GetL3ConnListRequest, DownloadActiveDeviceCountRequest, GetHardwareListResponse, AddDeviceRequest, OrderPerLicenseRequest, UpdateGroupRequest, GetFlowStatisticResponse, UpdateHardwareRequest, GetNetMonitorRequest, GetGroupListResponse, OrderFlowPackageResponse, UpdateDeviceResponse, ActivateHardwareRequest, GroupAddDeviceResponse, GetStatisticDataRequest, UpdateDeviceRequest, DeleteGroupResponse, GetPublicKeyResponse, AddHardwareResponse, AddDeviceResponse, GetDevicePayModeResponse, GetActiveDeviceCountRequest, UpdateL3ConnRequest, DeleteDeviceResponse, AddHardwareRequest, UpdateL3CidrRequest, AddGroupResponse } from "./mna_models";
|
|
4
4
|
/**
|
|
5
5
|
* mna client
|
|
6
6
|
* @class
|
|
@@ -15,6 +15,10 @@ export declare class Client extends AbstractClient {
|
|
|
15
15
|
* 更新硬件信息
|
|
16
16
|
*/
|
|
17
17
|
UpdateHardware(req: UpdateHardwareRequest, cb?: (error: string, rep: UpdateHardwareResponse) => void): Promise<UpdateHardwareResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* 下载活跃设备数量统计
|
|
20
|
+
*/
|
|
21
|
+
DownloadActiveDeviceCount(req: DownloadActiveDeviceCountRequest, cb?: (error: string, rep: DownloadActiveDeviceCountResponse) => void): Promise<DownloadActiveDeviceCountResponse>;
|
|
18
22
|
/**
|
|
19
23
|
* 可开启/关闭流量包自动续费,不影响当前周期正在生效的流量包。
|
|
20
24
|
*/
|
|
@@ -79,6 +83,10 @@ export declare class Client extends AbstractClient {
|
|
|
79
83
|
获取Qos加速状态
|
|
80
84
|
*/
|
|
81
85
|
DescribeQos(req: DescribeQosRequest, cb?: (error: string, rep: DescribeQosResponse) => void): Promise<DescribeQosResponse>;
|
|
86
|
+
/**
|
|
87
|
+
* 活跃设备数量统计
|
|
88
|
+
*/
|
|
89
|
+
GetActiveDeviceCount(req: GetActiveDeviceCountRequest, cb?: (error: string, rep: GetActiveDeviceCountResponse) => void): Promise<GetActiveDeviceCountResponse>;
|
|
82
90
|
/**
|
|
83
91
|
* 删除设备信息
|
|
84
92
|
*/
|
|
@@ -39,6 +39,12 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
39
39
|
async UpdateHardware(req, cb) {
|
|
40
40
|
return this.request("UpdateHardware", req, cb);
|
|
41
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* 下载活跃设备数量统计
|
|
44
|
+
*/
|
|
45
|
+
async DownloadActiveDeviceCount(req, cb) {
|
|
46
|
+
return this.request("DownloadActiveDeviceCount", req, cb);
|
|
47
|
+
}
|
|
42
48
|
/**
|
|
43
49
|
* 可开启/关闭流量包自动续费,不影响当前周期正在生效的流量包。
|
|
44
50
|
*/
|
|
@@ -133,6 +139,12 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
133
139
|
async DescribeQos(req, cb) {
|
|
134
140
|
return this.request("DescribeQos", req, cb);
|
|
135
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* 活跃设备数量统计
|
|
144
|
+
*/
|
|
145
|
+
async GetActiveDeviceCount(req, cb) {
|
|
146
|
+
return this.request("GetActiveDeviceCount", req, cb);
|
|
147
|
+
}
|
|
136
148
|
/**
|
|
137
149
|
* 删除设备信息
|
|
138
150
|
*/
|
|
@@ -276,6 +276,43 @@ export interface GetVendorHardwareResponse {
|
|
|
276
276
|
*/
|
|
277
277
|
RequestId?: string;
|
|
278
278
|
}
|
|
279
|
+
/**
|
|
280
|
+
* GetActiveDeviceCount返回参数结构体
|
|
281
|
+
*/
|
|
282
|
+
export interface GetActiveDeviceCountResponse {
|
|
283
|
+
/**
|
|
284
|
+
* 激活设备统计
|
|
285
|
+
*/
|
|
286
|
+
ActiveDeviceList?: Array<ActiveDeviceList>;
|
|
287
|
+
/**
|
|
288
|
+
* 查询粒度,0:day, 1:week, 2:month, 不传默认为day
|
|
289
|
+
*/
|
|
290
|
+
Period?: number;
|
|
291
|
+
/**
|
|
292
|
+
* 开始时间
|
|
293
|
+
*/
|
|
294
|
+
StartTime?: string;
|
|
295
|
+
/**
|
|
296
|
+
* 结束时间
|
|
297
|
+
*/
|
|
298
|
+
EndTime?: string;
|
|
299
|
+
/**
|
|
300
|
+
* 设备组
|
|
301
|
+
*/
|
|
302
|
+
DevGroup?: string;
|
|
303
|
+
/**
|
|
304
|
+
* license类型, 不传查询全部, 1: 租户月付,2:厂商月付,3:永久授权
|
|
305
|
+
*/
|
|
306
|
+
LicenseType?: string;
|
|
307
|
+
/**
|
|
308
|
+
* 租户ID
|
|
309
|
+
*/
|
|
310
|
+
AppId?: string;
|
|
311
|
+
/**
|
|
312
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
313
|
+
*/
|
|
314
|
+
RequestId?: string;
|
|
315
|
+
}
|
|
279
316
|
/**
|
|
280
317
|
* 设备的基本信息
|
|
281
318
|
*/
|
|
@@ -1037,21 +1074,41 @@ export interface Capacity {
|
|
|
1037
1074
|
Province?: string;
|
|
1038
1075
|
}
|
|
1039
1076
|
/**
|
|
1040
|
-
*
|
|
1077
|
+
* GetFlowStatistic请求参数结构体
|
|
1041
1078
|
*/
|
|
1042
|
-
export interface
|
|
1079
|
+
export interface GetFlowStatisticRequest {
|
|
1043
1080
|
/**
|
|
1044
|
-
*
|
|
1081
|
+
* 设备ID
|
|
1045
1082
|
*/
|
|
1046
|
-
|
|
1083
|
+
DeviceId: string;
|
|
1047
1084
|
/**
|
|
1048
|
-
*
|
|
1085
|
+
* 开始查找时间
|
|
1049
1086
|
*/
|
|
1050
|
-
|
|
1087
|
+
BeginTime: number;
|
|
1051
1088
|
/**
|
|
1052
|
-
*
|
|
1089
|
+
* 截止时间
|
|
1053
1090
|
*/
|
|
1054
|
-
|
|
1091
|
+
EndTime: number;
|
|
1092
|
+
/**
|
|
1093
|
+
* 流量种类(1:上行流量,2:下行流量,3:上下行总和)
|
|
1094
|
+
*/
|
|
1095
|
+
Type: number;
|
|
1096
|
+
/**
|
|
1097
|
+
* 时间粒度(1:按小时统计,2:按天统计)
|
|
1098
|
+
*/
|
|
1099
|
+
TimeGranularity: number;
|
|
1100
|
+
/**
|
|
1101
|
+
* 接入区域。取值范围:['MC','AP','EU','AM'] MC=中国大陆 AP=亚太 EU=欧洲 AM=美洲。不填代表全量区域。
|
|
1102
|
+
*/
|
|
1103
|
+
AccessRegion?: string;
|
|
1104
|
+
/**
|
|
1105
|
+
* 网关类型。0:公有云网关;1:自有网关。不传默认为0。
|
|
1106
|
+
*/
|
|
1107
|
+
GatewayType?: number;
|
|
1108
|
+
/**
|
|
1109
|
+
* 设备ID列表,用于查询多设备流量,该字段启用时DeviceId可传"-1"
|
|
1110
|
+
*/
|
|
1111
|
+
DeviceList?: Array<string>;
|
|
1055
1112
|
}
|
|
1056
1113
|
/**
|
|
1057
1114
|
* 网卡流量指标数据
|
|
@@ -1232,6 +1289,19 @@ export interface ActivateHardware {
|
|
|
1232
1289
|
*/
|
|
1233
1290
|
DeviceId?: string;
|
|
1234
1291
|
}
|
|
1292
|
+
/**
|
|
1293
|
+
* DownloadActiveDeviceCount返回参数结构体
|
|
1294
|
+
*/
|
|
1295
|
+
export interface DownloadActiveDeviceCountResponse {
|
|
1296
|
+
/**
|
|
1297
|
+
* URL地址
|
|
1298
|
+
*/
|
|
1299
|
+
FilePath?: string;
|
|
1300
|
+
/**
|
|
1301
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1302
|
+
*/
|
|
1303
|
+
RequestId?: string;
|
|
1304
|
+
}
|
|
1235
1305
|
/**
|
|
1236
1306
|
* GetHardwareList请求参数结构体
|
|
1237
1307
|
*/
|
|
@@ -1338,13 +1408,17 @@ export interface GetFlowStatisticByRegionResponse {
|
|
|
1338
1408
|
RequestId?: string;
|
|
1339
1409
|
}
|
|
1340
1410
|
/**
|
|
1341
|
-
*
|
|
1411
|
+
* 激活设备数统计
|
|
1342
1412
|
*/
|
|
1343
|
-
export interface
|
|
1413
|
+
export interface ActiveDeviceList {
|
|
1344
1414
|
/**
|
|
1345
|
-
*
|
|
1415
|
+
* 数量
|
|
1346
1416
|
*/
|
|
1347
|
-
|
|
1417
|
+
Count?: number;
|
|
1418
|
+
/**
|
|
1419
|
+
* 时间
|
|
1420
|
+
*/
|
|
1421
|
+
Time?: string;
|
|
1348
1422
|
}
|
|
1349
1423
|
/**
|
|
1350
1424
|
* GetMultiFlowStatistic请求参数结构体
|
|
@@ -1585,6 +1659,31 @@ export interface FlowPackageInfo {
|
|
|
1585
1659
|
*/
|
|
1586
1660
|
CapacityRemainPrecise?: number;
|
|
1587
1661
|
}
|
|
1662
|
+
/**
|
|
1663
|
+
* DownloadActiveDeviceCount请求参数结构体
|
|
1664
|
+
*/
|
|
1665
|
+
export interface DownloadActiveDeviceCountRequest {
|
|
1666
|
+
/**
|
|
1667
|
+
* 查询粒度。0:day, 1:week, 2:month, 不传默认为day
|
|
1668
|
+
*/
|
|
1669
|
+
Period?: number;
|
|
1670
|
+
/**
|
|
1671
|
+
* 开始时间。单位秒
|
|
1672
|
+
*/
|
|
1673
|
+
StartTime?: number;
|
|
1674
|
+
/**
|
|
1675
|
+
* 结束时间。单位秒
|
|
1676
|
+
*/
|
|
1677
|
+
EndTime?: number;
|
|
1678
|
+
/**
|
|
1679
|
+
* 设备组, 不传查询全部
|
|
1680
|
+
*/
|
|
1681
|
+
DevGroup?: string;
|
|
1682
|
+
/**
|
|
1683
|
+
* license类型, 不传查询全部, 1: 租户月付,2:厂商月付,3:永久授权
|
|
1684
|
+
*/
|
|
1685
|
+
LicenseType?: number;
|
|
1686
|
+
}
|
|
1588
1687
|
/**
|
|
1589
1688
|
* GetHardwareList返回参数结构体
|
|
1590
1689
|
*/
|
|
@@ -1855,6 +1954,15 @@ export interface L3ConnInfo {
|
|
|
1855
1954
|
*/
|
|
1856
1955
|
Description?: string;
|
|
1857
1956
|
}
|
|
1957
|
+
/**
|
|
1958
|
+
* ActivateHardware请求参数结构体
|
|
1959
|
+
*/
|
|
1960
|
+
export interface ActivateHardwareRequest {
|
|
1961
|
+
/**
|
|
1962
|
+
* 待激活的设备列表
|
|
1963
|
+
*/
|
|
1964
|
+
Hardware: Array<ActivateHardware>;
|
|
1965
|
+
}
|
|
1858
1966
|
/**
|
|
1859
1967
|
* GroupAddDevice返回参数结构体
|
|
1860
1968
|
*/
|
|
@@ -1968,41 +2076,21 @@ export interface AddHardwareResponse {
|
|
|
1968
2076
|
RequestId?: string;
|
|
1969
2077
|
}
|
|
1970
2078
|
/**
|
|
1971
|
-
*
|
|
2079
|
+
* 加速策略关键数据
|
|
1972
2080
|
*/
|
|
1973
|
-
export interface
|
|
1974
|
-
/**
|
|
1975
|
-
* 设备ID
|
|
1976
|
-
*/
|
|
1977
|
-
DeviceId: string;
|
|
1978
|
-
/**
|
|
1979
|
-
* 开始查找时间
|
|
1980
|
-
*/
|
|
1981
|
-
BeginTime: number;
|
|
1982
|
-
/**
|
|
1983
|
-
* 截止时间
|
|
1984
|
-
*/
|
|
1985
|
-
EndTime: number;
|
|
1986
|
-
/**
|
|
1987
|
-
* 流量种类(1:上行流量,2:下行流量,3:上下行总和)
|
|
1988
|
-
*/
|
|
1989
|
-
Type: number;
|
|
1990
|
-
/**
|
|
1991
|
-
* 时间粒度(1:按小时统计,2:按天统计)
|
|
1992
|
-
*/
|
|
1993
|
-
TimeGranularity: number;
|
|
2081
|
+
export interface Context {
|
|
1994
2082
|
/**
|
|
1995
|
-
*
|
|
2083
|
+
* 测速数据
|
|
1996
2084
|
*/
|
|
1997
|
-
|
|
2085
|
+
NetworkData?: NetworkData;
|
|
1998
2086
|
/**
|
|
1999
|
-
*
|
|
2087
|
+
* 用户期望最低门限
|
|
2000
2088
|
*/
|
|
2001
|
-
|
|
2089
|
+
ExpectedLowThreshold?: ExpectedThreshold;
|
|
2002
2090
|
/**
|
|
2003
|
-
*
|
|
2091
|
+
* 用户期望最高门限
|
|
2004
2092
|
*/
|
|
2005
|
-
|
|
2093
|
+
ExpectedHighThreshold?: ExpectedThreshold;
|
|
2006
2094
|
}
|
|
2007
2095
|
/**
|
|
2008
2096
|
* AddDevice返回参数结构体
|
|
@@ -2038,6 +2126,31 @@ export interface GetDevicePayModeResponse {
|
|
|
2038
2126
|
*/
|
|
2039
2127
|
RequestId?: string;
|
|
2040
2128
|
}
|
|
2129
|
+
/**
|
|
2130
|
+
* GetActiveDeviceCount请求参数结构体
|
|
2131
|
+
*/
|
|
2132
|
+
export interface GetActiveDeviceCountRequest {
|
|
2133
|
+
/**
|
|
2134
|
+
* 查询粒度。0:day, 1:week, 2:month, 不传默认为day
|
|
2135
|
+
*/
|
|
2136
|
+
Period?: number;
|
|
2137
|
+
/**
|
|
2138
|
+
* 开始时间。单位秒
|
|
2139
|
+
*/
|
|
2140
|
+
StartTime?: number;
|
|
2141
|
+
/**
|
|
2142
|
+
* 结束时间。单位秒
|
|
2143
|
+
*/
|
|
2144
|
+
EndTime?: number;
|
|
2145
|
+
/**
|
|
2146
|
+
* 设备组, 不传查询全部
|
|
2147
|
+
*/
|
|
2148
|
+
DevGroup?: string;
|
|
2149
|
+
/**
|
|
2150
|
+
* license类型, 不传查询全部, 1: 租户月付,2:厂商月付,3:永久授权
|
|
2151
|
+
*/
|
|
2152
|
+
LicenseType?: number;
|
|
2153
|
+
}
|
|
2041
2154
|
/**
|
|
2042
2155
|
* UpdateL3Conn请求参数结构体
|
|
2043
2156
|
*/
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const monitor: {
|
|
2
|
+
v20230616: {
|
|
3
|
+
Client: typeof import("./v20230616/monitor_client").Client;
|
|
4
|
+
Models: typeof import("./v20230616/monitor_models");
|
|
5
|
+
};
|
|
2
6
|
v20180724: {
|
|
3
7
|
Client: typeof import("./v20180724/monitor_client").Client;
|
|
4
8
|
Models: typeof import("./v20180724/monitor_models");
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.monitor = void 0;
|
|
4
|
+
const v20230616_1 = require("./v20230616");
|
|
4
5
|
const v20180724_1 = require("./v20180724");
|
|
5
6
|
exports.monitor = {
|
|
7
|
+
v20230616: v20230616_1.v20230616,
|
|
6
8
|
v20180724: v20180724_1.v20180724,
|
|
7
9
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v20230616 = void 0;
|
|
4
|
+
const Models = require("./monitor_models");
|
|
5
|
+
const monitor_client_1 = require("./monitor_client");
|
|
6
|
+
exports.v20230616 = {
|
|
7
|
+
Client: monitor_client_1.Client,
|
|
8
|
+
Models: Models
|
|
9
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
|
+
import { ClientConfig } from "../../../common/interface";
|
|
3
|
+
import { GetMonitorDataResponse, GetMonitorDataRequest } from "./monitor_models";
|
|
4
|
+
/**
|
|
5
|
+
* monitor client
|
|
6
|
+
* @class
|
|
7
|
+
*/
|
|
8
|
+
export declare class Client extends AbstractClient {
|
|
9
|
+
constructor(clientConfig: ClientConfig);
|
|
10
|
+
/**
|
|
11
|
+
* 获取云产品的监控数据。此接口不适用于拉取容器服务监控数据,如需拉取容器服务监控数据,请使用[根据维度条件查询监控数据](https://cloud.tencent.com/document/product/248/51845)接口。
|
|
12
|
+
传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。
|
|
13
|
+
接口调用限制:单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。
|
|
14
|
+
若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。
|
|
15
|
+
|
|
16
|
+
>?
|
|
17
|
+
>- 2022年9月1日起,云监控开始对GetMonitorData接口计费。每个主账号每月可获得100万次免费请求额度,超过免费额度后如需继续调用接口需要开通 [API请求按量付费](https://buy.cloud.tencent.com/APIRequestBuy)。计费规则可查看[API计费文档](https://cloud.tencent.com/document/product/248/77914)。
|
|
18
|
+
*/
|
|
19
|
+
GetMonitorData(req: GetMonitorDataRequest, cb?: (error: string, rep: GetMonitorDataResponse) => void): Promise<GetMonitorDataResponse>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing,
|
|
15
|
+
* software distributed under the License is distributed on an
|
|
16
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
+
* KIND, either express or implied. See the License for the
|
|
18
|
+
* specific language governing permissions and limitations
|
|
19
|
+
* under the License.
|
|
20
|
+
*/
|
|
21
|
+
const abstract_client_1 = require("../../../common/abstract_client");
|
|
22
|
+
/**
|
|
23
|
+
* monitor client
|
|
24
|
+
* @class
|
|
25
|
+
*/
|
|
26
|
+
class Client extends abstract_client_1.AbstractClient {
|
|
27
|
+
constructor(clientConfig) {
|
|
28
|
+
super("monitor.tencentcloudapi.com", "2023-06-16", clientConfig);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 获取云产品的监控数据。此接口不适用于拉取容器服务监控数据,如需拉取容器服务监控数据,请使用[根据维度条件查询监控数据](https://cloud.tencent.com/document/product/248/51845)接口。
|
|
32
|
+
传入产品的命名空间、对象维度描述和监控指标即可获得相应的监控数据。
|
|
33
|
+
接口调用限制:单请求最多可支持批量拉取10个实例的监控数据,单请求的数据点数限制为1440个。
|
|
34
|
+
若您需要调用的指标、对象较多,可能存在因限频出现拉取失败的情况,建议尽量将请求按时间维度均摊。
|
|
35
|
+
|
|
36
|
+
>?
|
|
37
|
+
>- 2022年9月1日起,云监控开始对GetMonitorData接口计费。每个主账号每月可获得100万次免费请求额度,超过免费额度后如需继续调用接口需要开通 [API请求按量付费](https://buy.cloud.tencent.com/APIRequestBuy)。计费规则可查看[API计费文档](https://cloud.tencent.com/document/product/248/77914)。
|
|
38
|
+
*/
|
|
39
|
+
async GetMonitorData(req, cb) {
|
|
40
|
+
return this.request("GetMonitorData", req, cb);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.Client = Client;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GetMonitorData返回参数结构体
|
|
3
|
+
*/
|
|
4
|
+
export interface GetMonitorDataResponse {
|
|
5
|
+
/**
|
|
6
|
+
* 统计周期
|
|
7
|
+
*/
|
|
8
|
+
Period?: number;
|
|
9
|
+
/**
|
|
10
|
+
* 指标名
|
|
11
|
+
*/
|
|
12
|
+
MetricName?: string;
|
|
13
|
+
/**
|
|
14
|
+
* 数据点数组
|
|
15
|
+
*/
|
|
16
|
+
DataPoints?: Array<DataPoint>;
|
|
17
|
+
/**
|
|
18
|
+
* 开始时间
|
|
19
|
+
*/
|
|
20
|
+
StartTime?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 结束时间
|
|
23
|
+
*/
|
|
24
|
+
EndTime?: string;
|
|
25
|
+
/**
|
|
26
|
+
* 返回信息
|
|
27
|
+
*/
|
|
28
|
+
Msg?: string;
|
|
29
|
+
/**
|
|
30
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
31
|
+
*/
|
|
32
|
+
RequestId?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 计算算子
|
|
36
|
+
*/
|
|
37
|
+
export interface Expr {
|
|
38
|
+
/**
|
|
39
|
+
* 算子名称
|
|
40
|
+
*/
|
|
41
|
+
Function?: string;
|
|
42
|
+
/**
|
|
43
|
+
* 算子入参值
|
|
44
|
+
*/
|
|
45
|
+
N?: number;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* GetMonitorData请求参数结构体
|
|
49
|
+
*/
|
|
50
|
+
export interface GetMonitorDataRequest {
|
|
51
|
+
/**
|
|
52
|
+
* 命名空间,如QCE/CVM。各个云产品的详细命名空间说明请参阅各个产品[监控指标](https://cloud.tencent.com/document/product/248/6140)文档
|
|
53
|
+
*/
|
|
54
|
+
Namespace: string;
|
|
55
|
+
/**
|
|
56
|
+
* 指标名称,如CPUUsage,仅支持单指标拉取。各个云产品的详细指标说明请参阅各个产品[监控指标](https://cloud.tencent.com/document/product/248/6140)文档,对应的指标英文名即为MetricName
|
|
57
|
+
*/
|
|
58
|
+
MetricName: string;
|
|
59
|
+
/**
|
|
60
|
+
* 实例对象的维度组合,格式为key-value键值对形式的集合。不同类型的实例字段完全不同,如CVM为[{"Name":"InstanceId","Value":"ins-j0hk02zo"}],Ckafka为[{"Name":"instanceId","Value":"ckafka-l49k54dd"}],COS为[{"Name":"appid","Value":"1258344699"},{"Name":"bucket","Value":"rig-1258344699"}]。各个云产品的维度请参阅各个产品[监控指标](https://cloud.tencent.com/document/product/248/6140)文档,对应的维度列即为维度组合的key,value为key对应的值。单请求最多支持批量拉取10个实例的监控数据。
|
|
61
|
+
*/
|
|
62
|
+
Instances: Array<Instance>;
|
|
63
|
+
/**
|
|
64
|
+
* 监控统计周期,如60。默认为取值为300,单位为s。每个指标支持的统计周期不一定相同,各个云产品支持的统计周期请参阅各个产品[监控指标](https://cloud.tencent.com/document/product/248/6140)文档,对应的统计周期列即为支持的统计周期。单请求的数据点数限制为1440个。
|
|
65
|
+
*/
|
|
66
|
+
Period?: number;
|
|
67
|
+
/**
|
|
68
|
+
* 起始时间,如2018-09-22T19:51:23+08:00
|
|
69
|
+
*/
|
|
70
|
+
StartTime?: string;
|
|
71
|
+
/**
|
|
72
|
+
* 结束时间,如2018-09-22T20:51:23+08:00,默认为当前时间。 EndTime不能小于StartTime
|
|
73
|
+
*/
|
|
74
|
+
EndTime?: string;
|
|
75
|
+
/**
|
|
76
|
+
* 计算算子
|
|
77
|
+
*/
|
|
78
|
+
Expr?: Expr;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* 实例维度组合数组
|
|
82
|
+
*/
|
|
83
|
+
export interface Instance {
|
|
84
|
+
/**
|
|
85
|
+
* 实例的维度组合
|
|
86
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
87
|
+
*/
|
|
88
|
+
Dimensions: Array<Dimension>;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* 监控数据点
|
|
92
|
+
*/
|
|
93
|
+
export interface DataPoint {
|
|
94
|
+
/**
|
|
95
|
+
* 实例对象维度组合
|
|
96
|
+
*/
|
|
97
|
+
Dimensions?: Array<Dimension>;
|
|
98
|
+
/**
|
|
99
|
+
* 时间戳数组,表示那些时间点有数据,缺失的时间戳,没有数据点,可以理解为掉点了
|
|
100
|
+
*/
|
|
101
|
+
Timestamps?: Array<number>;
|
|
102
|
+
/**
|
|
103
|
+
* 监控值数组,该数组和Timestamps一一对应
|
|
104
|
+
*/
|
|
105
|
+
Values?: Array<number>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* 实例对象的维度组合
|
|
109
|
+
*/
|
|
110
|
+
export interface Dimension {
|
|
111
|
+
/**
|
|
112
|
+
* 实例维度名称
|
|
113
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
114
|
+
*/
|
|
115
|
+
Name: string;
|
|
116
|
+
/**
|
|
117
|
+
* 实例维度值
|
|
118
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
119
|
+
*/
|
|
120
|
+
Value: string;
|
|
121
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|