tencentcloud-sdk-nodejs-apm 4.0.1035 → 4.0.1045
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/services/apm/v20210622/apm_client.ts +12 -0
- package/src/services/apm/v20210622/apm_models.ts +84 -14
- 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 +82 -14
package/package.json
CHANGED
|
@@ -42,9 +42,11 @@ import {
|
|
|
42
42
|
APMKVItem,
|
|
43
43
|
OrderBy,
|
|
44
44
|
DescribeMetricRecordsResponse,
|
|
45
|
+
DescribeGeneralOTSpanListResponse,
|
|
45
46
|
DescribeGeneralSpanListRequest,
|
|
46
47
|
Filter,
|
|
47
48
|
APMKV,
|
|
49
|
+
DescribeGeneralOTSpanListRequest,
|
|
48
50
|
DescribeApmAgentRequest,
|
|
49
51
|
DescribeMetricRecordsRequest,
|
|
50
52
|
DescribeGeneralApmApplicationConfigResponse,
|
|
@@ -121,6 +123,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
121
123
|
return this.request("DescribeApmAgent", req, cb)
|
|
122
124
|
}
|
|
123
125
|
|
|
126
|
+
/**
|
|
127
|
+
* 通用查询 OpenTelemetry 调用链列表
|
|
128
|
+
*/
|
|
129
|
+
async DescribeGeneralOTSpanList(
|
|
130
|
+
req: DescribeGeneralOTSpanListRequest,
|
|
131
|
+
cb?: (error: string, rep: DescribeGeneralOTSpanListResponse) => void
|
|
132
|
+
): Promise<DescribeGeneralOTSpanListResponse> {
|
|
133
|
+
return this.request("DescribeGeneralOTSpanList", req, cb)
|
|
134
|
+
}
|
|
135
|
+
|
|
124
136
|
/**
|
|
125
137
|
* 修改APM业务系统接口
|
|
126
138
|
*/
|
|
@@ -343,7 +343,7 @@ export interface ModifyGeneralApmApplicationConfigRequest {
|
|
|
343
343
|
/**
|
|
344
344
|
* 需要修改配置的应用列表名称
|
|
345
345
|
*/
|
|
346
|
-
ServiceNames
|
|
346
|
+
ServiceNames: Array<string>
|
|
347
347
|
}
|
|
348
348
|
|
|
349
349
|
/**
|
|
@@ -550,22 +550,22 @@ export interface ApmMetricRecord {
|
|
|
550
550
|
* DescribeServiceOverview请求参数结构体
|
|
551
551
|
*/
|
|
552
552
|
export interface DescribeServiceOverviewRequest {
|
|
553
|
+
/**
|
|
554
|
+
* 业务系统 ID
|
|
555
|
+
*/
|
|
556
|
+
InstanceId: string
|
|
553
557
|
/**
|
|
554
558
|
* 指标列表
|
|
555
559
|
*/
|
|
556
560
|
Metrics: Array<QueryMetricItem>
|
|
557
561
|
/**
|
|
558
|
-
*
|
|
562
|
+
* 聚合维度
|
|
559
563
|
*/
|
|
560
|
-
|
|
564
|
+
GroupBy: Array<string>
|
|
561
565
|
/**
|
|
562
566
|
* 过滤条件
|
|
563
567
|
*/
|
|
564
568
|
Filters?: Array<Filter>
|
|
565
|
-
/**
|
|
566
|
-
* 聚合维度
|
|
567
|
-
*/
|
|
568
|
-
GroupBy?: Array<string>
|
|
569
569
|
/**
|
|
570
570
|
* 开始时间(单位:秒)
|
|
571
571
|
*/
|
|
@@ -609,18 +609,14 @@ export interface DescribeApmAgentResponse {
|
|
|
609
609
|
* DescribeTagValues请求参数结构体
|
|
610
610
|
*/
|
|
611
611
|
export interface DescribeTagValuesRequest {
|
|
612
|
-
/**
|
|
613
|
-
* 维度名
|
|
614
|
-
*/
|
|
615
|
-
TagKey: string
|
|
616
612
|
/**
|
|
617
613
|
* 业务系统 ID
|
|
618
614
|
*/
|
|
619
|
-
InstanceId
|
|
615
|
+
InstanceId: string
|
|
620
616
|
/**
|
|
621
|
-
*
|
|
617
|
+
* 维度名
|
|
622
618
|
*/
|
|
623
|
-
|
|
619
|
+
TagKey: string
|
|
624
620
|
/**
|
|
625
621
|
* 开始时间(单位为秒)
|
|
626
622
|
*/
|
|
@@ -629,6 +625,10 @@ export interface DescribeTagValuesRequest {
|
|
|
629
625
|
* 结束时间(单位为秒)
|
|
630
626
|
*/
|
|
631
627
|
EndTime?: number
|
|
628
|
+
/**
|
|
629
|
+
* 过滤条件
|
|
630
|
+
*/
|
|
631
|
+
Filters?: Array<Filter>
|
|
632
632
|
/**
|
|
633
633
|
* Or 过滤条件
|
|
634
634
|
*/
|
|
@@ -839,6 +839,28 @@ export interface DescribeMetricRecordsResponse {
|
|
|
839
839
|
RequestId?: string
|
|
840
840
|
}
|
|
841
841
|
|
|
842
|
+
/**
|
|
843
|
+
* DescribeGeneralOTSpanList返回参数结构体
|
|
844
|
+
*/
|
|
845
|
+
export interface DescribeGeneralOTSpanListResponse {
|
|
846
|
+
/**
|
|
847
|
+
* 总数量
|
|
848
|
+
*/
|
|
849
|
+
TotalCount?: number
|
|
850
|
+
/**
|
|
851
|
+
* Spans字段中包含了链路数据的全部内容,由于数据经过了压缩,需要对结果进行如下三步转换,以还原始的文本。
|
|
852
|
+
1. 将Spans字段中的文本进行 Base64 解码,得到经过压缩后字节数组。
|
|
853
|
+
2. 使用 gzip 对压缩后的字节数组进行解压,得到压缩前的字节数组。
|
|
854
|
+
3. 使用 UTF-8 字符集,将压缩前的字节数组转换为文本。
|
|
855
|
+
|
|
856
|
+
*/
|
|
857
|
+
Spans?: string
|
|
858
|
+
/**
|
|
859
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
860
|
+
*/
|
|
861
|
+
RequestId?: string
|
|
862
|
+
}
|
|
863
|
+
|
|
842
864
|
/**
|
|
843
865
|
* DescribeGeneralSpanList请求参数结构体
|
|
844
866
|
*/
|
|
@@ -919,6 +941,54 @@ export interface APMKV {
|
|
|
919
941
|
Value?: number
|
|
920
942
|
}
|
|
921
943
|
|
|
944
|
+
/**
|
|
945
|
+
* DescribeGeneralOTSpanList请求参数结构体
|
|
946
|
+
*/
|
|
947
|
+
export interface DescribeGeneralOTSpanListRequest {
|
|
948
|
+
/**
|
|
949
|
+
* 业务系统 ID
|
|
950
|
+
*/
|
|
951
|
+
InstanceId: string
|
|
952
|
+
/**
|
|
953
|
+
* Span 查询开始时间戳(单位:秒)
|
|
954
|
+
*/
|
|
955
|
+
StartTime: number
|
|
956
|
+
/**
|
|
957
|
+
* Span 查询结束时间戳(单位:秒)
|
|
958
|
+
*/
|
|
959
|
+
EndTime: number
|
|
960
|
+
/**
|
|
961
|
+
* 通用过滤参数
|
|
962
|
+
*/
|
|
963
|
+
Filters?: Array<Filter>
|
|
964
|
+
/**
|
|
965
|
+
* 排序
|
|
966
|
+
现支持的 Key 有:
|
|
967
|
+
|
|
968
|
+
- startTime(开始时间)
|
|
969
|
+
- endTime(结束时间)
|
|
970
|
+
- duration(响应时间)
|
|
971
|
+
|
|
972
|
+
现支持的 Value 有:
|
|
973
|
+
|
|
974
|
+
- desc(降序排序)
|
|
975
|
+
- asc(升序排序)
|
|
976
|
+
*/
|
|
977
|
+
OrderBy?: OrderBy
|
|
978
|
+
/**
|
|
979
|
+
* 业务自身服务名,控制台用户请填写taw
|
|
980
|
+
*/
|
|
981
|
+
BusinessName?: string
|
|
982
|
+
/**
|
|
983
|
+
* 单页项目个数,默认为10000,合法取值范围为0~10000
|
|
984
|
+
*/
|
|
985
|
+
Limit?: number
|
|
986
|
+
/**
|
|
987
|
+
* 分页
|
|
988
|
+
*/
|
|
989
|
+
Offset?: number
|
|
990
|
+
}
|
|
991
|
+
|
|
922
992
|
/**
|
|
923
993
|
* DescribeApmAgent请求参数结构体
|
|
924
994
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { ModifyApmInstanceRequest, CreateApmInstanceRequest, ModifyGeneralApmApplicationConfigRequest, DescribeServiceOverviewResponse, TerminateApmInstanceRequest, DescribeApmInstancesResponse, DescribeTagValuesResponse, DescribeGeneralSpanListResponse, DescribeServiceOverviewRequest, DescribeApmAgentResponse, DescribeTagValuesRequest, DescribeMetricRecordsResponse, DescribeGeneralSpanListRequest, DescribeApmAgentRequest, DescribeMetricRecordsRequest, DescribeGeneralApmApplicationConfigResponse, DescribeGeneralMetricDataRequest, CreateApmInstanceResponse, DescribeGeneralApmApplicationConfigRequest, ModifyApmInstanceResponse, DescribeApmInstancesRequest, DescribeGeneralMetricDataResponse, ModifyGeneralApmApplicationConfigResponse, TerminateApmInstanceResponse } from "./apm_models";
|
|
2
|
+
import { ModifyApmInstanceRequest, CreateApmInstanceRequest, ModifyGeneralApmApplicationConfigRequest, DescribeServiceOverviewResponse, TerminateApmInstanceRequest, DescribeApmInstancesResponse, DescribeTagValuesResponse, DescribeGeneralSpanListResponse, DescribeServiceOverviewRequest, DescribeApmAgentResponse, DescribeTagValuesRequest, DescribeMetricRecordsResponse, DescribeGeneralOTSpanListResponse, DescribeGeneralSpanListRequest, DescribeGeneralOTSpanListRequest, DescribeApmAgentRequest, DescribeMetricRecordsRequest, DescribeGeneralApmApplicationConfigResponse, DescribeGeneralMetricDataRequest, CreateApmInstanceResponse, DescribeGeneralApmApplicationConfigRequest, ModifyApmInstanceResponse, DescribeApmInstancesRequest, DescribeGeneralMetricDataResponse, ModifyGeneralApmApplicationConfigResponse, TerminateApmInstanceResponse } from "./apm_models";
|
|
3
3
|
/**
|
|
4
4
|
* apm client
|
|
5
5
|
* @class
|
|
@@ -26,6 +26,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
26
26
|
* 获取 APM 接入点
|
|
27
27
|
*/
|
|
28
28
|
DescribeApmAgent(req: DescribeApmAgentRequest, cb?: (error: string, rep: DescribeApmAgentResponse) => void): Promise<DescribeApmAgentResponse>;
|
|
29
|
+
/**
|
|
30
|
+
* 通用查询 OpenTelemetry 调用链列表
|
|
31
|
+
*/
|
|
32
|
+
DescribeGeneralOTSpanList(req: DescribeGeneralOTSpanListRequest, cb?: (error: string, rep: DescribeGeneralOTSpanListResponse) => void): Promise<DescribeGeneralOTSpanListResponse>;
|
|
29
33
|
/**
|
|
30
34
|
* 修改APM业务系统接口
|
|
31
35
|
*/
|
|
@@ -57,6 +57,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
57
57
|
async DescribeApmAgent(req, cb) {
|
|
58
58
|
return this.request("DescribeApmAgent", req, cb);
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* 通用查询 OpenTelemetry 调用链列表
|
|
62
|
+
*/
|
|
63
|
+
async DescribeGeneralOTSpanList(req, cb) {
|
|
64
|
+
return this.request("DescribeGeneralOTSpanList", req, cb);
|
|
65
|
+
}
|
|
60
66
|
/**
|
|
61
67
|
* 修改APM业务系统接口
|
|
62
68
|
*/
|
|
@@ -322,7 +322,7 @@ export interface ModifyGeneralApmApplicationConfigRequest {
|
|
|
322
322
|
/**
|
|
323
323
|
* 需要修改配置的应用列表名称
|
|
324
324
|
*/
|
|
325
|
-
ServiceNames
|
|
325
|
+
ServiceNames: Array<string>;
|
|
326
326
|
}
|
|
327
327
|
/**
|
|
328
328
|
* DescribeServiceOverview返回参数结构体
|
|
@@ -518,22 +518,22 @@ export interface ApmMetricRecord {
|
|
|
518
518
|
* DescribeServiceOverview请求参数结构体
|
|
519
519
|
*/
|
|
520
520
|
export interface DescribeServiceOverviewRequest {
|
|
521
|
+
/**
|
|
522
|
+
* 业务系统 ID
|
|
523
|
+
*/
|
|
524
|
+
InstanceId: string;
|
|
521
525
|
/**
|
|
522
526
|
* 指标列表
|
|
523
527
|
*/
|
|
524
528
|
Metrics: Array<QueryMetricItem>;
|
|
525
529
|
/**
|
|
526
|
-
*
|
|
530
|
+
* 聚合维度
|
|
527
531
|
*/
|
|
528
|
-
|
|
532
|
+
GroupBy: Array<string>;
|
|
529
533
|
/**
|
|
530
534
|
* 过滤条件
|
|
531
535
|
*/
|
|
532
536
|
Filters?: Array<Filter>;
|
|
533
|
-
/**
|
|
534
|
-
* 聚合维度
|
|
535
|
-
*/
|
|
536
|
-
GroupBy?: Array<string>;
|
|
537
537
|
/**
|
|
538
538
|
* 开始时间(单位:秒)
|
|
539
539
|
*/
|
|
@@ -575,18 +575,14 @@ export interface DescribeApmAgentResponse {
|
|
|
575
575
|
* DescribeTagValues请求参数结构体
|
|
576
576
|
*/
|
|
577
577
|
export interface DescribeTagValuesRequest {
|
|
578
|
-
/**
|
|
579
|
-
* 维度名
|
|
580
|
-
*/
|
|
581
|
-
TagKey: string;
|
|
582
578
|
/**
|
|
583
579
|
* 业务系统 ID
|
|
584
580
|
*/
|
|
585
|
-
InstanceId
|
|
581
|
+
InstanceId: string;
|
|
586
582
|
/**
|
|
587
|
-
*
|
|
583
|
+
* 维度名
|
|
588
584
|
*/
|
|
589
|
-
|
|
585
|
+
TagKey: string;
|
|
590
586
|
/**
|
|
591
587
|
* 开始时间(单位为秒)
|
|
592
588
|
*/
|
|
@@ -595,6 +591,10 @@ export interface DescribeTagValuesRequest {
|
|
|
595
591
|
* 结束时间(单位为秒)
|
|
596
592
|
*/
|
|
597
593
|
EndTime?: number;
|
|
594
|
+
/**
|
|
595
|
+
* 过滤条件
|
|
596
|
+
*/
|
|
597
|
+
Filters?: Array<Filter>;
|
|
598
598
|
/**
|
|
599
599
|
* Or 过滤条件
|
|
600
600
|
*/
|
|
@@ -797,6 +797,27 @@ export interface DescribeMetricRecordsResponse {
|
|
|
797
797
|
*/
|
|
798
798
|
RequestId?: string;
|
|
799
799
|
}
|
|
800
|
+
/**
|
|
801
|
+
* DescribeGeneralOTSpanList返回参数结构体
|
|
802
|
+
*/
|
|
803
|
+
export interface DescribeGeneralOTSpanListResponse {
|
|
804
|
+
/**
|
|
805
|
+
* 总数量
|
|
806
|
+
*/
|
|
807
|
+
TotalCount?: number;
|
|
808
|
+
/**
|
|
809
|
+
* Spans字段中包含了链路数据的全部内容,由于数据经过了压缩,需要对结果进行如下三步转换,以还原始的文本。
|
|
810
|
+
1. 将Spans字段中的文本进行 Base64 解码,得到经过压缩后字节数组。
|
|
811
|
+
2. 使用 gzip 对压缩后的字节数组进行解压,得到压缩前的字节数组。
|
|
812
|
+
3. 使用 UTF-8 字符集,将压缩前的字节数组转换为文本。
|
|
813
|
+
|
|
814
|
+
*/
|
|
815
|
+
Spans?: string;
|
|
816
|
+
/**
|
|
817
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
818
|
+
*/
|
|
819
|
+
RequestId?: string;
|
|
820
|
+
}
|
|
800
821
|
/**
|
|
801
822
|
* DescribeGeneralSpanList请求参数结构体
|
|
802
823
|
*/
|
|
@@ -874,6 +895,53 @@ export interface APMKV {
|
|
|
874
895
|
*/
|
|
875
896
|
Value?: number;
|
|
876
897
|
}
|
|
898
|
+
/**
|
|
899
|
+
* DescribeGeneralOTSpanList请求参数结构体
|
|
900
|
+
*/
|
|
901
|
+
export interface DescribeGeneralOTSpanListRequest {
|
|
902
|
+
/**
|
|
903
|
+
* 业务系统 ID
|
|
904
|
+
*/
|
|
905
|
+
InstanceId: string;
|
|
906
|
+
/**
|
|
907
|
+
* Span 查询开始时间戳(单位:秒)
|
|
908
|
+
*/
|
|
909
|
+
StartTime: number;
|
|
910
|
+
/**
|
|
911
|
+
* Span 查询结束时间戳(单位:秒)
|
|
912
|
+
*/
|
|
913
|
+
EndTime: number;
|
|
914
|
+
/**
|
|
915
|
+
* 通用过滤参数
|
|
916
|
+
*/
|
|
917
|
+
Filters?: Array<Filter>;
|
|
918
|
+
/**
|
|
919
|
+
* 排序
|
|
920
|
+
现支持的 Key 有:
|
|
921
|
+
|
|
922
|
+
- startTime(开始时间)
|
|
923
|
+
- endTime(结束时间)
|
|
924
|
+
- duration(响应时间)
|
|
925
|
+
|
|
926
|
+
现支持的 Value 有:
|
|
927
|
+
|
|
928
|
+
- desc(降序排序)
|
|
929
|
+
- asc(升序排序)
|
|
930
|
+
*/
|
|
931
|
+
OrderBy?: OrderBy;
|
|
932
|
+
/**
|
|
933
|
+
* 业务自身服务名,控制台用户请填写taw
|
|
934
|
+
*/
|
|
935
|
+
BusinessName?: string;
|
|
936
|
+
/**
|
|
937
|
+
* 单页项目个数,默认为10000,合法取值范围为0~10000
|
|
938
|
+
*/
|
|
939
|
+
Limit?: number;
|
|
940
|
+
/**
|
|
941
|
+
* 分页
|
|
942
|
+
*/
|
|
943
|
+
Offset?: number;
|
|
944
|
+
}
|
|
877
945
|
/**
|
|
878
946
|
* DescribeApmAgent请求参数结构体
|
|
879
947
|
*/
|