tencentcloud-sdk-nodejs-apm 4.0.247

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.
@@ -0,0 +1,39 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
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
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
19
+ import { DescribeApmAgentRequest, DescribeApmAgentResponse, ApmAgentInfo } from "./apm_models"
20
+
21
+ /**
22
+ * apm client
23
+ * @class
24
+ */
25
+ export class Client extends TencentCloudCommon.AbstractClient {
26
+ constructor(clientConfig: TencentCloudCommon.ClientConfig) {
27
+ super("apm.tencentcloudapi.com", "2021-06-22", clientConfig)
28
+ }
29
+
30
+ /**
31
+ * 获取Apm Agent信息
32
+ */
33
+ async DescribeApmAgent(
34
+ req: DescribeApmAgentRequest,
35
+ cb?: (error: string, rep: DescribeApmAgentResponse) => void
36
+ ): Promise<DescribeApmAgentResponse> {
37
+ return this.request("DescribeApmAgent", req, cb)
38
+ }
39
+ }
@@ -0,0 +1,98 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+
18
+ /**
19
+ * DescribeApmAgent请求参数结构体
20
+ */
21
+ export interface DescribeApmAgentRequest {
22
+ /**
23
+ * 实例ID
24
+ */
25
+ InstanceId: string
26
+
27
+ /**
28
+ * 接入方式
29
+ */
30
+ AgentType?: string
31
+
32
+ /**
33
+ * 环境
34
+ */
35
+ NetworkMode?: string
36
+
37
+ /**
38
+ * 语言
39
+ */
40
+ LanguageEnvironment?: string
41
+ }
42
+
43
+ /**
44
+ * DescribeApmAgent返回参数结构体
45
+ */
46
+ export interface DescribeApmAgentResponse {
47
+ /**
48
+ * Agent信息
49
+ 注意:此字段可能返回 null,表示取不到有效值。
50
+ */
51
+ ApmAgent: ApmAgentInfo
52
+
53
+ /**
54
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
55
+ */
56
+ RequestId?: string
57
+ }
58
+
59
+ /**
60
+ * apm Agent信息
61
+ */
62
+ export interface ApmAgentInfo {
63
+ /**
64
+ * Agent下载地址
65
+ 注意:此字段可能返回 null,表示取不到有效值。
66
+ */
67
+ AgentDownloadURL: string
68
+
69
+ /**
70
+ * Collector上报地址
71
+ 注意:此字段可能返回 null,表示取不到有效值。
72
+ */
73
+ CollectorURL: string
74
+
75
+ /**
76
+ * Token信息
77
+ 注意:此字段可能返回 null,表示取不到有效值。
78
+ */
79
+ Token: string
80
+
81
+ /**
82
+ * 外网上报地址
83
+ 注意:此字段可能返回 null,表示取不到有效值。
84
+ */
85
+ PublicCollectorURL: string
86
+
87
+ /**
88
+ * 自研VPC上报地址
89
+ 注意:此字段可能返回 null,表示取不到有效值。
90
+ */
91
+ InnerCollectorURL: string
92
+
93
+ /**
94
+ * 内网上报地址(Private Link上报地址)
95
+ 注意:此字段可能返回 null,表示取不到有效值。
96
+ */
97
+ PrivateLinkCollectorURL: string
98
+ }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./apm_models"
2
+ import { Client } from "./apm_client"
3
+ export const v20210622 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ }
@@ -0,0 +1 @@
1
+ export { apm } from "./apm"
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./services"), exports);
@@ -0,0 +1,6 @@
1
+ export declare const apm: {
2
+ v20210622: {
3
+ Client: typeof import("./v20210622/apm_client").Client;
4
+ Models: typeof import("./v20210622/apm_models");
5
+ };
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.apm = void 0;
4
+ const v20210622_1 = require("./v20210622");
5
+ exports.apm = {
6
+ v20210622: v20210622_1.v20210622,
7
+ };
@@ -0,0 +1,13 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ import { DescribeApmAgentRequest, DescribeApmAgentResponse } from "./apm_models";
3
+ /**
4
+ * apm client
5
+ * @class
6
+ */
7
+ export declare class Client extends TencentCloudCommon.AbstractClient {
8
+ constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
+ /**
10
+ * 获取Apm Agent信息
11
+ */
12
+ DescribeApmAgent(req: DescribeApmAgentRequest, cb?: (error: string, rep: DescribeApmAgentResponse) => void): Promise<DescribeApmAgentResponse>;
13
+ }
@@ -0,0 +1,37 @@
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 TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
22
+ /**
23
+ * apm client
24
+ * @class
25
+ */
26
+ class Client extends TencentCloudCommon.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("apm.tencentcloudapi.com", "2021-06-22", clientConfig);
29
+ }
30
+ /**
31
+ * 获取Apm Agent信息
32
+ */
33
+ async DescribeApmAgent(req, cb) {
34
+ return this.request("DescribeApmAgent", req, cb);
35
+ }
36
+ }
37
+ exports.Client = Client;
@@ -0,0 +1,70 @@
1
+ /**
2
+ * DescribeApmAgent请求参数结构体
3
+ */
4
+ export interface DescribeApmAgentRequest {
5
+ /**
6
+ * 实例ID
7
+ */
8
+ InstanceId: string;
9
+ /**
10
+ * 接入方式
11
+ */
12
+ AgentType?: string;
13
+ /**
14
+ * 环境
15
+ */
16
+ NetworkMode?: string;
17
+ /**
18
+ * 语言
19
+ */
20
+ LanguageEnvironment?: string;
21
+ }
22
+ /**
23
+ * DescribeApmAgent返回参数结构体
24
+ */
25
+ export interface DescribeApmAgentResponse {
26
+ /**
27
+ * Agent信息
28
+ 注意:此字段可能返回 null,表示取不到有效值。
29
+ */
30
+ ApmAgent: ApmAgentInfo;
31
+ /**
32
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
33
+ */
34
+ RequestId?: string;
35
+ }
36
+ /**
37
+ * apm Agent信息
38
+ */
39
+ export interface ApmAgentInfo {
40
+ /**
41
+ * Agent下载地址
42
+ 注意:此字段可能返回 null,表示取不到有效值。
43
+ */
44
+ AgentDownloadURL: string;
45
+ /**
46
+ * Collector上报地址
47
+ 注意:此字段可能返回 null,表示取不到有效值。
48
+ */
49
+ CollectorURL: string;
50
+ /**
51
+ * Token信息
52
+ 注意:此字段可能返回 null,表示取不到有效值。
53
+ */
54
+ Token: string;
55
+ /**
56
+ * 外网上报地址
57
+ 注意:此字段可能返回 null,表示取不到有效值。
58
+ */
59
+ PublicCollectorURL: string;
60
+ /**
61
+ * 自研VPC上报地址
62
+ 注意:此字段可能返回 null,表示取不到有效值。
63
+ */
64
+ InnerCollectorURL: string;
65
+ /**
66
+ * 内网上报地址(Private Link上报地址)
67
+ 注意:此字段可能返回 null,表示取不到有效值。
68
+ */
69
+ PrivateLinkCollectorURL: string;
70
+ }
@@ -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 });
@@ -0,0 +1,6 @@
1
+ import * as Models from "./apm_models";
2
+ import { Client } from "./apm_client";
3
+ export declare const v20210622: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20210622 = void 0;
4
+ const Models = require("./apm_models");
5
+ const apm_client_1 = require("./apm_client");
6
+ exports.v20210622 = {
7
+ Client: apm_client_1.Client,
8
+ Models: Models,
9
+ };
@@ -0,0 +1 @@
1
+ export { apm } from "./apm";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var apm_1 = require("./apm");
4
+ Object.defineProperty(exports, "apm", { enumerable: true, get: function () { return apm_1.apm; } });
package/tsconfig.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "compilerOptions": {
3
+ // "incremental": true, /* 增量编译 提高编译速度*/
4
+ "target": "ES2019" /* 编译目标ES版本*/,
5
+ "module": "commonjs" /* 编译目标模块系统*/,
6
+ // "lib": [], /* 编译过程中需要引入的库文件列表*/
7
+ "declaration": true /* 编译时创建声明文件 */,
8
+ "outDir": "tencentcloud" /* ts编译输出目录 */,
9
+ "rootDir": "src" /* ts编译根目录. */,
10
+ "importHelpers": true /* 从tslib导入辅助工具函数(如__importDefault)*/,
11
+ "strict": true /* 严格模式开关 等价于noImplicitAny、strictNullChecks、strictFunctionTypes、strictBindCallApply等设置true */,
12
+ "strictNullChecks": false,
13
+ "noUnusedLocals": false /* 未使用局部变量报错*/,
14
+ "noUnusedParameters": false /* 未使用参数报错*/,
15
+ "noImplicitReturns": true /* 有代码路径没有返回值时报错*/,
16
+ "noFallthroughCasesInSwitch": true /* 不允许switch的case语句贯穿*/,
17
+ "moduleResolution": "node" /* 模块解析策略 */,
18
+ "typeRoots": [
19
+ /* 要包含的类型声明文件路径列表*/
20
+ "./typings",
21
+ "./node_modules/@types"
22
+ ],
23
+ "allowSyntheticDefaultImports": true /* 允许从没有设置默认导出的模块中默认导入,仅用于提示,不影响编译结果*/,
24
+ "esModuleInterop": false /* 允许编译生成文件时,在代码中注入工具类(__importDefault、__importStar)对ESM与commonjs混用情况做兼容处理*/,
25
+ "sourceMap": false
26
+ },
27
+ "include": [
28
+ /* 需要编译的文件 */
29
+ "src/**/*.ts",
30
+ "typings/**/*.ts"
31
+ ],
32
+ "exclude": []
33
+ }
@@ -0,0 +1,2 @@
1
+ declare module "get-stream"
2
+ declare module "is-stream"