tencentcloud-sdk-nodejs 4.0.841 → 4.0.842
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/CHANGELOG.md +176 -0
- package/README.md +7 -0
- package/SERVICE_CHANGELOG.md +234 -59
- package/examples/common/common_client.js +47 -0
- package/examples/common/common_client.ts +47 -0
- package/package.json +6 -1
- package/products.md +14 -14
- package/src/common/index.ts +3 -0
- package/src/common/sdk_version.ts +1 -1
- package/src/services/apm/v20210622/apm_client.ts +46 -8
- package/src/services/apm/v20210622/apm_models.ts +233 -24
- package/src/services/cloudstudio/v20230508/cloudstudio_models.ts +1 -1
- package/src/services/ess/v20201111/ess_client.ts +2 -0
- package/src/services/ess/v20201111/ess_models.ts +30 -2
- package/src/services/essbasic/v20210526/essbasic_client.ts +2 -0
- package/src/services/essbasic/v20210526/essbasic_models.ts +30 -2
- package/src/services/ims/v20201229/ims_client.ts +2 -3
- package/src/services/ims/v20201229/ims_models.ts +54 -54
- package/src/services/iotexplorer/v20190423/iotexplorer_client.ts +13 -0
- package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +47 -0
- package/src/services/iss/v20230517/iss_models.ts +16 -0
- package/src/services/lke/v20231130/lke_client.ts +0 -24
- package/src/services/lke/v20231130/lke_models.ts +0 -81
- package/src/services/tdid/v20210519/tdid_client.ts +1 -1
- package/src/services/teo/v20220901/teo_models.ts +8 -9
- package/src/services/tione/v20211111/tione_client.ts +1 -0
- package/src/services/tione/v20211111/tione_models.ts +16 -0
- package/tencentcloud/common/index.d.ts +3 -0
- package/tencentcloud/common/index.js +6 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/apm/v20210622/apm_client.d.ts +15 -3
- package/tencentcloud/services/apm/v20210622/apm_client.js +21 -3
- package/tencentcloud/services/apm/v20210622/apm_models.d.ts +225 -24
- package/tencentcloud/services/cloudstudio/v20230508/cloudstudio_models.d.ts +1 -1
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +28 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +28 -2
- package/tencentcloud/services/ims/v20201229/ims_client.d.ts +2 -3
- package/tencentcloud/services/ims/v20201229/ims_client.js +2 -3
- package/tencentcloud/services/ims/v20201229/ims_models.d.ts +54 -54
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +5 -1
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.js +6 -0
- package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +44 -0
- package/tencentcloud/services/iss/v20230517/iss_models.d.ts +16 -0
- package/tencentcloud/services/lke/v20231130/lke_client.d.ts +1 -9
- package/tencentcloud/services/lke/v20231130/lke_client.js +0 -12
- package/tencentcloud/services/lke/v20231130/lke_models.d.ts +0 -77
- package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +1 -1
- package/tencentcloud/services/tdid/v20210519/tdid_client.js +1 -1
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +8 -9
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +15 -0
- package/test/apm.v20210622.test.js +32 -2
- package/test/iotexplorer.v20190423.test.js +10 -0
- package/test/lke.v20231130.test.js +0 -20
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const tencentcloud = require("../../../tencentcloud-sdk-nodejs")
|
|
2
|
+
const TencentCloudCommon = tencentcloud.common;
|
|
3
|
+
const CommonClient = TencentCloudCommon.CommonClient;
|
|
4
|
+
|
|
5
|
+
// 实例化一个认证对象,入参需要传入腾讯云账户 SecretId 和 SecretKey,此处还需注意密钥对的保密
|
|
6
|
+
// 代码泄露可能会导致 SecretId 和 SecretKey 泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议采用更安全的方式来使用密钥,请参见:https://cloud.tencent.com/document/product/1278/85305
|
|
7
|
+
// 密钥可前往官网控制台 https://console.cloud.tencent.com/cam/capi 进行获取
|
|
8
|
+
const clientConfig = {
|
|
9
|
+
credential: {
|
|
10
|
+
secretId: "$secretId",
|
|
11
|
+
secretKey: "$secretKey",
|
|
12
|
+
},
|
|
13
|
+
region: "ap-shanghai",
|
|
14
|
+
profile: {
|
|
15
|
+
httpProfile: {
|
|
16
|
+
endpoint: "cvm.tencentcloudapi.com",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// 实例化要请求产品的 CommonClient 对象,依次传入产品调用地址(产品名.tencentcloudapi.com)、产品版本、ClientConfig
|
|
22
|
+
const client = new CommonClient(
|
|
23
|
+
"cvm.tencentcloudapi.com",
|
|
24
|
+
"2017-03-12",
|
|
25
|
+
clientConfig
|
|
26
|
+
);
|
|
27
|
+
const params = {
|
|
28
|
+
Filters: [
|
|
29
|
+
{
|
|
30
|
+
Name: "zone",
|
|
31
|
+
Values: ["ap-shanghai-1", "ap-shanghai-2"],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
Name: "instance-charge-type",
|
|
35
|
+
Values: ["POSTPAID_BY_HOUR"],
|
|
36
|
+
},
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
// 传入要调用的接口名,和接口对应的参数
|
|
40
|
+
client.request("DescribeInstances", params).then(
|
|
41
|
+
(data) => {
|
|
42
|
+
console.log(data);
|
|
43
|
+
},
|
|
44
|
+
(err) => {
|
|
45
|
+
console.error("error", err);
|
|
46
|
+
}
|
|
47
|
+
);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as tencentcloud from "../../../tencentcloud-sdk-nodejs"
|
|
2
|
+
const TencentCloudCommon = tencentcloud.common;
|
|
3
|
+
const CommonClient = TencentCloudCommon.CommonClient;
|
|
4
|
+
|
|
5
|
+
// 实例化一个认证对象,入参需要传入腾讯云账户 SecretId 和 SecretKey,此处还需注意密钥对的保密
|
|
6
|
+
// 代码泄露可能会导致 SecretId 和 SecretKey 泄露,并威胁账号下所有资源的安全性。以下代码示例仅供参考,建议采用更安全的方式来使用密钥,请参见:https://cloud.tencent.com/document/product/1278/85305
|
|
7
|
+
// 密钥可前往官网控制台 https://console.cloud.tencent.com/cam/capi 进行获取
|
|
8
|
+
const clientConfig = {
|
|
9
|
+
credential: {
|
|
10
|
+
secretId: "$secretId",
|
|
11
|
+
secretKey: "$secretKey",
|
|
12
|
+
},
|
|
13
|
+
region: "ap-shanghai",
|
|
14
|
+
profile: {
|
|
15
|
+
httpProfile: {
|
|
16
|
+
endpoint: "cvm.tencentcloudapi.com",
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
// 实例化要请求产品的 CommonClient 对象,依次传入产品调用地址(产品名.tencentcloudapi.com)、产品版本、ClientConfig
|
|
22
|
+
const client = new CommonClient(
|
|
23
|
+
"cvm.tencentcloudapi.com",
|
|
24
|
+
"2017-03-12",
|
|
25
|
+
clientConfig
|
|
26
|
+
);
|
|
27
|
+
const params = {
|
|
28
|
+
Filters: [
|
|
29
|
+
{
|
|
30
|
+
Name: "zone",
|
|
31
|
+
Values: ["ap-shanghai-1", "ap-shanghai-2"],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
Name: "instance-charge-type",
|
|
35
|
+
Values: ["POSTPAID_BY_HOUR"],
|
|
36
|
+
},
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
// 传入要调用的接口名,和接口对应的参数
|
|
40
|
+
client.request("DescribeInstances", params).then(
|
|
41
|
+
(data) => {
|
|
42
|
+
console.log(data);
|
|
43
|
+
},
|
|
44
|
+
(err) => {
|
|
45
|
+
console.error("error", err);
|
|
46
|
+
}
|
|
47
|
+
);
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.842",
|
|
4
4
|
"description": "腾讯云 API NODEJS SDK",
|
|
5
5
|
"main": "tencentcloud/index.js",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": "./tencentcloud/index.js",
|
|
8
|
+
"./package.json": "./package.json",
|
|
9
|
+
"./tencentcloud/*": "./tencentcloud/*"
|
|
10
|
+
},
|
|
6
11
|
"scripts": {
|
|
7
12
|
"test": "mocha -t 10000",
|
|
8
13
|
"build": "tsc",
|
package/products.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
| advisor | [云顾问](https://cloud.tencent.com/document/product/1264) | 2024-03-20 01:07:31 |
|
|
7
7
|
| af | [借贷反欺诈](https://cloud.tencent.com/document/product/668) | 2024-03-20 01:07:31 |
|
|
8
8
|
| afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2024-04-22 01:07:18 |
|
|
9
|
-
| aiart | [大模型图像创作引擎](https://cloud.tencent.com/document/product/1668) | 2024-04-
|
|
9
|
+
| aiart | [大模型图像创作引擎](https://cloud.tencent.com/document/product/1668) | 2024-04-25 01:08:45 |
|
|
10
10
|
| ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2023-08-17 01:06:14 |
|
|
11
11
|
| ams | [音频内容安全](https://cloud.tencent.com/document/product/1219) | 2024-04-22 01:07:21 |
|
|
12
12
|
| anicloud | [动效素材服务](https://cloud.tencent.com/document/product/1641) | 2023-05-18 01:01:53 |
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
| ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
|
|
16
16
|
| api | [云 API](https://cloud.tencent.com/document/product/1278) | 2023-01-05 01:02:52 |
|
|
17
17
|
| apigateway | [API 网关](https://cloud.tencent.com/document/product/628) | 2024-03-25 01:07:43 |
|
|
18
|
-
| apm | [应用性能监控](https://cloud.tencent.com/document/product/1463) | 2024-
|
|
18
|
+
| apm | [应用性能监控](https://cloud.tencent.com/document/product/1463) | 2024-04-25 01:09:12 |
|
|
19
19
|
| as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2024-03-20 01:08:05 |
|
|
20
20
|
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2024-04-16 01:04:30 |
|
|
21
21
|
| asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2023-05-18 01:04:02 |
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
| clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2024-03-28 01:11:53 |
|
|
60
60
|
| cloudaudit | [操作审计](https://cloud.tencent.com/document/product/629) | 2024-01-15 01:09:37 |
|
|
61
61
|
| cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2024-03-20 01:11:31 |
|
|
62
|
-
| cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2024-04-
|
|
62
|
+
| cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2024-04-25 01:12:20 |
|
|
63
63
|
| cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2024-04-22 01:12:01 |
|
|
64
64
|
| cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2024-03-20 01:12:05 |
|
|
65
65
|
| cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2024-03-20 01:12:14 |
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2024-04-22 01:12:38 |
|
|
73
73
|
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2024-04-22 01:12:53 |
|
|
74
74
|
| cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
|
|
75
|
-
| cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2024-04-
|
|
75
|
+
| cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2024-04-25 01:13:56 |
|
|
76
76
|
| dasb | [T-Sec-堡垒机(BH)](https://cloud.tencent.com/document/product/1025) | 2024-04-22 01:14:04 |
|
|
77
77
|
| dataintegration | [数据接入平台](https://cloud.tencent.com/document/product/1591) | 2022-07-26 15:32:15 |
|
|
78
78
|
| dayu | [DDoS 高防包](https://cloud.tencent.com/document/product/1021) | 2023-05-18 01:20:11 |
|
|
@@ -96,8 +96,8 @@
|
|
|
96
96
|
| eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-08-10 01:17:44 |
|
|
97
97
|
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2024-04-17 01:13:44 |
|
|
98
98
|
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2024-04-19 01:17:21 |
|
|
99
|
-
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-04-
|
|
100
|
-
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-04-
|
|
99
|
+
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-04-25 01:16:34 |
|
|
100
|
+
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-04-25 01:16:48 |
|
|
101
101
|
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2024-04-18 01:20:43 |
|
|
102
102
|
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2024-04-22 01:17:05 |
|
|
103
103
|
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2024-03-20 01:17:11 |
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
| gme | [游戏多媒体引擎](https://cloud.tencent.com/document/product/607) | 2024-03-20 01:17:27 |
|
|
107
107
|
| goosefs | [数据加速器 GooseFS](https://cloud.tencent.com/document/product/1424) | 2024-03-20 01:17:31 |
|
|
108
108
|
| gpm | [游戏玩家匹配](https://cloud.tencent.com/document/product/1294) | 2022-07-11 06:12:36 |
|
|
109
|
-
| gs | [云游戏](https://cloud.tencent.com/document/product/1162) | 2024-04-
|
|
109
|
+
| gs | [云游戏](https://cloud.tencent.com/document/product/1162) | 2024-04-25 01:17:27 |
|
|
110
110
|
| gse | [游戏服务器伸缩](https://cloud.tencent.com/document/product/1165) | 2022-07-11 06:12:44 |
|
|
111
111
|
| habo | [](https://cloud.tencent.com/document/product) | 2019-05-09 19:37:22 |
|
|
112
112
|
| hai | [高性能应用服务](https://cloud.tencent.com/document/product/1721) | 2024-03-22 01:16:13 |
|
|
@@ -119,23 +119,23 @@
|
|
|
119
119
|
| ie | [智能编辑](https://cloud.tencent.com/document/product/1186) | 2023-08-17 03:20:18 |
|
|
120
120
|
| iecp | [物联网边缘计算平台](https://cloud.tencent.com/document/product/1118) | 2024-03-20 01:17:49 |
|
|
121
121
|
| iir | [智能识图](https://cloud.tencent.com/document/product/1217) | 2022-04-04 06:48:05 |
|
|
122
|
-
| ims | [图片内容安全](https://cloud.tencent.com/document/product/1125) | 2024-
|
|
122
|
+
| ims | [图片内容安全](https://cloud.tencent.com/document/product/1125) | 2024-04-25 01:17:55 |
|
|
123
123
|
| ioa | [iOA 零信任安全管理系统](https://cloud.tencent.com/document/product/1092) | 2024-04-03 11:20:41 |
|
|
124
124
|
| iot | [加速物联网套件](https://cloud.tencent.com/document/product/568) | 2023-07-17 01:22:28 |
|
|
125
125
|
| iotcloud | [物联网通信](https://cloud.tencent.com/document/product/634) | 2024-03-20 01:18:04 |
|
|
126
|
-
| iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2024-04-
|
|
126
|
+
| iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2024-04-25 01:18:05 |
|
|
127
127
|
| iottid | [物联网设备身份认证](https://cloud.tencent.com/document/product/1086) | 2023-05-18 01:33:02 |
|
|
128
128
|
| iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2024-03-20 01:18:42 |
|
|
129
129
|
| iotvideoindustry | [物联网智能视频服务(行业版)](https://cloud.tencent.com/document/product/1361) | 2024-03-20 01:18:54 |
|
|
130
130
|
| irp | [智能推荐平台](https://cloud.tencent.com/document/product/1541) | 2024-03-20 01:19:05 |
|
|
131
|
-
| iss | [智能视图计算平台](https://cloud.tencent.com/document/product/1344) | 2024-04-
|
|
131
|
+
| iss | [智能视图计算平台](https://cloud.tencent.com/document/product/1344) | 2024-04-24 15:03:09 |
|
|
132
132
|
| ivld | [媒体智能标签](https://cloud.tencent.com/document/product/1509) | 2024-03-20 01:19:17 |
|
|
133
133
|
| keewidb | [云数据库 KeeWiDB](https://cloud.tencent.com/document/product/1520) | 2024-03-20 01:19:20 |
|
|
134
134
|
| kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2024-04-17 01:17:16 |
|
|
135
135
|
| lcic | [实时互动-教育版](https://cloud.tencent.com/document/product/1639) | 2024-04-18 01:23:16 |
|
|
136
136
|
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2024-04-24 01:15:16 |
|
|
137
137
|
| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2024-04-24 01:15:28 |
|
|
138
|
-
| lke | [大模型知识引擎](https://cloud.tencent.com/document/product/1759) | 2024-04-
|
|
138
|
+
| lke | [大模型知识引擎](https://cloud.tencent.com/document/product/1759) | 2024-04-25 01:19:55 |
|
|
139
139
|
| lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 |
|
|
140
140
|
| lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2022-04-04 06:56:52 |
|
|
141
141
|
| mall | [商场客留大数据](https://cloud.tencent.com/document/product/1707) | 2024-03-20 01:20:11 |
|
|
@@ -202,11 +202,11 @@
|
|
|
202
202
|
| tcr | [容器镜像服务](https://cloud.tencent.com/document/product/1141) | 2024-03-20 01:24:52 |
|
|
203
203
|
| tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2024-04-22 01:25:22 |
|
|
204
204
|
| tdcpg | [TDSQL-C PostgreSQL 版](https://cloud.tencent.com/document/product/1556) | 2024-03-20 01:25:48 |
|
|
205
|
-
| tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2024-
|
|
205
|
+
| tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2024-04-25 01:24:56 |
|
|
206
206
|
| tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2024-04-24 01:21:13 |
|
|
207
207
|
| tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2024-04-22 01:26:50 |
|
|
208
208
|
| tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2024-03-20 01:26:14 |
|
|
209
|
-
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2024-04-
|
|
209
|
+
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2024-04-25 01:25:25 |
|
|
210
210
|
| thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2024-03-20 01:27:05 |
|
|
211
211
|
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
|
|
212
212
|
| tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2023-08-17 05:26:08 |
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
| tics | [威胁情报云查服务](https://cloud.tencent.com/document/product/1013) | 2024-03-20 01:27:08 |
|
|
215
215
|
| tiems | [腾讯云 TI 平台 TI-EMS ](https://cloud.tencent.com/document/product/1120) | 2022-07-19 06:19:39 |
|
|
216
216
|
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2024-03-20 01:27:09 |
|
|
217
|
-
| tione | [TI-ONE 训练平台](https://cloud.tencent.com/document/product/851) | 2024-04-
|
|
217
|
+
| tione | [TI-ONE 训练平台](https://cloud.tencent.com/document/product/851) | 2024-04-25 01:25:56 |
|
|
218
218
|
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2024-03-20 01:27:28 |
|
|
219
219
|
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2024-03-20 01:28:56 |
|
|
220
220
|
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const sdkVersion = "4.0.
|
|
1
|
+
export const sdkVersion = "4.0.842"
|
|
@@ -22,36 +22,44 @@ import {
|
|
|
22
22
|
ModifyApmInstanceRequest,
|
|
23
23
|
ApmInstanceDetail,
|
|
24
24
|
CreateApmInstanceRequest,
|
|
25
|
+
ModifyGeneralApmApplicationConfigRequest,
|
|
25
26
|
DescribeServiceOverviewResponse,
|
|
26
27
|
QueryMetricItem,
|
|
27
28
|
TerminateApmInstanceRequest,
|
|
28
29
|
DescribeApmInstancesResponse,
|
|
30
|
+
Instrument,
|
|
31
|
+
DescribeTagValuesResponse,
|
|
29
32
|
Span,
|
|
30
33
|
ApmAgentInfo,
|
|
31
34
|
DescribeGeneralSpanListResponse,
|
|
32
35
|
ApmMetricRecord,
|
|
33
36
|
DescribeServiceOverviewRequest,
|
|
34
37
|
DescribeApmAgentResponse,
|
|
38
|
+
DescribeTagValuesRequest,
|
|
35
39
|
ApmField,
|
|
36
40
|
Line,
|
|
37
|
-
|
|
41
|
+
ApmApplicationConfigView,
|
|
42
|
+
ApmTag,
|
|
38
43
|
APMKVItem,
|
|
39
44
|
OrderBy,
|
|
40
45
|
DescribeMetricRecordsResponse,
|
|
41
|
-
|
|
46
|
+
DescribeGeneralSpanListRequest,
|
|
42
47
|
Filter,
|
|
43
48
|
APMKV,
|
|
44
49
|
DescribeApmAgentRequest,
|
|
45
50
|
DescribeMetricRecordsRequest,
|
|
51
|
+
DescribeGeneralApmApplicationConfigResponse,
|
|
46
52
|
DescribeGeneralMetricDataRequest,
|
|
47
53
|
CreateApmInstanceResponse,
|
|
48
54
|
SpanReference,
|
|
49
55
|
SpanProcess,
|
|
56
|
+
DescribeGeneralApmApplicationConfigRequest,
|
|
50
57
|
ModifyApmInstanceResponse,
|
|
51
58
|
GeneralFilter,
|
|
52
59
|
DescribeApmInstancesRequest,
|
|
53
60
|
SpanTag,
|
|
54
61
|
DescribeGeneralMetricDataResponse,
|
|
62
|
+
ModifyGeneralApmApplicationConfigResponse,
|
|
55
63
|
TerminateApmInstanceResponse,
|
|
56
64
|
} from "./apm_models"
|
|
57
65
|
|
|
@@ -65,13 +73,23 @@ export class Client extends AbstractClient {
|
|
|
65
73
|
}
|
|
66
74
|
|
|
67
75
|
/**
|
|
68
|
-
*
|
|
76
|
+
* 查询应用配置信息
|
|
69
77
|
*/
|
|
70
|
-
async
|
|
71
|
-
req:
|
|
72
|
-
cb?: (error: string, rep:
|
|
73
|
-
): Promise<
|
|
74
|
-
return this.request("
|
|
78
|
+
async DescribeGeneralApmApplicationConfig(
|
|
79
|
+
req: DescribeGeneralApmApplicationConfigRequest,
|
|
80
|
+
cb?: (error: string, rep: DescribeGeneralApmApplicationConfigResponse) => void
|
|
81
|
+
): Promise<DescribeGeneralApmApplicationConfigResponse> {
|
|
82
|
+
return this.request("DescribeGeneralApmApplicationConfig", req, cb)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* 根据维度名和过滤条件,查询维度数据.
|
|
87
|
+
*/
|
|
88
|
+
async DescribeTagValues(
|
|
89
|
+
req: DescribeTagValuesRequest,
|
|
90
|
+
cb?: (error: string, rep: DescribeTagValuesResponse) => void
|
|
91
|
+
): Promise<DescribeTagValuesResponse> {
|
|
92
|
+
return this.request("DescribeTagValues", req, cb)
|
|
75
93
|
}
|
|
76
94
|
|
|
77
95
|
/**
|
|
@@ -104,6 +122,26 @@ export class Client extends AbstractClient {
|
|
|
104
122
|
return this.request("DescribeApmAgent", req, cb)
|
|
105
123
|
}
|
|
106
124
|
|
|
125
|
+
/**
|
|
126
|
+
* 修改APM实例接口
|
|
127
|
+
*/
|
|
128
|
+
async ModifyApmInstance(
|
|
129
|
+
req: ModifyApmInstanceRequest,
|
|
130
|
+
cb?: (error: string, rep: ModifyApmInstanceResponse) => void
|
|
131
|
+
): Promise<ModifyApmInstanceResponse> {
|
|
132
|
+
return this.request("ModifyApmInstance", req, cb)
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* 对外开放的openApi,客户可以灵活的指定需要修改的字段,再加入需要修改的服务列表.
|
|
137
|
+
*/
|
|
138
|
+
async ModifyGeneralApmApplicationConfig(
|
|
139
|
+
req: ModifyGeneralApmApplicationConfigRequest,
|
|
140
|
+
cb?: (error: string, rep: ModifyGeneralApmApplicationConfigResponse) => void
|
|
141
|
+
): Promise<ModifyGeneralApmApplicationConfigResponse> {
|
|
142
|
+
return this.request("ModifyGeneralApmApplicationConfig", req, cb)
|
|
143
|
+
}
|
|
144
|
+
|
|
107
145
|
/**
|
|
108
146
|
* 获取指标数据通用接口。用户根据需要上送请求参数,返回对应的指标数据。
|
|
109
147
|
接口调用频率限制为:20次/秒,1200次/分钟。单请求的数据点数限制为1440个。
|
|
@@ -292,6 +292,24 @@ export interface CreateApmInstanceRequest {
|
|
|
292
292
|
PayMode?: number
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
+
/**
|
|
296
|
+
* ModifyGeneralApmApplicationConfig请求参数结构体
|
|
297
|
+
*/
|
|
298
|
+
export interface ModifyGeneralApmApplicationConfigRequest {
|
|
299
|
+
/**
|
|
300
|
+
* 实例Id
|
|
301
|
+
*/
|
|
302
|
+
InstanceId: string
|
|
303
|
+
/**
|
|
304
|
+
* 需要修改的字段key value分别指定字段名、字段值
|
|
305
|
+
*/
|
|
306
|
+
Tags: Array<ApmTag>
|
|
307
|
+
/**
|
|
308
|
+
* 需要修改配置的服务列表名称
|
|
309
|
+
*/
|
|
310
|
+
ServiceNames?: Array<string>
|
|
311
|
+
}
|
|
312
|
+
|
|
295
313
|
/**
|
|
296
314
|
* DescribeServiceOverview返回参数结构体
|
|
297
315
|
*/
|
|
@@ -350,6 +368,36 @@ export interface DescribeApmInstancesResponse {
|
|
|
350
368
|
RequestId?: string
|
|
351
369
|
}
|
|
352
370
|
|
|
371
|
+
/**
|
|
372
|
+
* 组件
|
|
373
|
+
*/
|
|
374
|
+
export interface Instrument {
|
|
375
|
+
/**
|
|
376
|
+
* 组件名称
|
|
377
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
378
|
+
*/
|
|
379
|
+
Name?: string
|
|
380
|
+
/**
|
|
381
|
+
* 组件开关
|
|
382
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
383
|
+
*/
|
|
384
|
+
Enable?: boolean
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* DescribeTagValues返回参数结构体
|
|
389
|
+
*/
|
|
390
|
+
export interface DescribeTagValuesResponse {
|
|
391
|
+
/**
|
|
392
|
+
* 维度值列表
|
|
393
|
+
*/
|
|
394
|
+
Values?: Array<string>
|
|
395
|
+
/**
|
|
396
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
397
|
+
*/
|
|
398
|
+
RequestId?: string
|
|
399
|
+
}
|
|
400
|
+
|
|
353
401
|
/**
|
|
354
402
|
* Span对象
|
|
355
403
|
*/
|
|
@@ -541,6 +589,40 @@ export interface DescribeApmAgentResponse {
|
|
|
541
589
|
RequestId?: string
|
|
542
590
|
}
|
|
543
591
|
|
|
592
|
+
/**
|
|
593
|
+
* DescribeTagValues请求参数结构体
|
|
594
|
+
*/
|
|
595
|
+
export interface DescribeTagValuesRequest {
|
|
596
|
+
/**
|
|
597
|
+
* 维度名
|
|
598
|
+
*/
|
|
599
|
+
TagKey: string
|
|
600
|
+
/**
|
|
601
|
+
* 实例ID
|
|
602
|
+
*/
|
|
603
|
+
InstanceId?: string
|
|
604
|
+
/**
|
|
605
|
+
* 结束时间
|
|
606
|
+
*/
|
|
607
|
+
EndTime?: number
|
|
608
|
+
/**
|
|
609
|
+
* 过滤条件
|
|
610
|
+
*/
|
|
611
|
+
Filters?: Array<Filter>
|
|
612
|
+
/**
|
|
613
|
+
* 开始时间
|
|
614
|
+
*/
|
|
615
|
+
StartTime?: number
|
|
616
|
+
/**
|
|
617
|
+
* Or过滤条件
|
|
618
|
+
*/
|
|
619
|
+
OrFilters?: Array<Filter>
|
|
620
|
+
/**
|
|
621
|
+
* 使用类型
|
|
622
|
+
*/
|
|
623
|
+
Type?: string
|
|
624
|
+
}
|
|
625
|
+
|
|
544
626
|
/**
|
|
545
627
|
* 指标维度信息
|
|
546
628
|
*/
|
|
@@ -605,41 +687,102 @@ export interface Line {
|
|
|
605
687
|
}
|
|
606
688
|
|
|
607
689
|
/**
|
|
608
|
-
*
|
|
690
|
+
* 应用相关的配置列表项
|
|
609
691
|
*/
|
|
610
|
-
export interface
|
|
692
|
+
export interface ApmApplicationConfigView {
|
|
611
693
|
/**
|
|
612
|
-
*
|
|
694
|
+
* 实例ID
|
|
613
695
|
*/
|
|
614
|
-
|
|
696
|
+
InstanceKey?: string
|
|
615
697
|
/**
|
|
616
|
-
*
|
|
698
|
+
* 服务名
|
|
617
699
|
*/
|
|
618
|
-
|
|
700
|
+
ServiceName?: string
|
|
619
701
|
/**
|
|
620
|
-
*
|
|
702
|
+
* 接口过滤
|
|
621
703
|
*/
|
|
622
|
-
|
|
704
|
+
OperationNameFilter?: string
|
|
623
705
|
/**
|
|
624
|
-
*
|
|
706
|
+
* 异常过滤
|
|
625
707
|
*/
|
|
626
|
-
|
|
708
|
+
ExceptionFilter?: string
|
|
627
709
|
/**
|
|
628
|
-
*
|
|
710
|
+
* 错误码过滤
|
|
629
711
|
*/
|
|
630
|
-
|
|
712
|
+
ErrorCodeFilter?: string
|
|
631
713
|
/**
|
|
632
|
-
*
|
|
714
|
+
* 应用诊断开关
|
|
715
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
633
716
|
*/
|
|
634
|
-
|
|
717
|
+
EventEnable?: boolean
|
|
635
718
|
/**
|
|
636
|
-
*
|
|
719
|
+
* URL收敛开关 0 关 1 开
|
|
637
720
|
*/
|
|
638
|
-
|
|
721
|
+
UrlConvergenceSwitch?: number
|
|
639
722
|
/**
|
|
640
|
-
*
|
|
723
|
+
* URL收敛阈值
|
|
641
724
|
*/
|
|
642
|
-
|
|
725
|
+
UrlConvergenceThreshold?: number
|
|
726
|
+
/**
|
|
727
|
+
* URL收敛规则正则
|
|
728
|
+
*/
|
|
729
|
+
UrlConvergence?: string
|
|
730
|
+
/**
|
|
731
|
+
* URL排除规则正则
|
|
732
|
+
*/
|
|
733
|
+
UrlExclude?: string
|
|
734
|
+
/**
|
|
735
|
+
* 是否开启日志 0 关 1 开
|
|
736
|
+
*/
|
|
737
|
+
IsRelatedLog?: number
|
|
738
|
+
/**
|
|
739
|
+
* 日志来源
|
|
740
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
741
|
+
*/
|
|
742
|
+
LogSource?: string
|
|
743
|
+
/**
|
|
744
|
+
* CLS日志集
|
|
745
|
+
*/
|
|
746
|
+
LogSet?: string
|
|
747
|
+
/**
|
|
748
|
+
* 日志主题ID
|
|
749
|
+
*/
|
|
750
|
+
LogTopicID?: string
|
|
751
|
+
/**
|
|
752
|
+
* 线程剖析开关
|
|
753
|
+
*/
|
|
754
|
+
SnapshotEnable?: boolean
|
|
755
|
+
/**
|
|
756
|
+
* 线程剖析超时阈值
|
|
757
|
+
*/
|
|
758
|
+
SnapshotTimeout?: number
|
|
759
|
+
/**
|
|
760
|
+
* 探针开启开关
|
|
761
|
+
*/
|
|
762
|
+
AgentEnable?: boolean
|
|
763
|
+
/**
|
|
764
|
+
* 组件列表开关
|
|
765
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
766
|
+
*/
|
|
767
|
+
InstrumentList?: Array<Instrument>
|
|
768
|
+
/**
|
|
769
|
+
* 链路压缩开关
|
|
770
|
+
*/
|
|
771
|
+
TraceSquash?: boolean
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* 维度(标签)对象
|
|
776
|
+
*/
|
|
777
|
+
export interface ApmTag {
|
|
778
|
+
/**
|
|
779
|
+
* 维度Key(列名,标签Key)
|
|
780
|
+
*/
|
|
781
|
+
Key: string
|
|
782
|
+
/**
|
|
783
|
+
* 维度值(标签值)
|
|
784
|
+
*/
|
|
785
|
+
Value: string
|
|
643
786
|
}
|
|
644
787
|
|
|
645
788
|
/**
|
|
@@ -693,17 +836,41 @@ export interface DescribeMetricRecordsResponse {
|
|
|
693
836
|
}
|
|
694
837
|
|
|
695
838
|
/**
|
|
696
|
-
*
|
|
839
|
+
* DescribeGeneralSpanList请求参数结构体
|
|
697
840
|
*/
|
|
698
|
-
export interface
|
|
841
|
+
export interface DescribeGeneralSpanListRequest {
|
|
699
842
|
/**
|
|
700
|
-
*
|
|
843
|
+
* 分页
|
|
701
844
|
*/
|
|
702
|
-
|
|
845
|
+
Offset: number
|
|
703
846
|
/**
|
|
704
|
-
*
|
|
847
|
+
* 列表项个数
|
|
705
848
|
*/
|
|
706
|
-
|
|
849
|
+
Limit: number
|
|
850
|
+
/**
|
|
851
|
+
* 排序
|
|
852
|
+
*/
|
|
853
|
+
OrderBy?: OrderBy
|
|
854
|
+
/**
|
|
855
|
+
* span查询开始时间戳(单位:秒)
|
|
856
|
+
*/
|
|
857
|
+
StartTime?: number
|
|
858
|
+
/**
|
|
859
|
+
* 实例名
|
|
860
|
+
*/
|
|
861
|
+
InstanceId?: string
|
|
862
|
+
/**
|
|
863
|
+
* 通用过滤参数
|
|
864
|
+
*/
|
|
865
|
+
Filters?: Array<Filter>
|
|
866
|
+
/**
|
|
867
|
+
* 业务自身服务名
|
|
868
|
+
*/
|
|
869
|
+
BusinessName?: string
|
|
870
|
+
/**
|
|
871
|
+
* span查询结束时间戳(单位:秒)
|
|
872
|
+
*/
|
|
873
|
+
EndTime?: number
|
|
707
874
|
}
|
|
708
875
|
|
|
709
876
|
/**
|
|
@@ -824,6 +991,20 @@ export interface DescribeMetricRecordsRequest {
|
|
|
824
991
|
OrFilters?: Array<Filter>
|
|
825
992
|
}
|
|
826
993
|
|
|
994
|
+
/**
|
|
995
|
+
* DescribeGeneralApmApplicationConfig返回参数结构体
|
|
996
|
+
*/
|
|
997
|
+
export interface DescribeGeneralApmApplicationConfigResponse {
|
|
998
|
+
/**
|
|
999
|
+
* 应用配置项
|
|
1000
|
+
*/
|
|
1001
|
+
ApmApplicationConfigView?: ApmApplicationConfigView
|
|
1002
|
+
/**
|
|
1003
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1004
|
+
*/
|
|
1005
|
+
RequestId?: string
|
|
1006
|
+
}
|
|
1007
|
+
|
|
827
1008
|
/**
|
|
828
1009
|
* DescribeGeneralMetricData请求参数结构体
|
|
829
1010
|
*/
|
|
@@ -935,6 +1116,20 @@ export interface SpanProcess {
|
|
|
935
1116
|
Tags: Array<SpanTag>
|
|
936
1117
|
}
|
|
937
1118
|
|
|
1119
|
+
/**
|
|
1120
|
+
* DescribeGeneralApmApplicationConfig请求参数结构体
|
|
1121
|
+
*/
|
|
1122
|
+
export interface DescribeGeneralApmApplicationConfigRequest {
|
|
1123
|
+
/**
|
|
1124
|
+
* 应用名
|
|
1125
|
+
*/
|
|
1126
|
+
ServiceName: string
|
|
1127
|
+
/**
|
|
1128
|
+
* 实例Id
|
|
1129
|
+
*/
|
|
1130
|
+
InstanceId: string
|
|
1131
|
+
}
|
|
1132
|
+
|
|
938
1133
|
/**
|
|
939
1134
|
* ModifyApmInstance返回参数结构体
|
|
940
1135
|
*/
|
|
@@ -1020,6 +1215,20 @@ export interface DescribeGeneralMetricDataResponse {
|
|
|
1020
1215
|
RequestId?: string
|
|
1021
1216
|
}
|
|
1022
1217
|
|
|
1218
|
+
/**
|
|
1219
|
+
* ModifyGeneralApmApplicationConfig返回参数结构体
|
|
1220
|
+
*/
|
|
1221
|
+
export interface ModifyGeneralApmApplicationConfigResponse {
|
|
1222
|
+
/**
|
|
1223
|
+
* 返回值描述
|
|
1224
|
+
*/
|
|
1225
|
+
Message?: string
|
|
1226
|
+
/**
|
|
1227
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1228
|
+
*/
|
|
1229
|
+
RequestId?: string
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1023
1232
|
/**
|
|
1024
1233
|
* TerminateApmInstance返回参数结构体
|
|
1025
1234
|
*/
|
|
@@ -104,7 +104,7 @@ export interface CreateWorkspaceTokenRequest {
|
|
|
104
104
|
*/
|
|
105
105
|
TokenExpiredLimitSec?: number
|
|
106
106
|
/**
|
|
107
|
-
* token 授权策略,可选值为 workspace-run-only, all。默认为
|
|
107
|
+
* token 授权策略,可选值为 workspace-run-only, all。默认为 workspace-run-only
|
|
108
108
|
*/
|
|
109
109
|
Policies?: Array<string>
|
|
110
110
|
}
|