tencentcloud-sdk-nodejs-apm 4.1.66 → 4.1.68

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,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-apm",
3
- "version": "4.1.66",
3
+ "version": "4.1.68",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1,11 +1,15 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
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";
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
- * DescribeGeneralSpanList返回参数结构体
524
+ * 应用相关的配置列表项
525
525
  */
526
- export interface DescribeGeneralSpanListResponse {
526
+ export interface ApmApplicationConfigView {
527
527
  /**
528
- * 总数量
528
+ * 业务系统 ID
529
529
  */
530
- TotalCount?: number;
530
+ InstanceKey?: string;
531
531
  /**
532
- * Span 分页列表
532
+ * 应用名
533
533
  */
534
- Spans?: Array<Span>;
534
+ ServiceName?: string;
535
535
  /**
536
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
536
+ * 接口过滤
537
537
  */
538
- RequestId?: string;
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
  * 指标列表单元
@@ -701,98 +765,81 @@ export interface Line {
701
765
  MetricUnit?: string;
702
766
  }
703
767
  /**
704
- * 应用相关的配置列表项
768
+ * DescribeGeneralSpanList返回参数结构体
705
769
  */
706
- export interface ApmApplicationConfigView {
707
- /**
708
- * 业务系统 ID
709
- */
710
- InstanceKey?: string;
711
- /**
712
- * 应用名
713
- */
714
- ServiceName?: string;
715
- /**
716
- * 接口过滤
717
- */
718
- OperationNameFilter?: string;
719
- /**
720
- * 错误类型过滤
721
- */
722
- ExceptionFilter?: string;
723
- /**
724
- * HTTP 状态码过滤
725
- */
726
- ErrorCodeFilter?: string;
727
- /**
728
- * 应用诊断开关(已废弃)
729
- */
730
- EventEnable?: boolean;
731
- /**
732
- * URL 收敛开关 0 关 1 开
733
- */
734
- UrlConvergenceSwitch?: number;
735
- /**
736
- * URL 收敛阈值
737
- */
738
- UrlConvergenceThreshold?: number;
770
+ export interface DescribeGeneralSpanListResponse {
739
771
  /**
740
- * URL 收敛规则正则
772
+ * 总数量
741
773
  */
742
- UrlConvergence?: string;
774
+ TotalCount?: number;
743
775
  /**
744
- * URL 排除规则正则
776
+ * Span 分页列表
745
777
  */
746
- UrlExclude?: string;
778
+ Spans?: Array<Span>;
747
779
  /**
748
- * 是否开启日志 0 1 开
780
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
749
781
  */
750
- IsRelatedLog?: number;
782
+ RequestId?: string;
783
+ }
784
+ /**
785
+ * CreateProfileTask返回参数结构体
786
+ */
787
+ export interface CreateProfileTaskResponse {
751
788
  /**
752
- * 日志源
789
+ * 任务ID
753
790
  */
754
- LogSource?: string;
791
+ TaskId?: number;
755
792
  /**
756
- * 日志集
793
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
757
794
  */
758
- LogSet?: string;
795
+ RequestId?: string;
796
+ }
797
+ /**
798
+ * DescribeGeneralSpanList请求参数结构体
799
+ */
800
+ export interface DescribeGeneralSpanListRequest {
759
801
  /**
760
- * 日志主题
802
+ * 业务系统 ID
761
803
  */
762
- LogTopicID?: string;
804
+ InstanceId: string;
763
805
  /**
764
- * 方法栈快照开关 true 开启 false 关闭
806
+ * Span 查询开始时间戳(单位:秒)
765
807
  */
766
- SnapshotEnable?: boolean;
808
+ StartTime: number;
767
809
  /**
768
- * 慢调用监听触发阈值
810
+ * Span 查询结束时间戳(单位:秒)
769
811
  */
770
- SnapshotTimeout?: number;
812
+ EndTime: number;
771
813
  /**
772
- * 探针总开关
814
+ * 通用过滤参数
773
815
  */
774
- AgentEnable?: boolean;
816
+ Filters?: Array<Filter>;
775
817
  /**
776
- * 组件列表开关(已废弃)
818
+ * 排序
819
+ 现支持的 Key 有:
820
+
821
+ - startTime(开始时间)
822
+ - endTime(结束时间)
823
+ - duration(响应时间)
824
+
825
+ 现支持的 Value 有:
826
+
827
+ - desc(降序排序)
828
+ - asc(升序排序)
777
829
  */
778
- InstrumentList?: Array<Instrument>;
830
+ OrderBy?: OrderBy;
779
831
  /**
780
- * 链路压缩开关(已废弃)
832
+ * 业务自身服务名,控制台用户请填写taw
781
833
  */
782
- TraceSquash?: boolean;
783
- }
784
- /**
785
- * 维度(标签)对象
786
- */
787
- export interface ApmTag {
834
+ BusinessName?: string;
788
835
  /**
789
- * 维度Key(列名,标签Key)
836
+ * 单页项目个数,默认为10000,合法取值范围为0~10000
790
837
  */
791
- Key: string;
838
+ Limit?: number;
792
839
  /**
793
- * 维度值(标签值)
840
+ * 分页
794
841
  */
795
- Value: string;
842
+ Offset?: number;
796
843
  }
797
844
  /**
798
845
  * APM 通用 KV 结构
@@ -859,51 +906,17 @@ export interface DescribeGeneralOTSpanListResponse {
859
906
  RequestId?: string;
860
907
  }
861
908
  /**
862
- * DescribeGeneralSpanList请求参数结构体
909
+ * 维度(标签)对象
863
910
  */
864
- export interface DescribeGeneralSpanListRequest {
865
- /**
866
- * 业务系统 ID
867
- */
868
- InstanceId: string;
869
- /**
870
- * Span 查询开始时间戳(单位:秒)
871
- */
872
- StartTime: number;
873
- /**
874
- * Span 查询结束时间戳(单位:秒)
875
- */
876
- EndTime: number;
877
- /**
878
- * 通用过滤参数
879
- */
880
- Filters?: Array<Filter>;
881
- /**
882
- * 排序
883
- 现支持的 Key 有:
884
-
885
- - startTime(开始时间)
886
- - endTime(结束时间)
887
- - duration(响应时间)
888
-
889
- 现支持的 Value 有:
890
-
891
- - desc(降序排序)
892
- - asc(升序排序)
893
- */
894
- OrderBy?: OrderBy;
895
- /**
896
- * 业务自身服务名,控制台用户请填写taw
897
- */
898
- BusinessName?: string;
911
+ export interface ApmTag {
899
912
  /**
900
- * 单页项目个数,默认为10000,合法取值范围为0~10000
913
+ * 维度Key(列名,标签Key)
901
914
  */
902
- Limit?: number;
915
+ Key: string;
903
916
  /**
904
- * 分页
917
+ * 维度值(标签值)
905
918
  */
906
- Offset?: number;
919
+ Value: string;
907
920
  }
908
921
  /**
909
922
  * 查询过滤参数
@@ -1175,6 +1188,43 @@ export interface SpanReference {
1175
1188
  */
1176
1189
  TraceID: string;
1177
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
+ }
1178
1228
  /**
1179
1229
  * 服务相关信息
1180
1230
  */