tencentcloud-sdk-nodejs-apm 4.0.810 → 4.0.842

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.
@@ -21,36 +21,44 @@ import {
21
21
  ModifyApmInstanceRequest,
22
22
  ApmInstanceDetail,
23
23
  CreateApmInstanceRequest,
24
+ ModifyGeneralApmApplicationConfigRequest,
24
25
  DescribeServiceOverviewResponse,
25
26
  QueryMetricItem,
26
27
  TerminateApmInstanceRequest,
27
28
  DescribeApmInstancesResponse,
29
+ Instrument,
30
+ DescribeTagValuesResponse,
28
31
  Span,
29
32
  ApmAgentInfo,
30
33
  DescribeGeneralSpanListResponse,
31
34
  ApmMetricRecord,
32
35
  DescribeServiceOverviewRequest,
33
36
  DescribeApmAgentResponse,
37
+ DescribeTagValuesRequest,
34
38
  ApmField,
35
39
  Line,
36
- DescribeGeneralSpanListRequest,
40
+ ApmApplicationConfigView,
41
+ ApmTag,
37
42
  APMKVItem,
38
43
  OrderBy,
39
44
  DescribeMetricRecordsResponse,
40
- ApmTag,
45
+ DescribeGeneralSpanListRequest,
41
46
  Filter,
42
47
  APMKV,
43
48
  DescribeApmAgentRequest,
44
49
  DescribeMetricRecordsRequest,
50
+ DescribeGeneralApmApplicationConfigResponse,
45
51
  DescribeGeneralMetricDataRequest,
46
52
  CreateApmInstanceResponse,
47
53
  SpanReference,
48
54
  SpanProcess,
55
+ DescribeGeneralApmApplicationConfigRequest,
49
56
  ModifyApmInstanceResponse,
50
57
  GeneralFilter,
51
58
  DescribeApmInstancesRequest,
52
59
  SpanTag,
53
60
  DescribeGeneralMetricDataResponse,
61
+ ModifyGeneralApmApplicationConfigResponse,
54
62
  TerminateApmInstanceResponse,
55
63
  } from "./apm_models"
56
64
 
@@ -64,13 +72,23 @@ export class Client extends TencentCloudCommon.AbstractClient {
64
72
  }
65
73
 
66
74
  /**
67
- * 修改APM实例接口
75
+ * 查询应用配置信息
68
76
  */
69
- async ModifyApmInstance(
70
- req: ModifyApmInstanceRequest,
71
- cb?: (error: string, rep: ModifyApmInstanceResponse) => void
72
- ): Promise<ModifyApmInstanceResponse> {
73
- return this.request("ModifyApmInstance", req, cb)
77
+ async DescribeGeneralApmApplicationConfig(
78
+ req: DescribeGeneralApmApplicationConfigRequest,
79
+ cb?: (error: string, rep: DescribeGeneralApmApplicationConfigResponse) => void
80
+ ): Promise<DescribeGeneralApmApplicationConfigResponse> {
81
+ return this.request("DescribeGeneralApmApplicationConfig", req, cb)
82
+ }
83
+
84
+ /**
85
+ * 根据维度名和过滤条件,查询维度数据.
86
+ */
87
+ async DescribeTagValues(
88
+ req: DescribeTagValuesRequest,
89
+ cb?: (error: string, rep: DescribeTagValuesResponse) => void
90
+ ): Promise<DescribeTagValuesResponse> {
91
+ return this.request("DescribeTagValues", req, cb)
74
92
  }
75
93
 
76
94
  /**
@@ -103,6 +121,26 @@ export class Client extends TencentCloudCommon.AbstractClient {
103
121
  return this.request("DescribeApmAgent", req, cb)
104
122
  }
105
123
 
124
+ /**
125
+ * 修改APM实例接口
126
+ */
127
+ async ModifyApmInstance(
128
+ req: ModifyApmInstanceRequest,
129
+ cb?: (error: string, rep: ModifyApmInstanceResponse) => void
130
+ ): Promise<ModifyApmInstanceResponse> {
131
+ return this.request("ModifyApmInstance", req, cb)
132
+ }
133
+
134
+ /**
135
+ * 对外开放的openApi,客户可以灵活的指定需要修改的字段,再加入需要修改的服务列表.
136
+ */
137
+ async ModifyGeneralApmApplicationConfig(
138
+ req: ModifyGeneralApmApplicationConfigRequest,
139
+ cb?: (error: string, rep: ModifyGeneralApmApplicationConfigResponse) => void
140
+ ): Promise<ModifyGeneralApmApplicationConfigResponse> {
141
+ return this.request("ModifyGeneralApmApplicationConfig", req, cb)
142
+ }
143
+
106
144
  /**
107
145
  * 获取指标数据通用接口。用户根据需要上送请求参数,返回对应的指标数据。
108
146
  接口调用频率限制为:20次/秒,1200次/分钟。单请求的数据点数限制为1440个。
@@ -292,6 +292,24 @@ export interface CreateApmInstanceRequest {
292
292
  PayMode?: number
293
293
  }
294
294
 
295
+ /**
296
+ * ModifyGeneralApmApplicationConfig请求参数结构体
297
+ */
298
+ export interface ModifyGeneralApmApplicationConfigRequest {
299
+ /**
300
+ * 实例Id
301
+ */
302
+ InstanceId: string
303
+ /**
304
+ * 需要修改的字段key value分别指定字段名、字段值
305
+ */
306
+ Tags: Array<ApmTag>
307
+ /**
308
+ * 需要修改配置的服务列表名称
309
+ */
310
+ ServiceNames?: Array<string>
311
+ }
312
+
295
313
  /**
296
314
  * DescribeServiceOverview返回参数结构体
297
315
  */
@@ -350,6 +368,36 @@ export interface DescribeApmInstancesResponse {
350
368
  RequestId?: string
351
369
  }
352
370
 
371
+ /**
372
+ * 组件
373
+ */
374
+ export interface Instrument {
375
+ /**
376
+ * 组件名称
377
+ 注意:此字段可能返回 null,表示取不到有效值。
378
+ */
379
+ Name?: string
380
+ /**
381
+ * 组件开关
382
+ 注意:此字段可能返回 null,表示取不到有效值。
383
+ */
384
+ Enable?: boolean
385
+ }
386
+
387
+ /**
388
+ * DescribeTagValues返回参数结构体
389
+ */
390
+ export interface DescribeTagValuesResponse {
391
+ /**
392
+ * 维度值列表
393
+ */
394
+ Values?: Array<string>
395
+ /**
396
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
397
+ */
398
+ RequestId?: string
399
+ }
400
+
353
401
  /**
354
402
  * Span对象
355
403
  */
@@ -541,6 +589,40 @@ export interface DescribeApmAgentResponse {
541
589
  RequestId?: string
542
590
  }
543
591
 
592
+ /**
593
+ * DescribeTagValues请求参数结构体
594
+ */
595
+ export interface DescribeTagValuesRequest {
596
+ /**
597
+ * 维度名
598
+ */
599
+ TagKey: string
600
+ /**
601
+ * 实例ID
602
+ */
603
+ InstanceId?: string
604
+ /**
605
+ * 结束时间
606
+ */
607
+ EndTime?: number
608
+ /**
609
+ * 过滤条件
610
+ */
611
+ Filters?: Array<Filter>
612
+ /**
613
+ * 开始时间
614
+ */
615
+ StartTime?: number
616
+ /**
617
+ * Or过滤条件
618
+ */
619
+ OrFilters?: Array<Filter>
620
+ /**
621
+ * 使用类型
622
+ */
623
+ Type?: string
624
+ }
625
+
544
626
  /**
545
627
  * 指标维度信息
546
628
  */
@@ -605,41 +687,102 @@ export interface Line {
605
687
  }
606
688
 
607
689
  /**
608
- * DescribeGeneralSpanList请求参数结构体
690
+ * 应用相关的配置列表项
609
691
  */
610
- export interface DescribeGeneralSpanListRequest {
692
+ export interface ApmApplicationConfigView {
611
693
  /**
612
- * 分页
694
+ * 实例ID
613
695
  */
614
- Offset: number
696
+ InstanceKey?: string
615
697
  /**
616
- * 列表项个数
698
+ * 服务名
617
699
  */
618
- Limit: number
700
+ ServiceName?: string
619
701
  /**
620
- * 排序
702
+ * 接口过滤
621
703
  */
622
- OrderBy?: OrderBy
704
+ OperationNameFilter?: string
623
705
  /**
624
- * span查询开始时间戳(单位:秒)
706
+ * 异常过滤
625
707
  */
626
- StartTime?: number
708
+ ExceptionFilter?: string
627
709
  /**
628
- * 实例名
710
+ * 错误码过滤
629
711
  */
630
- InstanceId?: string
712
+ ErrorCodeFilter?: string
631
713
  /**
632
- * 通用过滤参数
714
+ * 应用诊断开关
715
+ 注意:此字段可能返回 null,表示取不到有效值。
633
716
  */
634
- Filters?: Array<Filter>
717
+ EventEnable?: boolean
635
718
  /**
636
- * 业务自身服务名
719
+ * URL收敛开关 0 关 1 开
637
720
  */
638
- BusinessName?: string
721
+ UrlConvergenceSwitch?: number
639
722
  /**
640
- * span查询结束时间戳(单位:秒)
723
+ * URL收敛阈值
641
724
  */
642
- EndTime?: number
725
+ UrlConvergenceThreshold?: number
726
+ /**
727
+ * URL收敛规则正则
728
+ */
729
+ UrlConvergence?: string
730
+ /**
731
+ * URL排除规则正则
732
+ */
733
+ UrlExclude?: string
734
+ /**
735
+ * 是否开启日志 0 关 1 开
736
+ */
737
+ IsRelatedLog?: number
738
+ /**
739
+ * 日志来源
740
+ 注意:此字段可能返回 null,表示取不到有效值。
741
+ */
742
+ LogSource?: string
743
+ /**
744
+ * CLS日志集
745
+ */
746
+ LogSet?: string
747
+ /**
748
+ * 日志主题ID
749
+ */
750
+ LogTopicID?: string
751
+ /**
752
+ * 线程剖析开关
753
+ */
754
+ SnapshotEnable?: boolean
755
+ /**
756
+ * 线程剖析超时阈值
757
+ */
758
+ SnapshotTimeout?: number
759
+ /**
760
+ * 探针开启开关
761
+ */
762
+ AgentEnable?: boolean
763
+ /**
764
+ * 组件列表开关
765
+ 注意:此字段可能返回 null,表示取不到有效值。
766
+ */
767
+ InstrumentList?: Array<Instrument>
768
+ /**
769
+ * 链路压缩开关
770
+ */
771
+ TraceSquash?: boolean
772
+ }
773
+
774
+ /**
775
+ * 维度(标签)对象
776
+ */
777
+ export interface ApmTag {
778
+ /**
779
+ * 维度Key(列名,标签Key)
780
+ */
781
+ Key: string
782
+ /**
783
+ * 维度值(标签值)
784
+ */
785
+ Value: string
643
786
  }
644
787
 
645
788
  /**
@@ -693,17 +836,41 @@ export interface DescribeMetricRecordsResponse {
693
836
  }
694
837
 
695
838
  /**
696
- * 维度(标签)对象
839
+ * DescribeGeneralSpanList请求参数结构体
697
840
  */
698
- export interface ApmTag {
841
+ export interface DescribeGeneralSpanListRequest {
699
842
  /**
700
- * 维度Key(列名,标签Key)
843
+ * 分页
701
844
  */
702
- Key: string
845
+ Offset: number
703
846
  /**
704
- * 维度值(标签值)
847
+ * 列表项个数
705
848
  */
706
- Value: string
849
+ Limit: number
850
+ /**
851
+ * 排序
852
+ */
853
+ OrderBy?: OrderBy
854
+ /**
855
+ * span查询开始时间戳(单位:秒)
856
+ */
857
+ StartTime?: number
858
+ /**
859
+ * 实例名
860
+ */
861
+ InstanceId?: string
862
+ /**
863
+ * 通用过滤参数
864
+ */
865
+ Filters?: Array<Filter>
866
+ /**
867
+ * 业务自身服务名
868
+ */
869
+ BusinessName?: string
870
+ /**
871
+ * span查询结束时间戳(单位:秒)
872
+ */
873
+ EndTime?: number
707
874
  }
708
875
 
709
876
  /**
@@ -824,6 +991,20 @@ export interface DescribeMetricRecordsRequest {
824
991
  OrFilters?: Array<Filter>
825
992
  }
826
993
 
994
+ /**
995
+ * DescribeGeneralApmApplicationConfig返回参数结构体
996
+ */
997
+ export interface DescribeGeneralApmApplicationConfigResponse {
998
+ /**
999
+ * 应用配置项
1000
+ */
1001
+ ApmApplicationConfigView?: ApmApplicationConfigView
1002
+ /**
1003
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1004
+ */
1005
+ RequestId?: string
1006
+ }
1007
+
827
1008
  /**
828
1009
  * DescribeGeneralMetricData请求参数结构体
829
1010
  */
@@ -935,6 +1116,20 @@ export interface SpanProcess {
935
1116
  Tags: Array<SpanTag>
936
1117
  }
937
1118
 
1119
+ /**
1120
+ * DescribeGeneralApmApplicationConfig请求参数结构体
1121
+ */
1122
+ export interface DescribeGeneralApmApplicationConfigRequest {
1123
+ /**
1124
+ * 应用名
1125
+ */
1126
+ ServiceName: string
1127
+ /**
1128
+ * 实例Id
1129
+ */
1130
+ InstanceId: string
1131
+ }
1132
+
938
1133
  /**
939
1134
  * ModifyApmInstance返回参数结构体
940
1135
  */
@@ -1020,6 +1215,20 @@ export interface DescribeGeneralMetricDataResponse {
1020
1215
  RequestId?: string
1021
1216
  }
1022
1217
 
1218
+ /**
1219
+ * ModifyGeneralApmApplicationConfig返回参数结构体
1220
+ */
1221
+ export interface ModifyGeneralApmApplicationConfigResponse {
1222
+ /**
1223
+ * 返回值描述
1224
+ */
1225
+ Message?: string
1226
+ /**
1227
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1228
+ */
1229
+ RequestId?: string
1230
+ }
1231
+
1023
1232
  /**
1024
1233
  * TerminateApmInstance返回参数结构体
1025
1234
  */
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { ModifyApmInstanceRequest, CreateApmInstanceRequest, DescribeServiceOverviewResponse, TerminateApmInstanceRequest, DescribeApmInstancesResponse, DescribeGeneralSpanListResponse, DescribeServiceOverviewRequest, DescribeApmAgentResponse, DescribeGeneralSpanListRequest, DescribeMetricRecordsResponse, DescribeApmAgentRequest, DescribeMetricRecordsRequest, DescribeGeneralMetricDataRequest, CreateApmInstanceResponse, ModifyApmInstanceResponse, DescribeApmInstancesRequest, DescribeGeneralMetricDataResponse, TerminateApmInstanceResponse } from "./apm_models";
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";
3
3
  /**
4
4
  * apm client
5
5
  * @class
@@ -7,9 +7,13 @@ import { ModifyApmInstanceRequest, CreateApmInstanceRequest, DescribeServiceOver
7
7
  export declare class Client extends TencentCloudCommon.AbstractClient {
8
8
  constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
9
  /**
10
- * 修改APM实例接口
10
+ * 查询应用配置信息
11
11
  */
12
- ModifyApmInstance(req: ModifyApmInstanceRequest, cb?: (error: string, rep: ModifyApmInstanceResponse) => void): Promise<ModifyApmInstanceResponse>;
12
+ DescribeGeneralApmApplicationConfig(req: DescribeGeneralApmApplicationConfigRequest, cb?: (error: string, rep: DescribeGeneralApmApplicationConfigResponse) => void): Promise<DescribeGeneralApmApplicationConfigResponse>;
13
+ /**
14
+ * 根据维度名和过滤条件,查询维度数据.
15
+ */
16
+ DescribeTagValues(req: DescribeTagValuesRequest, cb?: (error: string, rep: DescribeTagValuesResponse) => void): Promise<DescribeTagValuesResponse>;
13
17
  /**
14
18
  * 通用查询调用链列表
15
19
  */
@@ -22,6 +26,14 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
22
26
  * 获取APM Agent信息
23
27
  */
24
28
  DescribeApmAgent(req: DescribeApmAgentRequest, cb?: (error: string, rep: DescribeApmAgentResponse) => void): Promise<DescribeApmAgentResponse>;
29
+ /**
30
+ * 修改APM实例接口
31
+ */
32
+ ModifyApmInstance(req: ModifyApmInstanceRequest, cb?: (error: string, rep: ModifyApmInstanceResponse) => void): Promise<ModifyApmInstanceResponse>;
33
+ /**
34
+ * 对外开放的openApi,客户可以灵活的指定需要修改的字段,再加入需要修改的服务列表.
35
+ */
36
+ ModifyGeneralApmApplicationConfig(req: ModifyGeneralApmApplicationConfigRequest, cb?: (error: string, rep: ModifyGeneralApmApplicationConfigResponse) => void): Promise<ModifyGeneralApmApplicationConfigResponse>;
25
37
  /**
26
38
  * 获取指标数据通用接口。用户根据需要上送请求参数,返回对应的指标数据。
27
39
  接口调用频率限制为:20次/秒,1200次/分钟。单请求的数据点数限制为1440个。
@@ -28,10 +28,16 @@ class Client extends TencentCloudCommon.AbstractClient {
28
28
  super("apm.tencentcloudapi.com", "2021-06-22", clientConfig);
29
29
  }
30
30
  /**
31
- * 修改APM实例接口
31
+ * 查询应用配置信息
32
32
  */
33
- async ModifyApmInstance(req, cb) {
34
- return this.request("ModifyApmInstance", req, cb);
33
+ async DescribeGeneralApmApplicationConfig(req, cb) {
34
+ return this.request("DescribeGeneralApmApplicationConfig", req, cb);
35
+ }
36
+ /**
37
+ * 根据维度名和过滤条件,查询维度数据.
38
+ */
39
+ async DescribeTagValues(req, cb) {
40
+ return this.request("DescribeTagValues", req, cb);
35
41
  }
36
42
  /**
37
43
  * 通用查询调用链列表
@@ -51,6 +57,18 @@ class Client extends TencentCloudCommon.AbstractClient {
51
57
  async DescribeApmAgent(req, cb) {
52
58
  return this.request("DescribeApmAgent", req, cb);
53
59
  }
60
+ /**
61
+ * 修改APM实例接口
62
+ */
63
+ async ModifyApmInstance(req, cb) {
64
+ return this.request("ModifyApmInstance", req, cb);
65
+ }
66
+ /**
67
+ * 对外开放的openApi,客户可以灵活的指定需要修改的字段,再加入需要修改的服务列表.
68
+ */
69
+ async ModifyGeneralApmApplicationConfig(req, cb) {
70
+ return this.request("ModifyGeneralApmApplicationConfig", req, cb);
71
+ }
54
72
  /**
55
73
  * 获取指标数据通用接口。用户根据需要上送请求参数,返回对应的指标数据。
56
74
  接口调用频率限制为:20次/秒,1200次/分钟。单请求的数据点数限制为1440个。