tencentcloud-sdk-nodejs-apm 4.0.341 → 4.0.344

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.
@@ -15,87 +15,6 @@
15
15
  * under the License.
16
16
  */
17
17
 
18
- /**
19
- * 指标列表单元
20
- */
21
- export interface ApmMetricRecord {
22
- /**
23
- * field数组
24
- */
25
- Fields: Array<ApmField>
26
-
27
- /**
28
- * tag数组
29
- */
30
- Tags: Array<ApmTag>
31
- }
32
-
33
- /**
34
- * CreateApmInstance返回参数结构体
35
- */
36
- export interface CreateApmInstanceResponse {
37
- /**
38
- * 实例ID
39
- 注意:此字段可能返回 null,表示取不到有效值。
40
- */
41
- InstanceId: string
42
-
43
- /**
44
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
45
- */
46
- RequestId?: string
47
- }
48
-
49
- /**
50
- * DescribeServiceOverview请求参数结构体
51
- */
52
- export interface DescribeServiceOverviewRequest {
53
- /**
54
- * 过滤条件
55
- */
56
- Filters: Array<Filter>
57
-
58
- /**
59
- * 指标列表
60
- */
61
- Metrics: Array<QueryMetricItem>
62
-
63
- /**
64
- * 聚合维度
65
- */
66
- GroupBy: Array<string>
67
-
68
- /**
69
- * 排序
70
- */
71
- OrderBy?: OrderBy
72
-
73
- /**
74
- * 实例ID
75
- */
76
- InstanceId?: string
77
-
78
- /**
79
- * 每页大小
80
- */
81
- Limit?: number
82
-
83
- /**
84
- * 开始时间
85
- */
86
- StartTime?: number
87
-
88
- /**
89
- * 分页起始点
90
- */
91
- Offset?: number
92
-
93
- /**
94
- * 结束时间
95
- */
96
- EndTime?: number
97
- }
98
-
99
18
  /**
100
19
  * apm实例信息
101
20
  */
@@ -262,9 +181,9 @@ export interface CreateApmInstanceRequest {
262
181
  }
263
182
 
264
183
  /**
265
- * DescribeMetricRecords返回参数结构体
184
+ * DescribeServiceOverview返回参数结构体
266
185
  */
267
- export interface DescribeMetricRecordsResponse {
186
+ export interface DescribeServiceOverviewResponse {
268
187
  /**
269
188
  * 指标结果集
270
189
  注意:此字段可能返回 null,表示取不到有效值。
@@ -278,45 +197,34 @@ export interface DescribeMetricRecordsResponse {
278
197
  }
279
198
 
280
199
  /**
281
- * DescribeApmAgent返回参数结构体
200
+ * 查询
282
201
  */
283
- export interface DescribeApmAgentResponse {
284
- /**
285
- * Agent信息
286
- 注意:此字段可能返回 null,表示取不到有效值。
287
- */
288
- ApmAgent: ApmAgentInfo
289
-
202
+ export interface QueryMetricItem {
290
203
  /**
291
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
204
+ * 指标名
292
205
  */
293
- RequestId?: string
294
- }
206
+ MetricName: string
295
207
 
296
- /**
297
- * 维度(标签)对象
298
- */
299
- export interface ApmTag {
300
208
  /**
301
- * 维度Key(列名,标签Key)
209
+ * 同比,已弃用,不建议使用
302
210
  */
303
- Key: string
211
+ Compare?: string
304
212
 
305
213
  /**
306
- * 维度值(标签值)
214
+ * 同比,支持多种同比方式
307
215
  */
308
- Value: string
216
+ Compares?: Array<string>
309
217
  }
310
218
 
311
219
  /**
312
- * DescribeServiceOverview返回参数结构体
220
+ * DescribeApmInstances返回参数结构体
313
221
  */
314
- export interface DescribeServiceOverviewResponse {
222
+ export interface DescribeApmInstancesResponse {
315
223
  /**
316
- * 指标结果集
224
+ * apm实例列表
317
225
  注意:此字段可能返回 null,表示取不到有效值。
318
226
  */
319
- Records: Array<ApmMetricRecord>
227
+ Instances: Array<ApmInstanceDetail>
320
228
 
321
229
  /**
322
230
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -325,104 +233,125 @@ export interface DescribeServiceOverviewResponse {
325
233
  }
326
234
 
327
235
  /**
328
- * DescribeApmInstances返回参数结构体
236
+ * apm Agent信息
329
237
  */
330
- export interface DescribeApmInstancesResponse {
238
+ export interface ApmAgentInfo {
331
239
  /**
332
- * apm实例列表
240
+ * Agent下载地址
333
241
  注意:此字段可能返回 null,表示取不到有效值。
334
242
  */
335
- Instances: Array<ApmInstanceDetail>
243
+ AgentDownloadURL: string
336
244
 
337
245
  /**
338
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
339
- */
340
- RequestId?: string
246
+ * Collector上报地址
247
+ 注意:此字段可能返回 null,表示取不到有效值。
248
+ */
249
+ CollectorURL: string
250
+
251
+ /**
252
+ * Token信息
253
+ 注意:此字段可能返回 null,表示取不到有效值。
254
+ */
255
+ Token: string
256
+
257
+ /**
258
+ * 外网上报地址
259
+ 注意:此字段可能返回 null,表示取不到有效值。
260
+ */
261
+ PublicCollectorURL: string
262
+
263
+ /**
264
+ * 自研VPC上报地址
265
+ 注意:此字段可能返回 null,表示取不到有效值。
266
+ */
267
+ InnerCollectorURL: string
268
+
269
+ /**
270
+ * 内网上报地址(Private Link上报地址)
271
+ 注意:此字段可能返回 null,表示取不到有效值。
272
+ */
273
+ PrivateLinkCollectorURL: string
341
274
  }
342
275
 
343
276
  /**
344
- * 查询过滤参数
277
+ * 指标列表单元
345
278
  */
346
- export interface Filter {
347
- /**
348
- * 过滤方式(=, !=, in)
349
- */
350
- Type: string
351
-
279
+ export interface ApmMetricRecord {
352
280
  /**
353
- * 过滤维度名
281
+ * field数组
354
282
  */
355
- Key: string
283
+ Fields: Array<ApmField>
356
284
 
357
285
  /**
358
- * 过滤值,in过滤方式用逗号分割多个值
286
+ * tag数组
359
287
  */
360
- Value: string
288
+ Tags: Array<ApmTag>
361
289
  }
362
290
 
363
291
  /**
364
- * DescribeApmAgent请求参数结构体
292
+ * DescribeServiceOverview请求参数结构体
365
293
  */
366
- export interface DescribeApmAgentRequest {
294
+ export interface DescribeServiceOverviewRequest {
367
295
  /**
368
- * 实例ID
296
+ * 过滤条件
369
297
  */
370
- InstanceId: string
298
+ Filters: Array<Filter>
371
299
 
372
300
  /**
373
- * 接入方式
301
+ * 指标列表
374
302
  */
375
- AgentType?: string
303
+ Metrics: Array<QueryMetricItem>
376
304
 
377
305
  /**
378
- * 环境
306
+ * 聚合维度
379
307
  */
380
- NetworkMode?: string
308
+ GroupBy: Array<string>
381
309
 
382
310
  /**
383
- * 语言
311
+ * 排序
384
312
  */
385
- LanguageEnvironment?: string
386
- }
313
+ OrderBy?: OrderBy
387
314
 
388
- /**
389
- * sql排序字段
390
- */
391
- export interface OrderBy {
392
315
  /**
393
- * 需要排序的字段
316
+ * 实例ID
394
317
  */
395
- Key: string
318
+ InstanceId?: string
396
319
 
397
320
  /**
398
- * 顺序排序/倒序排序
321
+ * 每页大小
399
322
  */
400
- Value: string
401
- }
323
+ Limit?: number
402
324
 
403
- /**
404
- * DescribeApmInstances请求参数结构体
405
- */
406
- export interface DescribeApmInstancesRequest {
407
325
  /**
408
- * Tag列表
326
+ * 开始时间
409
327
  */
410
- Tags?: Array<ApmTag>
328
+ StartTime?: number
411
329
 
412
330
  /**
413
- * 搜索实例名
331
+ * 分页起始点
414
332
  */
415
- InstanceName?: string
333
+ Offset?: number
416
334
 
417
335
  /**
418
- * 过滤实例ID
336
+ * 结束时间
419
337
  */
420
- InstanceIds?: Array<string>
338
+ EndTime?: number
339
+ }
421
340
 
341
+ /**
342
+ * DescribeApmAgent返回参数结构体
343
+ */
344
+ export interface DescribeApmAgentResponse {
422
345
  /**
423
- * 是否查询官方demo实例
346
+ * Agent信息
347
+ 注意:此字段可能返回 null,表示取不到有效值。
348
+ */
349
+ ApmAgent: ApmAgentInfo
350
+
351
+ /**
352
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
424
353
  */
425
- DemoInstanceFlag?: number
354
+ RequestId?: string
426
355
  }
427
356
 
428
357
  /**
@@ -459,6 +388,146 @@ export interface ApmField {
459
388
  Key: string
460
389
  }
461
390
 
391
+ /**
392
+ * 指标曲线数据
393
+ */
394
+ export interface Line {
395
+ /**
396
+ * 指标名
397
+ */
398
+ MetricName: string
399
+
400
+ /**
401
+ * 指标中文名
402
+ */
403
+ MetricNameCN: string
404
+
405
+ /**
406
+ * 时间序列
407
+ */
408
+ TimeSerial: Array<number>
409
+
410
+ /**
411
+ * 数据序列
412
+ 注意:此字段可能返回 null,表示取不到有效值。
413
+ */
414
+ DataSerial: Array<number>
415
+
416
+ /**
417
+ * 维度列表
418
+ 注意:此字段可能返回 null,表示取不到有效值。
419
+ */
420
+ Tags: Array<ApmTag>
421
+ }
422
+
423
+ /**
424
+ * Apm通用KV结构
425
+ */
426
+ export interface APMKVItem {
427
+ /**
428
+ * Key值定义
429
+ 注意:此字段可能返回 null,表示取不到有效值。
430
+ */
431
+ Key: string
432
+
433
+ /**
434
+ * Value值定义
435
+ 注意:此字段可能返回 null,表示取不到有效值。
436
+ */
437
+ Value: string
438
+ }
439
+
440
+ /**
441
+ * sql排序字段
442
+ */
443
+ export interface OrderBy {
444
+ /**
445
+ * 需要排序的字段
446
+ */
447
+ Key: string
448
+
449
+ /**
450
+ * 顺序排序/倒序排序
451
+ */
452
+ Value: string
453
+ }
454
+
455
+ /**
456
+ * DescribeMetricRecords返回参数结构体
457
+ */
458
+ export interface DescribeMetricRecordsResponse {
459
+ /**
460
+ * 指标结果集
461
+ 注意:此字段可能返回 null,表示取不到有效值。
462
+ */
463
+ Records: Array<ApmMetricRecord>
464
+
465
+ /**
466
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
467
+ */
468
+ RequestId?: string
469
+ }
470
+
471
+ /**
472
+ * 维度(标签)对象
473
+ */
474
+ export interface ApmTag {
475
+ /**
476
+ * 维度Key(列名,标签Key)
477
+ */
478
+ Key: string
479
+
480
+ /**
481
+ * 维度值(标签值)
482
+ */
483
+ Value: string
484
+ }
485
+
486
+ /**
487
+ * 查询过滤参数
488
+ */
489
+ export interface Filter {
490
+ /**
491
+ * 过滤方式(=, !=, in)
492
+ */
493
+ Type: string
494
+
495
+ /**
496
+ * 过滤维度名
497
+ */
498
+ Key: string
499
+
500
+ /**
501
+ * 过滤值,in过滤方式用逗号分割多个值
502
+ */
503
+ Value: string
504
+ }
505
+
506
+ /**
507
+ * DescribeApmAgent请求参数结构体
508
+ */
509
+ export interface DescribeApmAgentRequest {
510
+ /**
511
+ * 实例ID
512
+ */
513
+ InstanceId: string
514
+
515
+ /**
516
+ * 接入方式
517
+ */
518
+ AgentType?: string
519
+
520
+ /**
521
+ * 环境
522
+ */
523
+ NetworkMode?: string
524
+
525
+ /**
526
+ * 语言
527
+ */
528
+ LanguageEnvironment?: string
529
+ }
530
+
462
531
  /**
463
532
  * DescribeMetricRecords请求参数结构体
464
533
  */
@@ -515,79 +584,125 @@ export interface DescribeMetricRecordsRequest {
515
584
  }
516
585
 
517
586
  /**
518
- * apm Agent信息
587
+ * DescribeGeneralMetricData请求参数结构体
519
588
  */
520
- export interface ApmAgentInfo {
589
+ export interface DescribeGeneralMetricDataRequest {
521
590
  /**
522
- * Agent下载地址
523
- 注意:此字段可能返回 null,表示取不到有效值。
591
+ * 要过滤的维度信息,支持:service.name(服务名)、span.kind(客户端/服务端视角)为维度进行过滤。
592
+
593
+ span.kind:
594
+
595
+ server:服务端视角
596
+ client:客户端视角
597
+
598
+ 默认为服务端视角进行查询。
524
599
  */
525
- AgentDownloadURL: string
600
+ Filters: Array<GeneralFilter>
526
601
 
527
602
  /**
528
- * Collector上报地址
529
- 注意:此字段可能返回 null,表示取不到有效值。
530
- */
531
- CollectorURL: string
603
+ * 需要查询的指标,不可自定义输入。支持:service_request_count(总请求)、service_duration(平均响应时间)的指标数据。
604
+ */
605
+ Metrics: Array<string>
532
606
 
533
607
  /**
534
- * Token信息
535
- 注意:此字段可能返回 null,表示取不到有效值。
536
- */
537
- Token: string
608
+ * 实例ID
609
+ */
610
+ InstanceId: string
538
611
 
539
612
  /**
540
- * 外网上报地址
541
- 注意:此字段可能返回 null,表示取不到有效值。
542
- */
543
- PublicCollectorURL: string
613
+ * 视图名称
614
+ */
615
+ ViewName: string
544
616
 
545
617
  /**
546
- * 自研VPC上报地址
547
- 注意:此字段可能返回 null,表示取不到有效值。
548
- */
549
- InnerCollectorURL: string
618
+ * 聚合维度,支持:service.name(服务名)、span.kind (客户端/服务端视角)维度进行聚合。
619
+ */
620
+ GroupBy?: Array<string>
550
621
 
551
622
  /**
552
- * 内网上报地址(Private Link上报地址)
623
+ * 起始时间的时间戳,单位为秒,只支持查询2天内最多1小时的指标数据。
624
+ */
625
+ StartTime?: number
626
+
627
+ /**
628
+ * 结束时间的时间戳,单位为秒,只支持查询2天内最多1小时的指标数据。
629
+ */
630
+ EndTime?: number
631
+
632
+ /**
633
+ * 聚合粒度,单位为秒,最小为60s,即一分钟的聚合粒度;如果为空或0则计算开始时间到截止时间的指标数据,上报其他值会报错。
634
+ */
635
+ Period?: number
636
+ }
637
+
638
+ /**
639
+ * CreateApmInstance返回参数结构体
640
+ */
641
+ export interface CreateApmInstanceResponse {
642
+ /**
643
+ * 实例ID
553
644
  注意:此字段可能返回 null,表示取不到有效值。
554
645
  */
555
- PrivateLinkCollectorURL: string
646
+ InstanceId: string
647
+
648
+ /**
649
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
650
+ */
651
+ RequestId?: string
556
652
  }
557
653
 
558
654
  /**
559
- * 查询
655
+ * 查询过滤参数
560
656
  */
561
- export interface QueryMetricItem {
657
+ export interface GeneralFilter {
562
658
  /**
563
- * 指标名
659
+ * 过滤维度名
564
660
  */
565
- MetricName: string
661
+ Key: string
566
662
 
567
663
  /**
568
- * 同比,已弃用,不建议使用
664
+ * 过滤值
569
665
  */
570
- Compare?: string
666
+ Value: string
667
+ }
571
668
 
669
+ /**
670
+ * DescribeApmInstances请求参数结构体
671
+ */
672
+ export interface DescribeApmInstancesRequest {
572
673
  /**
573
- * 同比,支持多种同比方式
674
+ * Tag列表
574
675
  */
575
- Compares?: Array<string>
676
+ Tags?: Array<ApmTag>
677
+
678
+ /**
679
+ * 搜索实例名
680
+ */
681
+ InstanceName?: string
682
+
683
+ /**
684
+ * 过滤实例ID
685
+ */
686
+ InstanceIds?: Array<string>
687
+
688
+ /**
689
+ * 是否查询官方demo实例
690
+ */
691
+ DemoInstanceFlag?: number
576
692
  }
577
693
 
578
694
  /**
579
- * Apm通用KV结构
695
+ * DescribeGeneralMetricData返回参数结构体
580
696
  */
581
- export interface APMKVItem {
697
+ export interface DescribeGeneralMetricDataResponse {
582
698
  /**
583
- * Key值定义
699
+ * 指标结果集
584
700
  注意:此字段可能返回 null,表示取不到有效值。
585
701
  */
586
- Key: string
702
+ Records: Array<Line>
587
703
 
588
704
  /**
589
- * Value值定义
590
- 注意:此字段可能返回 null,表示取不到有效值。
591
- */
592
- Value: string
705
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
706
+ */
707
+ RequestId?: string
593
708
  }
@@ -1,19 +1,11 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { CreateApmInstanceResponse, DescribeServiceOverviewRequest, CreateApmInstanceRequest, DescribeMetricRecordsResponse, DescribeApmAgentResponse, DescribeServiceOverviewResponse, DescribeApmInstancesResponse, DescribeApmAgentRequest, DescribeApmInstancesRequest, DescribeMetricRecordsRequest } from "./apm_models";
2
+ import { CreateApmInstanceRequest, DescribeServiceOverviewResponse, DescribeApmInstancesResponse, DescribeServiceOverviewRequest, DescribeApmAgentResponse, DescribeMetricRecordsResponse, DescribeApmAgentRequest, DescribeMetricRecordsRequest, DescribeGeneralMetricDataRequest, CreateApmInstanceResponse, DescribeApmInstancesRequest, DescribeGeneralMetricDataResponse } 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
- * 业务购买APM实例,调用该接口创建
11
- */
12
- CreateApmInstance(req: CreateApmInstanceRequest, cb?: (error: string, rep: CreateApmInstanceResponse) => void): Promise<CreateApmInstanceResponse>;
13
- /**
14
- * 拉取通用指标列表
15
- */
16
- DescribeMetricRecords(req: DescribeMetricRecordsRequest, cb?: (error: string, rep: DescribeMetricRecordsResponse) => void): Promise<DescribeMetricRecordsResponse>;
17
9
  /**
18
10
  * APM实例列表拉取
19
11
  */
@@ -22,6 +14,19 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
22
14
  * 获取Apm Agent信息
23
15
  */
24
16
  DescribeApmAgent(req: DescribeApmAgentRequest, cb?: (error: string, rep: DescribeApmAgentResponse) => void): Promise<DescribeApmAgentResponse>;
17
+ /**
18
+ * 获取指标数据通用接口。用户根据需要上送请求参数,返回对应的指标数据。
19
+ 接口调用频率限制为:20次/秒,1200次/分钟。单请求的数据点数限制为1440个。
20
+ */
21
+ DescribeGeneralMetricData(req: DescribeGeneralMetricDataRequest, cb?: (error: string, rep: DescribeGeneralMetricDataResponse) => void): Promise<DescribeGeneralMetricDataResponse>;
22
+ /**
23
+ * 拉取通用指标列表
24
+ */
25
+ DescribeMetricRecords(req: DescribeMetricRecordsRequest, cb?: (error: string, rep: DescribeMetricRecordsResponse) => void): Promise<DescribeMetricRecordsResponse>;
26
+ /**
27
+ * 业务购买APM实例,调用该接口创建
28
+ */
29
+ CreateApmInstance(req: CreateApmInstanceRequest, cb?: (error: string, rep: CreateApmInstanceResponse) => void): Promise<CreateApmInstanceResponse>;
25
30
  /**
26
31
  * 服务概览数据拉取
27
32
  */