tencentcloud-sdk-nodejs-apm 4.1.115 → 4.1.120
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/es/services/apm/v20210622/apm_client.js +3 -0
- package/es/services/apm/v20210622/apm_models.js +1 -0
- package/package.json +6 -5
- package/tencentcloud/services/apm/v20210622/apm_client.d.ts +5 -1
- package/tencentcloud/services/apm/v20210622/apm_client.js +6 -0
- package/tencentcloud/services/apm/v20210622/apm_models.d.ts +163 -0
- package/tencentcloud/services/index.js +1 -0
|
@@ -42,6 +42,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
42
42
|
async CreateApmInstance(req, cb) {
|
|
43
43
|
return this.request("CreateApmInstance", req, cb);
|
|
44
44
|
}
|
|
45
|
+
async DescribeApmServiceMetric(req, cb) {
|
|
46
|
+
return this.request("DescribeApmServiceMetric", req, cb);
|
|
47
|
+
}
|
|
45
48
|
async DescribeServiceOverview(req, cb) {
|
|
46
49
|
return this.request("DescribeServiceOverview", req, cb);
|
|
47
50
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-apm",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.120",
|
|
4
4
|
"description": "腾讯云 API NODEJS SDK",
|
|
5
5
|
"main": "./tencentcloud/index.js",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"build:es": "tsc -p tsconfig.es.json",
|
|
13
13
|
"build:slim": "node ./scripts/build_slim.js",
|
|
14
14
|
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
|
15
|
-
"clean": "rimraf tencentcloud es"
|
|
15
|
+
"clean": "rimraf tencentcloud es",
|
|
16
|
+
"test:common": "vitest run"
|
|
16
17
|
},
|
|
17
18
|
"engines": {
|
|
18
19
|
"node": ">=10"
|
|
@@ -44,9 +45,8 @@
|
|
|
44
45
|
"url": "https://github.com/tencentcloud/tencentcloud-sdk-nodejs"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@types/form-data": "^2.5.0",
|
|
48
48
|
"@types/json-bigint": "^1.0.1",
|
|
49
|
-
"@types/node": "^
|
|
49
|
+
"@types/node": "^18.0.0",
|
|
50
50
|
"@types/node-fetch": "^2.5.7",
|
|
51
51
|
"@types/uuid": "^9.0.8",
|
|
52
52
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"prettier": "^2.3.0",
|
|
62
62
|
"rimraf": "^5.0.10",
|
|
63
63
|
"ts-node": "^8.10.2",
|
|
64
|
-
"typescript": "^
|
|
64
|
+
"typescript": "^5.9.2",
|
|
65
|
+
"vitest": "2.1.9"
|
|
65
66
|
}
|
|
66
67
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { ModifyApmInstanceRequest, CreateApmInstanceRequest, ModifyGeneralApmApplicationConfigRequest, DescribeServiceOverviewResponse, TerminateApmInstanceRequest, DescribeApmInstancesResponse, DescribeTagValuesResponse, DescribeServiceOverviewRequest, DescribeApmAgentResponse, DescribeTagValuesRequest, DescribeGeneralSpanListResponse, CreateProfileTaskResponse, DescribeGeneralSpanListRequest, DescribeMetricRecordsResponse, DescribeGeneralOTSpanListResponse, DescribeGeneralOTSpanListRequest, DescribeApmAgentRequest, DescribeMetricRecordsRequest, DescribeGeneralApmApplicationConfigResponse, DescribeGeneralMetricDataRequest, CreateApmInstanceResponse, CreateProfileTaskRequest, DescribeGeneralApmApplicationConfigRequest, ModifyApmInstanceResponse, DescribeApmInstancesRequest, DescribeGeneralMetricDataResponse, ModifyGeneralApmApplicationConfigResponse, TerminateApmInstanceResponse } from "./apm_models";
|
|
2
|
+
import { ModifyApmInstanceRequest, CreateApmInstanceRequest, ModifyGeneralApmApplicationConfigRequest, DescribeApmServiceMetricRequest, DescribeServiceOverviewResponse, TerminateApmInstanceRequest, DescribeApmInstancesResponse, DescribeTagValuesResponse, DescribeServiceOverviewRequest, DescribeApmAgentResponse, DescribeTagValuesRequest, DescribeGeneralSpanListResponse, CreateProfileTaskResponse, DescribeGeneralSpanListRequest, DescribeApmServiceMetricResponse, DescribeMetricRecordsResponse, DescribeGeneralOTSpanListResponse, DescribeGeneralOTSpanListRequest, DescribeApmAgentRequest, DescribeMetricRecordsRequest, DescribeGeneralApmApplicationConfigResponse, DescribeGeneralMetricDataRequest, CreateApmInstanceResponse, CreateProfileTaskRequest, DescribeGeneralApmApplicationConfigRequest, ModifyApmInstanceResponse, DescribeApmInstancesRequest, DescribeGeneralMetricDataResponse, ModifyGeneralApmApplicationConfigResponse, TerminateApmInstanceResponse } from "./apm_models";
|
|
3
3
|
/**
|
|
4
4
|
* apm client
|
|
5
5
|
* @class
|
|
@@ -59,6 +59,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
59
59
|
* 业务购买 APM 业务系统,调用该接口创建
|
|
60
60
|
*/
|
|
61
61
|
CreateApmInstance(req: CreateApmInstanceRequest, cb?: (error: string, rep: CreateApmInstanceResponse) => void): Promise<CreateApmInstanceResponse>;
|
|
62
|
+
/**
|
|
63
|
+
* 获取 APM 应用指标列表
|
|
64
|
+
*/
|
|
65
|
+
DescribeApmServiceMetric(req: DescribeApmServiceMetricRequest, cb?: (error: string, rep: DescribeApmServiceMetricResponse) => void): Promise<DescribeApmServiceMetricResponse>;
|
|
62
66
|
/**
|
|
63
67
|
* 应用概览数据拉取
|
|
64
68
|
*/
|
|
@@ -107,6 +107,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
107
107
|
async CreateApmInstance(req, cb) {
|
|
108
108
|
return this.request("CreateApmInstance", req, cb);
|
|
109
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* 获取 APM 应用指标列表
|
|
112
|
+
*/
|
|
113
|
+
async DescribeApmServiceMetric(req, cb) {
|
|
114
|
+
return this.request("DescribeApmServiceMetric", req, cb);
|
|
115
|
+
}
|
|
110
116
|
/**
|
|
111
117
|
* 应用概览数据拉取
|
|
112
118
|
*/
|
|
@@ -472,6 +472,59 @@ export interface ModifyGeneralApmApplicationConfigRequest {
|
|
|
472
472
|
*/
|
|
473
473
|
ServiceNames: Array<string>;
|
|
474
474
|
}
|
|
475
|
+
/**
|
|
476
|
+
* DescribeApmServiceMetric请求参数结构体
|
|
477
|
+
*/
|
|
478
|
+
export interface DescribeApmServiceMetricRequest {
|
|
479
|
+
/**
|
|
480
|
+
* 业务系统ID
|
|
481
|
+
*/
|
|
482
|
+
InstanceId: string;
|
|
483
|
+
/**
|
|
484
|
+
* 应用名
|
|
485
|
+
*/
|
|
486
|
+
ServiceName?: string;
|
|
487
|
+
/**
|
|
488
|
+
* 应用ID
|
|
489
|
+
*/
|
|
490
|
+
ServiceID?: string;
|
|
491
|
+
/**
|
|
492
|
+
* 开始时间
|
|
493
|
+
*/
|
|
494
|
+
StartTime?: number;
|
|
495
|
+
/**
|
|
496
|
+
* 结束时间
|
|
497
|
+
*/
|
|
498
|
+
EndTime?: number;
|
|
499
|
+
/**
|
|
500
|
+
* 排序
|
|
501
|
+
*/
|
|
502
|
+
OrderBy?: OrderBy;
|
|
503
|
+
/**
|
|
504
|
+
* 是否demo模式
|
|
505
|
+
*/
|
|
506
|
+
Demo?: boolean;
|
|
507
|
+
/**
|
|
508
|
+
* 应用状态筛选,可枚举的值为:health、warning、error。如果选中多个状态用逗号隔开,比如:"warning,error"
|
|
509
|
+
*/
|
|
510
|
+
ServiceStatus?: string;
|
|
511
|
+
/**
|
|
512
|
+
* 标签列表
|
|
513
|
+
*/
|
|
514
|
+
Tags?: Array<ApmTag>;
|
|
515
|
+
/**
|
|
516
|
+
* 页码
|
|
517
|
+
*/
|
|
518
|
+
Page?: number;
|
|
519
|
+
/**
|
|
520
|
+
* 页大小
|
|
521
|
+
*/
|
|
522
|
+
PageSize?: number;
|
|
523
|
+
/**
|
|
524
|
+
* 过滤条件
|
|
525
|
+
*/
|
|
526
|
+
Filters?: Array<Filter>;
|
|
527
|
+
}
|
|
475
528
|
/**
|
|
476
529
|
* DescribeServiceOverview返回参数结构体
|
|
477
530
|
*/
|
|
@@ -502,6 +555,55 @@ export interface QueryMetricItem {
|
|
|
502
555
|
*/
|
|
503
556
|
Compare?: string;
|
|
504
557
|
}
|
|
558
|
+
/**
|
|
559
|
+
* 应用详细信息
|
|
560
|
+
*/
|
|
561
|
+
export interface ServiceDetail {
|
|
562
|
+
/**
|
|
563
|
+
* 应用ID
|
|
564
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
565
|
+
*/
|
|
566
|
+
ServiceID?: string;
|
|
567
|
+
/**
|
|
568
|
+
* 业务系统ID
|
|
569
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
570
|
+
*/
|
|
571
|
+
InstanceKey?: string;
|
|
572
|
+
/**
|
|
573
|
+
* 用户appid
|
|
574
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
575
|
+
*/
|
|
576
|
+
AppID?: number;
|
|
577
|
+
/**
|
|
578
|
+
* 主账号uin
|
|
579
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
580
|
+
*/
|
|
581
|
+
CreateUIN?: string;
|
|
582
|
+
/**
|
|
583
|
+
* 应用名
|
|
584
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
585
|
+
*/
|
|
586
|
+
ServiceName?: string;
|
|
587
|
+
/**
|
|
588
|
+
* 应用描述
|
|
589
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
590
|
+
*/
|
|
591
|
+
ServiceDescription?: string;
|
|
592
|
+
/**
|
|
593
|
+
* 地域
|
|
594
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
595
|
+
*/
|
|
596
|
+
Region?: string;
|
|
597
|
+
/**
|
|
598
|
+
* 标签
|
|
599
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
600
|
+
*/
|
|
601
|
+
Tags?: Array<ApmTag>;
|
|
602
|
+
/**
|
|
603
|
+
* 业务系统名称
|
|
604
|
+
*/
|
|
605
|
+
InstanceName?: string;
|
|
606
|
+
}
|
|
505
607
|
/**
|
|
506
608
|
* TerminateApmInstance请求参数结构体
|
|
507
609
|
*/
|
|
@@ -824,6 +926,26 @@ export interface DescribeTagValuesRequest {
|
|
|
824
926
|
*/
|
|
825
927
|
Type?: string;
|
|
826
928
|
}
|
|
929
|
+
/**
|
|
930
|
+
* apm应用指标信息
|
|
931
|
+
*/
|
|
932
|
+
export interface ApmServiceMetric {
|
|
933
|
+
/**
|
|
934
|
+
* filed数组
|
|
935
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
936
|
+
*/
|
|
937
|
+
Fields?: Array<ApmField>;
|
|
938
|
+
/**
|
|
939
|
+
* tag数组
|
|
940
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
941
|
+
*/
|
|
942
|
+
Tags?: Array<ApmTag>;
|
|
943
|
+
/**
|
|
944
|
+
* 应用信息
|
|
945
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
946
|
+
*/
|
|
947
|
+
ServiceDetail?: ServiceDetail;
|
|
948
|
+
}
|
|
827
949
|
/**
|
|
828
950
|
* 指标维度信息
|
|
829
951
|
*/
|
|
@@ -995,6 +1117,47 @@ export interface OrderBy {
|
|
|
995
1117
|
*/
|
|
996
1118
|
Value: string;
|
|
997
1119
|
}
|
|
1120
|
+
/**
|
|
1121
|
+
* DescribeApmServiceMetric返回参数结构体
|
|
1122
|
+
*/
|
|
1123
|
+
export interface DescribeApmServiceMetricResponse {
|
|
1124
|
+
/**
|
|
1125
|
+
* 应用指标列表
|
|
1126
|
+
*/
|
|
1127
|
+
ServiceMetricList?: Array<ApmServiceMetric>;
|
|
1128
|
+
/**
|
|
1129
|
+
* 符合筛选条件的应用数
|
|
1130
|
+
*/
|
|
1131
|
+
TotalCount?: number;
|
|
1132
|
+
/**
|
|
1133
|
+
* 警示异常应用数
|
|
1134
|
+
*/
|
|
1135
|
+
WarningErrorCount?: number;
|
|
1136
|
+
/**
|
|
1137
|
+
* 应用总数
|
|
1138
|
+
*/
|
|
1139
|
+
ApplicationCount?: number;
|
|
1140
|
+
/**
|
|
1141
|
+
* 页码
|
|
1142
|
+
*/
|
|
1143
|
+
Page?: number;
|
|
1144
|
+
/**
|
|
1145
|
+
* 页大小
|
|
1146
|
+
*/
|
|
1147
|
+
PageSize?: number;
|
|
1148
|
+
/**
|
|
1149
|
+
* 异常应用数
|
|
1150
|
+
*/
|
|
1151
|
+
ErrorCount?: number;
|
|
1152
|
+
/**
|
|
1153
|
+
* 警示应用数
|
|
1154
|
+
*/
|
|
1155
|
+
WarningCount?: number;
|
|
1156
|
+
/**
|
|
1157
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1158
|
+
*/
|
|
1159
|
+
RequestId?: string;
|
|
1160
|
+
}
|
|
998
1161
|
/**
|
|
999
1162
|
* DescribeMetricRecords返回参数结构体
|
|
1000
1163
|
*/
|