tencentcloud-sdk-nodejs-apm 4.0.388 → 4.0.431

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.
@@ -19,592 +19,627 @@
19
19
  * apm实例信息
20
20
  */
21
21
  export interface ApmInstanceDetail {
22
- /**
22
+
23
+ /**
23
24
  * 存储使用量(MB)
24
25
  注意:此字段可能返回 null,表示取不到有效值。
25
26
  */
26
- AmountOfUsedStorage: number
27
-
28
- /**
27
+ AmountOfUsedStorage: number;
28
+
29
+ /**
29
30
  * 实例名
30
31
  注意:此字段可能返回 null,表示取不到有效值。
31
32
  */
32
- Name: string
33
-
34
- /**
33
+ Name: string;
34
+
35
+ /**
35
36
  * 实例所属tag列表
36
37
  注意:此字段可能返回 null,表示取不到有效值。
37
38
  */
38
- Tags: Array<ApmTag>
39
-
40
- /**
41
- * 实例ID
42
- */
43
- InstanceId: string
44
-
45
- /**
39
+ Tags: Array<ApmTag>;
40
+
41
+ /**
42
+ * 实例ID
43
+ */
44
+ InstanceId: string;
45
+
46
+ /**
46
47
  * 创建人Uin
47
48
  注意:此字段可能返回 null,表示取不到有效值。
48
49
  */
49
- CreateUin: string
50
-
51
- /**
50
+ CreateUin: string;
51
+
52
+ /**
52
53
  * 该实例已上报的服务端应用数量
53
54
  注意:此字段可能返回 null,表示取不到有效值。
54
55
  */
55
- ServiceCount: number
56
-
57
- /**
56
+ ServiceCount: number;
57
+
58
+ /**
58
59
  * 日均上报Span数
59
60
  注意:此字段可能返回 null,表示取不到有效值。
60
61
  */
61
- CountOfReportSpanPerDay: number
62
-
63
- /**
64
- * AppId信息
65
- */
66
- AppId: number
67
-
68
- /**
62
+ CountOfReportSpanPerDay: number;
63
+
64
+ /**
65
+ * AppId信息
66
+ */
67
+ AppId: number;
68
+
69
+ /**
69
70
  * Trace数据保存时长
70
71
  注意:此字段可能返回 null,表示取不到有效值。
71
72
  */
72
- TraceDuration: number
73
-
74
- /**
73
+ TraceDuration: number;
74
+
75
+ /**
75
76
  * 实例描述信息
76
77
  注意:此字段可能返回 null,表示取不到有效值。
77
78
  */
78
- Description: string
79
-
80
- /**
79
+ Description: string;
80
+
81
+ /**
81
82
  * 实例状态
82
83
  注意:此字段可能返回 null,表示取不到有效值。
83
84
  */
84
- Status: number
85
-
86
- /**
85
+ Status: number;
86
+
87
+ /**
87
88
  * 实例所属地域
88
89
  注意:此字段可能返回 null,表示取不到有效值。
89
90
  */
90
- Region: string
91
-
92
- /**
91
+ Region: string;
92
+
93
+ /**
93
94
  * 实例上报额度
94
95
  注意:此字段可能返回 null,表示取不到有效值。
95
96
  */
96
- SpanDailyCounters: number
97
-
98
- /**
97
+ SpanDailyCounters: number;
98
+
99
+ /**
99
100
  * 实例是否开通计费
100
101
  注意:此字段可能返回 null,表示取不到有效值。
101
102
  */
102
- BillingInstance: number
103
-
104
- /**
103
+ BillingInstance: number;
104
+
105
+ /**
105
106
  * 错误率阈值
106
107
  注意:此字段可能返回 null,表示取不到有效值。
107
108
  */
108
- ErrRateThreshold: number
109
-
110
- /**
109
+ ErrRateThreshold: number;
110
+
111
+ /**
111
112
  * 采样率阈值
112
113
  注意:此字段可能返回 null,表示取不到有效值。
113
114
  */
114
- SampleRate: number
115
-
116
- /**
115
+ SampleRate: number;
116
+
117
+ /**
117
118
  * 是否开启错误采样 0 关 1 开
118
119
  注意:此字段可能返回 null,表示取不到有效值。
119
120
  */
120
- ErrorSample: number
121
-
122
- /**
121
+ ErrorSample: number;
122
+
123
+ /**
123
124
  * 慢调用保存阈值
124
125
  注意:此字段可能返回 null,表示取不到有效值。
125
126
  */
126
- SlowRequestSavedThreshold: number
127
-
128
- /**
127
+ SlowRequestSavedThreshold: number;
128
+
129
+ /**
129
130
  * cls日志所在地域
130
131
  注意:此字段可能返回 null,表示取不到有效值。
131
132
  */
132
- LogRegion: string
133
-
134
- /**
133
+ LogRegion: string;
134
+
135
+ /**
135
136
  * 日志来源
136
137
  注意:此字段可能返回 null,表示取不到有效值。
137
138
  */
138
- LogSource: string
139
-
140
- /**
139
+ LogSource: string;
140
+
141
+ /**
141
142
  * 日志功能开关 0 关 | 1 开
142
143
  注意:此字段可能返回 null,表示取不到有效值。
143
144
  */
144
- IsRelatedLog: number
145
-
146
- /**
145
+ IsRelatedLog: number;
146
+
147
+ /**
147
148
  * 日志主题ID
148
149
  注意:此字段可能返回 null,表示取不到有效值。
149
150
  */
150
- LogTopicID: string
151
-
152
- /**
151
+ LogTopicID: string;
152
+
153
+ /**
153
154
  * 该实例已上报的客户端应用数量
154
155
  注意:此字段可能返回 null,表示取不到有效值。
155
156
  */
156
- ClientCount: number
157
-
158
- /**
157
+ ClientCount: number;
158
+
159
+ /**
159
160
  * 该实例已上报的总应用数量
160
161
  注意:此字段可能返回 null,表示取不到有效值。
161
162
  */
162
- TotalCount: number
163
+ TotalCount: number;
163
164
  }
164
165
 
165
166
  /**
166
167
  * CreateApmInstance请求参数结构体
167
168
  */
168
169
  export interface CreateApmInstanceRequest {
169
- /**
170
- * 实例名
171
- */
172
- Name: string
173
-
174
- /**
175
- * 实例描述信息
176
- */
177
- Description?: string
178
-
179
- /**
180
- * Trace数据保存时长
181
- */
182
- TraceDuration?: number
183
-
184
- /**
185
- * 标签列表
186
- */
187
- Tags?: Array<ApmTag>
188
-
189
- /**
190
- * 实例上报额度值
191
- */
192
- SpanDailyCounters?: number
170
+
171
+ /**
172
+ * 实例名
173
+ */
174
+ Name: string;
175
+
176
+ /**
177
+ * 实例描述信息
178
+ */
179
+ Description?: string;
180
+
181
+ /**
182
+ * Trace数据保存时长
183
+ */
184
+ TraceDuration?: number;
185
+
186
+ /**
187
+ * 标签列表
188
+ */
189
+ Tags?: Array<ApmTag>;
190
+
191
+ /**
192
+ * 实例上报额度值
193
+ */
194
+ SpanDailyCounters?: number;
193
195
  }
194
196
 
195
197
  /**
196
198
  * DescribeServiceOverview返回参数结构体
197
199
  */
198
200
  export interface DescribeServiceOverviewResponse {
199
- /**
201
+
202
+ /**
200
203
  * 指标结果集
201
204
  注意:此字段可能返回 null,表示取不到有效值。
202
205
  */
203
- Records: Array<ApmMetricRecord>
204
-
205
- /**
206
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
207
- */
208
- RequestId?: string
206
+ Records: Array<ApmMetricRecord>;
207
+
208
+ /**
209
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
210
+ */
211
+ RequestId?: string;
209
212
  }
210
213
 
211
214
  /**
212
215
  * 查询
213
216
  */
214
217
  export interface QueryMetricItem {
215
- /**
216
- * 指标名
217
- */
218
- MetricName: string
219
-
220
- /**
221
- * 同比,已弃用,不建议使用
222
- */
223
- Compare?: string
224
-
225
- /**
226
- * 同比,支持多种同比方式
227
- */
228
- Compares?: Array<string>
218
+
219
+ /**
220
+ * 指标名
221
+ */
222
+ MetricName: string;
223
+
224
+ /**
225
+ * 同比,已弃用,不建议使用
226
+ */
227
+ Compare?: string;
228
+
229
+ /**
230
+ * 同比,支持多种同比方式
231
+ */
232
+ Compares?: Array<string>;
229
233
  }
230
234
 
231
235
  /**
232
236
  * DescribeApmInstances返回参数结构体
233
237
  */
234
238
  export interface DescribeApmInstancesResponse {
235
- /**
239
+
240
+ /**
236
241
  * apm实例列表
237
242
  注意:此字段可能返回 null,表示取不到有效值。
238
243
  */
239
- Instances: Array<ApmInstanceDetail>
240
-
241
- /**
242
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
243
- */
244
- RequestId?: string
244
+ Instances: Array<ApmInstanceDetail>;
245
+
246
+ /**
247
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
248
+ */
249
+ RequestId?: string;
245
250
  }
246
251
 
247
252
  /**
248
253
  * apm Agent信息
249
254
  */
250
255
  export interface ApmAgentInfo {
251
- /**
256
+
257
+ /**
252
258
  * Agent下载地址
253
259
  注意:此字段可能返回 null,表示取不到有效值。
254
260
  */
255
- AgentDownloadURL: string
256
-
257
- /**
261
+ AgentDownloadURL: string;
262
+
263
+ /**
258
264
  * Collector上报地址
259
265
  注意:此字段可能返回 null,表示取不到有效值。
260
266
  */
261
- CollectorURL: string
262
-
263
- /**
267
+ CollectorURL: string;
268
+
269
+ /**
264
270
  * Token信息
265
271
  注意:此字段可能返回 null,表示取不到有效值。
266
272
  */
267
- Token: string
268
-
269
- /**
273
+ Token: string;
274
+
275
+ /**
270
276
  * 外网上报地址
271
277
  注意:此字段可能返回 null,表示取不到有效值。
272
278
  */
273
- PublicCollectorURL: string
274
-
275
- /**
279
+ PublicCollectorURL: string;
280
+
281
+ /**
276
282
  * 自研VPC上报地址
277
283
  注意:此字段可能返回 null,表示取不到有效值。
278
284
  */
279
- InnerCollectorURL: string
280
-
281
- /**
285
+ InnerCollectorURL: string;
286
+
287
+ /**
282
288
  * 内网上报地址(Private Link上报地址)
283
289
  注意:此字段可能返回 null,表示取不到有效值。
284
290
  */
285
- PrivateLinkCollectorURL: string
291
+ PrivateLinkCollectorURL: string;
286
292
  }
287
293
 
288
294
  /**
289
295
  * 指标列表单元
290
296
  */
291
297
  export interface ApmMetricRecord {
292
- /**
293
- * field数组
294
- */
295
- Fields: Array<ApmField>
296
-
297
- /**
298
- * tag数组
299
- */
300
- Tags: Array<ApmTag>
298
+
299
+ /**
300
+ * field数组
301
+ */
302
+ Fields: Array<ApmField>;
303
+
304
+ /**
305
+ * tag数组
306
+ */
307
+ Tags: Array<ApmTag>;
301
308
  }
302
309
 
303
310
  /**
304
311
  * DescribeServiceOverview请求参数结构体
305
312
  */
306
313
  export interface DescribeServiceOverviewRequest {
307
- /**
308
- * 过滤条件
309
- */
310
- Filters: Array<Filter>
311
-
312
- /**
313
- * 指标列表
314
- */
315
- Metrics: Array<QueryMetricItem>
316
-
317
- /**
318
- * 聚合维度
319
- */
320
- GroupBy: Array<string>
321
-
322
- /**
323
- * 排序
324
- */
325
- OrderBy?: OrderBy
326
-
327
- /**
328
- * 实例ID
329
- */
330
- InstanceId?: string
331
-
332
- /**
333
- * 每页大小
334
- */
335
- Limit?: number
336
-
337
- /**
338
- * 开始时间
339
- */
340
- StartTime?: number
341
-
342
- /**
343
- * 分页起始点
344
- */
345
- Offset?: number
346
-
347
- /**
348
- * 结束时间
349
- */
350
- EndTime?: number
314
+
315
+ /**
316
+ * 过滤条件
317
+ */
318
+ Filters: Array<Filter>;
319
+
320
+ /**
321
+ * 指标列表
322
+ */
323
+ Metrics: Array<QueryMetricItem>;
324
+
325
+ /**
326
+ * 聚合维度
327
+ */
328
+ GroupBy: Array<string>;
329
+
330
+ /**
331
+ * 排序
332
+ */
333
+ OrderBy?: OrderBy;
334
+
335
+ /**
336
+ * 实例ID
337
+ */
338
+ InstanceId?: string;
339
+
340
+ /**
341
+ * 每页大小
342
+ */
343
+ Limit?: number;
344
+
345
+ /**
346
+ * 开始时间
347
+ */
348
+ StartTime?: number;
349
+
350
+ /**
351
+ * 分页起始点
352
+ */
353
+ Offset?: number;
354
+
355
+ /**
356
+ * 结束时间
357
+ */
358
+ EndTime?: number;
351
359
  }
352
360
 
353
361
  /**
354
362
  * DescribeApmAgent返回参数结构体
355
363
  */
356
364
  export interface DescribeApmAgentResponse {
357
- /**
365
+
366
+ /**
358
367
  * Agent信息
359
368
  注意:此字段可能返回 null,表示取不到有效值。
360
369
  */
361
- ApmAgent: ApmAgentInfo
362
-
363
- /**
364
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
365
- */
366
- RequestId?: string
370
+ ApmAgent: ApmAgentInfo;
371
+
372
+ /**
373
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
374
+ */
375
+ RequestId?: string;
367
376
  }
368
377
 
369
378
  /**
370
379
  * 指标维度信息
371
380
  */
372
381
  export interface ApmField {
373
- /**
382
+
383
+ /**
374
384
  * 昨日同比指标值,已弃用,不建议使用
375
385
  注意:此字段可能返回 null,表示取不到有效值。
376
386
  */
377
- CompareVal: string
378
-
379
- /**
387
+ CompareVal: string;
388
+
389
+ /**
380
390
  * Compare值结果数组,推荐使用
381
391
  注意:此字段可能返回 null,表示取不到有效值。
382
392
  */
383
- CompareVals: Array<APMKVItem>
384
-
385
- /**
393
+ CompareVals: Array<APMKVItem>;
394
+
395
+ /**
386
396
  * 指标值
387
397
  注意:此字段可能返回 null,表示取不到有效值。
388
398
  */
389
- Value: number
390
-
391
- /**
399
+ Value: number;
400
+
401
+ /**
392
402
  * 指标所对应的单位
393
403
  注意:此字段可能返回 null,表示取不到有效值。
394
404
  */
395
- Unit: string
396
-
397
- /**
398
- * 请求数
399
- */
400
- Key: string
405
+ Unit: string;
406
+
407
+ /**
408
+ * 请求数
409
+ */
410
+ Key: string;
401
411
  }
402
412
 
403
413
  /**
404
414
  * 指标曲线数据
405
415
  */
406
416
  export interface Line {
407
- /**
408
- * 指标名
409
- */
410
- MetricName: string
411
-
412
- /**
413
- * 指标中文名
414
- */
415
- MetricNameCN: string
416
-
417
- /**
418
- * 时间序列
419
- */
420
- TimeSerial: Array<number>
421
-
422
- /**
417
+
418
+ /**
419
+ * 指标名
420
+ */
421
+ MetricName: string;
422
+
423
+ /**
424
+ * 指标中文名
425
+ */
426
+ MetricNameCN: string;
427
+
428
+ /**
429
+ * 时间序列
430
+ */
431
+ TimeSerial: Array<number>;
432
+
433
+ /**
423
434
  * 数据序列
424
435
  注意:此字段可能返回 null,表示取不到有效值。
425
436
  */
426
- DataSerial: Array<number>
427
-
428
- /**
437
+ DataSerial: Array<number>;
438
+
439
+ /**
429
440
  * 维度列表
430
441
  注意:此字段可能返回 null,表示取不到有效值。
431
442
  */
432
- Tags: Array<ApmTag>
443
+ Tags: Array<ApmTag>;
433
444
  }
434
445
 
435
446
  /**
436
447
  * Apm通用KV结构
437
448
  */
438
449
  export interface APMKVItem {
439
- /**
450
+
451
+ /**
440
452
  * Key值定义
441
453
  注意:此字段可能返回 null,表示取不到有效值。
442
454
  */
443
- Key: string
444
-
445
- /**
455
+ Key: string;
456
+
457
+ /**
446
458
  * Value值定义
447
459
  注意:此字段可能返回 null,表示取不到有效值。
448
460
  */
449
- Value: string
461
+ Value: string;
450
462
  }
451
463
 
452
464
  /**
453
465
  * sql排序字段
454
466
  */
455
467
  export interface OrderBy {
456
- /**
457
- * 需要排序的字段
458
- */
459
- Key: string
460
-
461
- /**
462
- * 顺序排序/倒序排序
463
- */
464
- Value: string
468
+
469
+ /**
470
+ * 需要排序的字段
471
+ */
472
+ Key: string;
473
+
474
+ /**
475
+ * 顺序排序/倒序排序
476
+ */
477
+ Value: string;
465
478
  }
466
479
 
467
480
  /**
468
481
  * DescribeMetricRecords返回参数结构体
469
482
  */
470
483
  export interface DescribeMetricRecordsResponse {
471
- /**
484
+
485
+ /**
472
486
  * 指标结果集
473
487
  注意:此字段可能返回 null,表示取不到有效值。
474
488
  */
475
- Records: Array<ApmMetricRecord>
476
-
477
- /**
478
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
479
- */
480
- RequestId?: string
489
+ Records: Array<ApmMetricRecord>;
490
+
491
+ /**
492
+ * 查询指标结果集条数
493
+ 注意:此字段可能返回 null,表示取不到有效值。
494
+ */
495
+ TotalCount: number;
496
+
497
+ /**
498
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
499
+ */
500
+ RequestId?: string;
481
501
  }
482
502
 
483
503
  /**
484
504
  * 维度(标签)对象
485
505
  */
486
506
  export interface ApmTag {
487
- /**
488
- * 维度Key(列名,标签Key)
489
- */
490
- Key: string
491
-
492
- /**
493
- * 维度值(标签值)
494
- */
495
- Value: string
507
+
508
+ /**
509
+ * 维度Key(列名,标签Key)
510
+ */
511
+ Key: string;
512
+
513
+ /**
514
+ * 维度值(标签值)
515
+ */
516
+ Value: string;
496
517
  }
497
518
 
498
519
  /**
499
520
  * 查询过滤参数
500
521
  */
501
522
  export interface Filter {
502
- /**
503
- * 过滤方式(=, !=, in)
504
- */
505
- Type: string
506
-
507
- /**
508
- * 过滤维度名
509
- */
510
- Key: string
511
-
512
- /**
513
- * 过滤值,in过滤方式用逗号分割多个值
514
- */
515
- Value: string
523
+
524
+ /**
525
+ * 过滤方式(=, !=, in)
526
+ */
527
+ Type: string;
528
+
529
+ /**
530
+ * 过滤维度名
531
+ */
532
+ Key: string;
533
+
534
+ /**
535
+ * 过滤值,in过滤方式用逗号分割多个值
536
+ */
537
+ Value: string;
516
538
  }
517
539
 
518
540
  /**
519
541
  * DescribeApmAgent请求参数结构体
520
542
  */
521
543
  export interface DescribeApmAgentRequest {
522
- /**
523
- * 实例ID
524
- */
525
- InstanceId: string
526
-
527
- /**
528
- * 接入方式
529
- */
530
- AgentType?: string
531
-
532
- /**
533
- * 环境
534
- */
535
- NetworkMode?: string
536
-
537
- /**
538
- * 语言
539
- */
540
- LanguageEnvironment?: string
541
-
542
- /**
543
- * 上报方式
544
- */
545
- ReportMethod?: string
544
+
545
+ /**
546
+ * 实例ID
547
+ */
548
+ InstanceId: string;
549
+
550
+ /**
551
+ * 接入方式
552
+ */
553
+ AgentType?: string;
554
+
555
+ /**
556
+ * 环境
557
+ */
558
+ NetworkMode?: string;
559
+
560
+ /**
561
+ * 语言
562
+ */
563
+ LanguageEnvironment?: string;
564
+
565
+ /**
566
+ * 上报方式
567
+ */
568
+ ReportMethod?: string;
546
569
  }
547
570
 
548
571
  /**
549
572
  * DescribeMetricRecords请求参数结构体
550
573
  */
551
574
  export interface DescribeMetricRecordsRequest {
552
- /**
553
- * 过滤条件
554
- */
555
- Filters: Array<Filter>
556
-
557
- /**
558
- * 指标列表
559
- */
560
- Metrics: Array<QueryMetricItem>
561
-
562
- /**
563
- * 聚合维度
564
- */
565
- GroupBy: Array<string>
566
-
567
- /**
568
- * 排序
569
- */
570
- OrderBy?: OrderBy
571
-
572
- /**
573
- * 实例ID
574
- */
575
- InstanceId?: string
576
-
577
- /**
578
- * 每页大小
579
- */
580
- Limit?: number
581
-
582
- /**
583
- * 开始时间
584
- */
585
- StartTime?: number
586
-
587
- /**
588
- * 分页起始点
589
- */
590
- Offset?: number
591
-
592
- /**
593
- * 结束时间
594
- */
595
- EndTime?: number
596
-
597
- /**
598
- * 业务名称(默认值:taw)
599
- */
600
- BusinessName?: string
575
+
576
+ /**
577
+ * 过滤条件
578
+ */
579
+ Filters: Array<Filter>;
580
+
581
+ /**
582
+ * 指标列表
583
+ */
584
+ Metrics: Array<QueryMetricItem>;
585
+
586
+ /**
587
+ * 聚合维度
588
+ */
589
+ GroupBy: Array<string>;
590
+
591
+ /**
592
+ * 排序
593
+ */
594
+ OrderBy?: OrderBy;
595
+
596
+ /**
597
+ * 实例ID
598
+ */
599
+ InstanceId?: string;
600
+
601
+ /**
602
+ * 每页大小
603
+ */
604
+ Limit?: number;
605
+
606
+ /**
607
+ * 开始时间
608
+ */
609
+ StartTime?: number;
610
+
611
+ /**
612
+ * 分页起始点
613
+ */
614
+ Offset?: number;
615
+
616
+ /**
617
+ * 结束时间
618
+ */
619
+ EndTime?: number;
620
+
621
+ /**
622
+ * 业务名称(默认值:taw)
623
+ */
624
+ BusinessName?: string;
625
+
626
+ /**
627
+ * 页码
628
+ */
629
+ PageIndex?: number;
630
+
631
+ /**
632
+ * 页长
633
+ */
634
+ PageSize?: number;
601
635
  }
602
636
 
603
637
  /**
604
638
  * DescribeGeneralMetricData请求参数结构体
605
639
  */
606
640
  export interface DescribeGeneralMetricDataRequest {
607
- /**
641
+
642
+ /**
608
643
  * 要过滤的维度信息:
609
644
  service_metric视图支持:service.name(服务名)、span.kind(客户端/服务端视角)为维度进行过滤,service.name(服务名)必填。
610
645
  span.kind:
@@ -614,50 +649,50 @@ span.kind:
614
649
  runtime_metric视图支持:service.name(服务名)维度进行过滤,service.name(服务名)必填。
615
650
  sql_metric视图支持:service.name(服务名)、db.instance(数据库名称)、db.ip(数据库实例ip)维度进行过滤,查询service_slow_sql_count(慢sql)指标时service.name必填,查询sql_duration_avg(耗时)指标时db.instance(数据库名称)必填。
616
651
  */
617
- Filters: Array<GeneralFilter>
618
-
619
- /**
652
+ Filters: Array<GeneralFilter>;
653
+
654
+ /**
620
655
  * 需要查询的指标,不可自定义输入。
621
656
  service_metric视图支持:service_request_count(总请求)、service_duration(平均响应时间)、service_error_req_rate(平均错误率)、service_slow_call_count(慢调用)、service_error_request_count(异常数量)。
622
657
  runtime_metric视图支持:service_gc_full_count(Full GC)。
623
658
  sql_metric视图支持:service_slow_sql_count(慢sql)、sql_duration_avg(耗时)。
624
659
  */
625
- Metrics: Array<string>
626
-
627
- /**
628
- * 业务系统ID
629
- */
630
- InstanceId: string
631
-
632
- /**
633
- * 视图名称,不可自定义输入。支持:service_metric、runtime_metric、sql_metric。
634
- */
635
- ViewName: string
636
-
637
- /**
660
+ Metrics: Array<string>;
661
+
662
+ /**
663
+ * 业务系统ID
664
+ */
665
+ InstanceId: string;
666
+
667
+ /**
668
+ * 视图名称,不可自定义输入。支持:service_metric、runtime_metric、sql_metric。
669
+ */
670
+ ViewName: string;
671
+
672
+ /**
638
673
  * 聚合维度:
639
674
  service_metric视图支持:service.name(服务名)、span.kind (客户端/服务端视角)维度进行聚合,service.name(服务名)必填。
640
675
  runtime_metric视图支持:service.name(服务名)维度进行聚合,service.name(服务名)必填。
641
676
  sql_metric视图支持:service.name(服务名)、db.statement(sql语句)维度进行聚合,查询service_slow_sql_count(慢sql)时service.name(服务名)必填,查询sql_duration_avg(耗时)指标时service.name(服务名)、db.statement(sql语句)必填。
642
677
  */
643
- GroupBy?: Array<string>
644
-
645
- /**
646
- * 起始时间的时间戳,单位为秒,只支持查询2天内最多1小时的指标数据。
647
- */
648
- StartTime?: number
649
-
650
- /**
651
- * 结束时间的时间戳,单位为秒,只支持查询2天内最多1小时的指标数据。
652
- */
653
- EndTime?: number
654
-
655
- /**
656
- * 聚合粒度,单位为秒,最小为60s,即一分钟的聚合粒度;如果为空或0则计算开始时间到截止时间的指标数据,上报其他值会报错。
657
- */
658
- Period?: number
659
-
660
- /**
678
+ GroupBy?: Array<string>;
679
+
680
+ /**
681
+ * 起始时间的时间戳,单位为秒,只支持查询2天内最多1小时的指标数据。
682
+ */
683
+ StartTime?: number;
684
+
685
+ /**
686
+ * 结束时间的时间戳,单位为秒,只支持查询2天内最多1小时的指标数据。
687
+ */
688
+ EndTime?: number;
689
+
690
+ /**
691
+ * 聚合粒度,单位为秒,最小为60s,即一分钟的聚合粒度;如果为空或0则计算开始时间到截止时间的指标数据,上报其他值会报错。
692
+ */
693
+ Period?: number;
694
+
695
+ /**
661
696
  * 对查询指标进行排序:
662
697
  service_metric视图支持:service_request_count(总请求)、service_duration(平均响应时间)、service_error_req_rate(平均错误率)、service_slow_call_count(慢调用)、service_error_request_count(异常数量)。
663
698
  runtime_metric视图支持:service_gc_full_count(Full GC)。
@@ -665,82 +700,87 @@ sql_metric视图支持:service_slow_sql_count(慢sql)、sql_duration_avg
665
700
  asc:对查询指标进行升序排序
666
701
  desc:对查询指标进行降序排序
667
702
  */
668
- OrderBy?: OrderBy
669
-
670
- /**
671
- * 查询指标的限制条数,目前最多展示50条数据,PageSize取值为1-50,上送PageSize则根据PageSize的值展示限制条数。
672
- */
673
- PageSize?: number
703
+ OrderBy?: OrderBy;
704
+
705
+ /**
706
+ * 查询指标的限制条数,目前最多展示50条数据,PageSize取值为1-50,上送PageSize则根据PageSize的值展示限制条数。
707
+ */
708
+ PageSize?: number;
674
709
  }
675
710
 
676
711
  /**
677
712
  * CreateApmInstance返回参数结构体
678
713
  */
679
714
  export interface CreateApmInstanceResponse {
680
- /**
715
+
716
+ /**
681
717
  * 实例ID
682
718
  注意:此字段可能返回 null,表示取不到有效值。
683
719
  */
684
- InstanceId: string
685
-
686
- /**
687
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
688
- */
689
- RequestId?: string
720
+ InstanceId: string;
721
+
722
+ /**
723
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
724
+ */
725
+ RequestId?: string;
690
726
  }
691
727
 
692
728
  /**
693
729
  * 查询过滤参数
694
730
  */
695
731
  export interface GeneralFilter {
696
- /**
697
- * 过滤维度名
698
- */
699
- Key: string
700
-
701
- /**
702
- * 过滤值
703
- */
704
- Value: string
732
+
733
+ /**
734
+ * 过滤维度名
735
+ */
736
+ Key: string;
737
+
738
+ /**
739
+ * 过滤值
740
+ */
741
+ Value: string;
705
742
  }
706
743
 
707
744
  /**
708
745
  * DescribeApmInstances请求参数结构体
709
746
  */
710
747
  export interface DescribeApmInstancesRequest {
711
- /**
712
- * Tag列表
713
- */
714
- Tags?: Array<ApmTag>
715
-
716
- /**
717
- * 搜索实例名
718
- */
719
- InstanceName?: string
720
-
721
- /**
722
- * 过滤实例ID
723
- */
724
- InstanceIds?: Array<string>
725
-
726
- /**
727
- * 是否查询官方demo实例
728
- */
729
- DemoInstanceFlag?: number
748
+
749
+ /**
750
+ * Tag列表
751
+ */
752
+ Tags?: Array<ApmTag>;
753
+
754
+ /**
755
+ * 搜索实例名
756
+ */
757
+ InstanceName?: string;
758
+
759
+ /**
760
+ * 过滤实例ID
761
+ */
762
+ InstanceIds?: Array<string>;
763
+
764
+ /**
765
+ * 是否查询官方demo实例
766
+ */
767
+ DemoInstanceFlag?: number;
730
768
  }
731
769
 
732
770
  /**
733
771
  * DescribeGeneralMetricData返回参数结构体
734
772
  */
735
773
  export interface DescribeGeneralMetricDataResponse {
736
- /**
774
+
775
+ /**
737
776
  * 指标结果集
738
777
  注意:此字段可能返回 null,表示取不到有效值。
739
778
  */
740
- Records: Array<Line>
741
-
742
- /**
743
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
744
- */
745
- RequestId?: string
779
+ Records: Array<Line>;
780
+
781
+ /**
782
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
783
+ */
784
+ RequestId?: string;
746
785
  }
786
+