tencentcloud-sdk-nodejs-apm 4.1.64 → 4.1.67
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.
|
@@ -3,6 +3,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
3
3
|
constructor(clientConfig) {
|
|
4
4
|
super("apm.tencentcloudapi.com", "2021-06-22", clientConfig);
|
|
5
5
|
}
|
|
6
|
+
async CreateProfileTask(req, cb) {
|
|
7
|
+
return this.request("CreateProfileTask", req, cb);
|
|
8
|
+
}
|
|
6
9
|
async DescribeGeneralApmApplicationConfig(req, cb) {
|
|
7
10
|
return this.request("DescribeGeneralApmApplicationConfig", req, cb);
|
|
8
11
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { ModifyApmInstanceRequest, CreateApmInstanceRequest, ModifyGeneralApmApplicationConfigRequest, DescribeServiceOverviewResponse, TerminateApmInstanceRequest, DescribeApmInstancesResponse, DescribeTagValuesResponse,
|
|
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";
|
|
3
3
|
/**
|
|
4
4
|
* apm client
|
|
5
5
|
* @class
|
|
6
6
|
*/
|
|
7
7
|
export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
|
9
|
+
/**
|
|
10
|
+
* 创建事件任务
|
|
11
|
+
*/
|
|
12
|
+
CreateProfileTask(req: CreateProfileTaskRequest, cb?: (error: string, rep: CreateProfileTaskResponse) => void): Promise<CreateProfileTaskResponse>;
|
|
9
13
|
/**
|
|
10
14
|
* 查询应用配置信息
|
|
11
15
|
*/
|
|
@@ -28,6 +28,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
28
28
|
constructor(clientConfig) {
|
|
29
29
|
super("apm.tencentcloudapi.com", "2021-06-22", clientConfig);
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* 创建事件任务
|
|
33
|
+
*/
|
|
34
|
+
async CreateProfileTask(req, cb) {
|
|
35
|
+
return this.request("CreateProfileTask", req, cb);
|
|
36
|
+
}
|
|
31
37
|
/**
|
|
32
38
|
* 查询应用配置信息
|
|
33
39
|
*/
|
|
@@ -521,21 +521,85 @@ export interface ApmAgentInfo {
|
|
|
521
521
|
PrivateLinkCollectorURL?: string;
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
524
|
-
*
|
|
524
|
+
* 应用相关的配置列表项
|
|
525
525
|
*/
|
|
526
|
-
export interface
|
|
526
|
+
export interface ApmApplicationConfigView {
|
|
527
527
|
/**
|
|
528
|
-
*
|
|
528
|
+
* 业务系统 ID
|
|
529
529
|
*/
|
|
530
|
-
|
|
530
|
+
InstanceKey?: string;
|
|
531
531
|
/**
|
|
532
|
-
*
|
|
532
|
+
* 应用名
|
|
533
533
|
*/
|
|
534
|
-
|
|
534
|
+
ServiceName?: string;
|
|
535
535
|
/**
|
|
536
|
-
*
|
|
536
|
+
* 接口过滤
|
|
537
537
|
*/
|
|
538
|
-
|
|
538
|
+
OperationNameFilter?: string;
|
|
539
|
+
/**
|
|
540
|
+
* 错误类型过滤
|
|
541
|
+
*/
|
|
542
|
+
ExceptionFilter?: string;
|
|
543
|
+
/**
|
|
544
|
+
* HTTP 状态码过滤
|
|
545
|
+
*/
|
|
546
|
+
ErrorCodeFilter?: string;
|
|
547
|
+
/**
|
|
548
|
+
* 应用诊断开关(已废弃)
|
|
549
|
+
*/
|
|
550
|
+
EventEnable?: boolean;
|
|
551
|
+
/**
|
|
552
|
+
* URL 收敛开关 0 关 1 开
|
|
553
|
+
*/
|
|
554
|
+
UrlConvergenceSwitch?: number;
|
|
555
|
+
/**
|
|
556
|
+
* URL 收敛阈值
|
|
557
|
+
*/
|
|
558
|
+
UrlConvergenceThreshold?: number;
|
|
559
|
+
/**
|
|
560
|
+
* URL 收敛规则正则
|
|
561
|
+
*/
|
|
562
|
+
UrlConvergence?: string;
|
|
563
|
+
/**
|
|
564
|
+
* URL 排除规则正则
|
|
565
|
+
*/
|
|
566
|
+
UrlExclude?: string;
|
|
567
|
+
/**
|
|
568
|
+
* 是否开启日志 0 关 1 开
|
|
569
|
+
*/
|
|
570
|
+
IsRelatedLog?: number;
|
|
571
|
+
/**
|
|
572
|
+
* 日志源
|
|
573
|
+
*/
|
|
574
|
+
LogSource?: string;
|
|
575
|
+
/**
|
|
576
|
+
* 日志集
|
|
577
|
+
*/
|
|
578
|
+
LogSet?: string;
|
|
579
|
+
/**
|
|
580
|
+
* 日志主题
|
|
581
|
+
*/
|
|
582
|
+
LogTopicID?: string;
|
|
583
|
+
/**
|
|
584
|
+
* 方法栈快照开关 true 开启 false 关闭
|
|
585
|
+
*/
|
|
586
|
+
SnapshotEnable?: boolean;
|
|
587
|
+
/**
|
|
588
|
+
* 慢调用监听触发阈值
|
|
589
|
+
*/
|
|
590
|
+
SnapshotTimeout?: number;
|
|
591
|
+
/**
|
|
592
|
+
* 探针总开关
|
|
593
|
+
*/
|
|
594
|
+
AgentEnable?: boolean;
|
|
595
|
+
/**
|
|
596
|
+
* 组件列表开关(已废弃)
|
|
597
|
+
*/
|
|
598
|
+
InstrumentList?: Array<Instrument>;
|
|
599
|
+
/**
|
|
600
|
+
* 链路压缩开关(已废弃)
|
|
601
|
+
*/
|
|
602
|
+
TraceSquash?: boolean;
|
|
539
603
|
}
|
|
540
604
|
/**
|
|
541
605
|
* 指标列表单元
|
|
@@ -695,100 +759,87 @@ export interface Line {
|
|
|
695
759
|
* 维度列表
|
|
696
760
|
*/
|
|
697
761
|
Tags?: Array<ApmTag>;
|
|
762
|
+
/**
|
|
763
|
+
* 指标数据单位
|
|
764
|
+
*/
|
|
765
|
+
MetricUnit?: string;
|
|
698
766
|
}
|
|
699
767
|
/**
|
|
700
|
-
*
|
|
768
|
+
* DescribeGeneralSpanList返回参数结构体
|
|
701
769
|
*/
|
|
702
|
-
export interface
|
|
703
|
-
/**
|
|
704
|
-
* 业务系统 ID
|
|
705
|
-
*/
|
|
706
|
-
InstanceKey?: string;
|
|
707
|
-
/**
|
|
708
|
-
* 应用名
|
|
709
|
-
*/
|
|
710
|
-
ServiceName?: string;
|
|
711
|
-
/**
|
|
712
|
-
* 接口过滤
|
|
713
|
-
*/
|
|
714
|
-
OperationNameFilter?: string;
|
|
715
|
-
/**
|
|
716
|
-
* 错误类型过滤
|
|
717
|
-
*/
|
|
718
|
-
ExceptionFilter?: string;
|
|
719
|
-
/**
|
|
720
|
-
* HTTP 状态码过滤
|
|
721
|
-
*/
|
|
722
|
-
ErrorCodeFilter?: string;
|
|
723
|
-
/**
|
|
724
|
-
* 应用诊断开关(已废弃)
|
|
725
|
-
*/
|
|
726
|
-
EventEnable?: boolean;
|
|
727
|
-
/**
|
|
728
|
-
* URL 收敛开关 0 关 1 开
|
|
729
|
-
*/
|
|
730
|
-
UrlConvergenceSwitch?: number;
|
|
731
|
-
/**
|
|
732
|
-
* URL 收敛阈值
|
|
733
|
-
*/
|
|
734
|
-
UrlConvergenceThreshold?: number;
|
|
770
|
+
export interface DescribeGeneralSpanListResponse {
|
|
735
771
|
/**
|
|
736
|
-
*
|
|
772
|
+
* 总数量
|
|
737
773
|
*/
|
|
738
|
-
|
|
774
|
+
TotalCount?: number;
|
|
739
775
|
/**
|
|
740
|
-
*
|
|
776
|
+
* Span 分页列表
|
|
741
777
|
*/
|
|
742
|
-
|
|
778
|
+
Spans?: Array<Span>;
|
|
743
779
|
/**
|
|
744
|
-
*
|
|
780
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
745
781
|
*/
|
|
746
|
-
|
|
782
|
+
RequestId?: string;
|
|
783
|
+
}
|
|
784
|
+
/**
|
|
785
|
+
* CreateProfileTask返回参数结构体
|
|
786
|
+
*/
|
|
787
|
+
export interface CreateProfileTaskResponse {
|
|
747
788
|
/**
|
|
748
|
-
*
|
|
789
|
+
* 任务ID
|
|
749
790
|
*/
|
|
750
|
-
|
|
791
|
+
TaskId?: number;
|
|
751
792
|
/**
|
|
752
|
-
*
|
|
793
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
753
794
|
*/
|
|
754
|
-
|
|
795
|
+
RequestId?: string;
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
* DescribeGeneralSpanList请求参数结构体
|
|
799
|
+
*/
|
|
800
|
+
export interface DescribeGeneralSpanListRequest {
|
|
755
801
|
/**
|
|
756
|
-
*
|
|
802
|
+
* 业务系统 ID
|
|
757
803
|
*/
|
|
758
|
-
|
|
804
|
+
InstanceId: string;
|
|
759
805
|
/**
|
|
760
|
-
*
|
|
806
|
+
* Span 查询开始时间戳(单位:秒)
|
|
761
807
|
*/
|
|
762
|
-
|
|
808
|
+
StartTime: number;
|
|
763
809
|
/**
|
|
764
|
-
*
|
|
810
|
+
* Span 查询结束时间戳(单位:秒)
|
|
765
811
|
*/
|
|
766
|
-
|
|
812
|
+
EndTime: number;
|
|
767
813
|
/**
|
|
768
|
-
*
|
|
814
|
+
* 通用过滤参数
|
|
769
815
|
*/
|
|
770
|
-
|
|
816
|
+
Filters?: Array<Filter>;
|
|
771
817
|
/**
|
|
772
|
-
*
|
|
818
|
+
* 排序
|
|
819
|
+
现支持的 Key 有:
|
|
820
|
+
|
|
821
|
+
- startTime(开始时间)
|
|
822
|
+
- endTime(结束时间)
|
|
823
|
+
- duration(响应时间)
|
|
824
|
+
|
|
825
|
+
现支持的 Value 有:
|
|
826
|
+
|
|
827
|
+
- desc(降序排序)
|
|
828
|
+
- asc(升序排序)
|
|
773
829
|
*/
|
|
774
|
-
|
|
830
|
+
OrderBy?: OrderBy;
|
|
775
831
|
/**
|
|
776
|
-
*
|
|
832
|
+
* 业务自身服务名,控制台用户请填写taw
|
|
777
833
|
*/
|
|
778
|
-
|
|
779
|
-
}
|
|
780
|
-
/**
|
|
781
|
-
* 维度(标签)对象
|
|
782
|
-
*/
|
|
783
|
-
export interface ApmTag {
|
|
834
|
+
BusinessName?: string;
|
|
784
835
|
/**
|
|
785
|
-
*
|
|
836
|
+
* 单页项目个数,默认为10000,合法取值范围为0~10000
|
|
786
837
|
*/
|
|
787
|
-
|
|
838
|
+
Limit?: number;
|
|
788
839
|
/**
|
|
789
|
-
*
|
|
840
|
+
* 分页
|
|
790
841
|
*/
|
|
791
|
-
|
|
842
|
+
Offset?: number;
|
|
792
843
|
}
|
|
793
844
|
/**
|
|
794
845
|
* APM 通用 KV 结构
|
|
@@ -855,51 +906,17 @@ export interface DescribeGeneralOTSpanListResponse {
|
|
|
855
906
|
RequestId?: string;
|
|
856
907
|
}
|
|
857
908
|
/**
|
|
858
|
-
*
|
|
909
|
+
* 维度(标签)对象
|
|
859
910
|
*/
|
|
860
|
-
export interface
|
|
861
|
-
/**
|
|
862
|
-
* 业务系统 ID
|
|
863
|
-
*/
|
|
864
|
-
InstanceId: string;
|
|
865
|
-
/**
|
|
866
|
-
* Span 查询开始时间戳(单位:秒)
|
|
867
|
-
*/
|
|
868
|
-
StartTime: number;
|
|
869
|
-
/**
|
|
870
|
-
* Span 查询结束时间戳(单位:秒)
|
|
871
|
-
*/
|
|
872
|
-
EndTime: number;
|
|
873
|
-
/**
|
|
874
|
-
* 通用过滤参数
|
|
875
|
-
*/
|
|
876
|
-
Filters?: Array<Filter>;
|
|
877
|
-
/**
|
|
878
|
-
* 排序
|
|
879
|
-
现支持的 Key 有:
|
|
880
|
-
|
|
881
|
-
- startTime(开始时间)
|
|
882
|
-
- endTime(结束时间)
|
|
883
|
-
- duration(响应时间)
|
|
884
|
-
|
|
885
|
-
现支持的 Value 有:
|
|
886
|
-
|
|
887
|
-
- desc(降序排序)
|
|
888
|
-
- asc(升序排序)
|
|
889
|
-
*/
|
|
890
|
-
OrderBy?: OrderBy;
|
|
891
|
-
/**
|
|
892
|
-
* 业务自身服务名,控制台用户请填写taw
|
|
893
|
-
*/
|
|
894
|
-
BusinessName?: string;
|
|
911
|
+
export interface ApmTag {
|
|
895
912
|
/**
|
|
896
|
-
*
|
|
913
|
+
* 维度Key(列名,标签Key)
|
|
897
914
|
*/
|
|
898
|
-
|
|
915
|
+
Key: string;
|
|
899
916
|
/**
|
|
900
|
-
*
|
|
917
|
+
* 维度值(标签值)
|
|
901
918
|
*/
|
|
902
|
-
|
|
919
|
+
Value: string;
|
|
903
920
|
}
|
|
904
921
|
/**
|
|
905
922
|
* 查询过滤参数
|
|
@@ -1171,6 +1188,43 @@ export interface SpanReference {
|
|
|
1171
1188
|
*/
|
|
1172
1189
|
TraceID: string;
|
|
1173
1190
|
}
|
|
1191
|
+
/**
|
|
1192
|
+
* CreateProfileTask请求参数结构体
|
|
1193
|
+
*/
|
|
1194
|
+
export interface CreateProfileTaskRequest {
|
|
1195
|
+
/**
|
|
1196
|
+
* 应用名称
|
|
1197
|
+
*/
|
|
1198
|
+
ServiceName: string;
|
|
1199
|
+
/**
|
|
1200
|
+
* APM业务系统ID
|
|
1201
|
+
*/
|
|
1202
|
+
InstanceId: string;
|
|
1203
|
+
/**
|
|
1204
|
+
* 应用实例(在线)
|
|
1205
|
+
*/
|
|
1206
|
+
ServiceInstance: string;
|
|
1207
|
+
/**
|
|
1208
|
+
* 事件类型(cpu、alloc)
|
|
1209
|
+
*/
|
|
1210
|
+
Event: string;
|
|
1211
|
+
/**
|
|
1212
|
+
* 任务持续时长(单位:毫秒),范围限制在5~180秒
|
|
1213
|
+
*/
|
|
1214
|
+
Duration: number;
|
|
1215
|
+
/**
|
|
1216
|
+
* 执行次数,范围限制在1~100次
|
|
1217
|
+
*/
|
|
1218
|
+
AllTimes: number;
|
|
1219
|
+
/**
|
|
1220
|
+
* 开始时间戳,0代表从当前开始(单位:秒)
|
|
1221
|
+
*/
|
|
1222
|
+
StartTime?: number;
|
|
1223
|
+
/**
|
|
1224
|
+
* 任务执行间隔(单位:毫秒),范围限制在10~600秒,不可小于1.5倍的Duration
|
|
1225
|
+
*/
|
|
1226
|
+
TaskInterval?: number;
|
|
1227
|
+
}
|
|
1174
1228
|
/**
|
|
1175
1229
|
* 服务相关信息
|
|
1176
1230
|
*/
|