tencentcloud-sdk-apm 1.0.242 → 1.0.243

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0f6a8e82124e2f51675b7272034e0eda1d6bc6e8
4
- data.tar.gz: e1d1186946e054a8324836b02833f2620c83c1d4
3
+ metadata.gz: c6cf99e63d254e4aaffa6d8eff44c6fe39616c51
4
+ data.tar.gz: d991575ce5af86590c9a16a5bb3f0186daa06d56
5
5
  SHA512:
6
- metadata.gz: e065b085cdc08799620d9d025b3eeada589d7725a54949cfb7e27ce9b5cd373486e3e4df776ab8357227dc5389134e5d86b589d6e616fb0460a49845042839d9
7
- data.tar.gz: ec9ae93a33eda582353ae212f425a982ece979762f64bfa541eb2d6b6d3207a1da7df6c10ec2bec1f085a2d53ddf9b842b2a64a0be70960838a165a6a96a6723
6
+ metadata.gz: 188fd6e8a857985edbb38a1160cdb24df1d91b810abce38ed93496efecc797b092b2676577027d084f8781ed0032fc230b7cea62204f3e0e170075a0e7489f8f
7
+ data.tar.gz: 1421e9d71ef0678aea03c4cb43c3ed5289a5dab5c80fa44ae439195343c86f21753b6882e1f6682378c14cfcfea8d6b1081c829822029e449e19b418074aaecc
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.242
1
+ 1.0.243
@@ -101,6 +101,30 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
+ # 拉取通用指标列表
105
+
106
+ # @param request: Request instance for DescribeMetricRecords.
107
+ # @type request: :class:`Tencentcloud::apm::V20210622::DescribeMetricRecordsRequest`
108
+ # @rtype: :class:`Tencentcloud::apm::V20210622::DescribeMetricRecordsResponse`
109
+ def DescribeMetricRecords(request)
110
+ body = send_request('DescribeMetricRecords', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = DescribeMetricRecordsResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
104
128
 
105
129
  end
106
130
  end
@@ -17,6 +17,28 @@
17
17
  module TencentCloud
18
18
  module Apm
19
19
  module V20210622
20
+ # Apm通用KV结构
21
+ class APMKVItem < TencentCloud::Common::AbstractModel
22
+ # @param Key: Key值定义
23
+ # 注意:此字段可能返回 null,表示取不到有效值。
24
+ # @type Key: String
25
+ # @param Value: Value值定义
26
+ # 注意:此字段可能返回 null,表示取不到有效值。
27
+ # @type Value: String
28
+
29
+ attr_accessor :Key, :Value
30
+
31
+ def initialize(key=nil, value=nil)
32
+ @Key = key
33
+ @Value = value
34
+ end
35
+
36
+ def deserialize(params)
37
+ @Key = params['Key']
38
+ @Value = params['Value']
39
+ end
40
+ end
41
+
20
42
  # apm Agent信息
21
43
  class ApmAgentInfo < TencentCloud::Common::AbstractModel
22
44
  # @param AgentDownloadURL: Agent下载地址
@@ -59,6 +81,49 @@ module TencentCloud
59
81
  end
60
82
  end
61
83
 
84
+ # 指标维度信息
85
+ class ApmField < TencentCloud::Common::AbstractModel
86
+ # @param CompareVal: 昨日同比指标值,已弃用,不建议使用
87
+ # 注意:此字段可能返回 null,表示取不到有效值。
88
+ # @type CompareVal: String
89
+ # @param CompareVals: Compare值结果数组,推荐使用
90
+ # 注意:此字段可能返回 null,表示取不到有效值。
91
+ # @type CompareVals: Array
92
+ # @param Value: 指标值
93
+ # 注意:此字段可能返回 null,表示取不到有效值。
94
+ # @type Value: Float
95
+ # @param Unit: 指标所对应的单位
96
+ # 注意:此字段可能返回 null,表示取不到有效值。
97
+ # @type Unit: String
98
+ # @param Key: 请求数
99
+ # @type Key: String
100
+
101
+ attr_accessor :CompareVal, :CompareVals, :Value, :Unit, :Key
102
+
103
+ def initialize(compareval=nil, comparevals=nil, value=nil, unit=nil, key=nil)
104
+ @CompareVal = compareval
105
+ @CompareVals = comparevals
106
+ @Value = value
107
+ @Unit = unit
108
+ @Key = key
109
+ end
110
+
111
+ def deserialize(params)
112
+ @CompareVal = params['CompareVal']
113
+ unless params['CompareVals'].nil?
114
+ @CompareVals = []
115
+ params['CompareVals'].each do |i|
116
+ apmkvitem_tmp = APMKVItem.new
117
+ apmkvitem_tmp.deserialize(i)
118
+ @CompareVals << apmkvitem_tmp
119
+ end
120
+ end
121
+ @Value = params['Value']
122
+ @Unit = params['Unit']
123
+ @Key = params['Key']
124
+ end
125
+ end
126
+
62
127
  # apm实例信息
63
128
  class ApmInstanceDetail < TencentCloud::Common::AbstractModel
64
129
  # @param AmountOfUsedStorage: 存储使用量(MB)
@@ -186,6 +251,40 @@ module TencentCloud
186
251
  end
187
252
  end
188
253
 
254
+ # 指标列表单元
255
+ class ApmMetricRecord < TencentCloud::Common::AbstractModel
256
+ # @param Fields: field数组
257
+ # @type Fields: Array
258
+ # @param Tags: tag数组
259
+ # @type Tags: Array
260
+
261
+ attr_accessor :Fields, :Tags
262
+
263
+ def initialize(fields=nil, tags=nil)
264
+ @Fields = fields
265
+ @Tags = tags
266
+ end
267
+
268
+ def deserialize(params)
269
+ unless params['Fields'].nil?
270
+ @Fields = []
271
+ params['Fields'].each do |i|
272
+ apmfield_tmp = ApmField.new
273
+ apmfield_tmp.deserialize(i)
274
+ @Fields << apmfield_tmp
275
+ end
276
+ end
277
+ unless params['Tags'].nil?
278
+ @Tags = []
279
+ params['Tags'].each do |i|
280
+ apmtag_tmp = ApmTag.new
281
+ apmtag_tmp.deserialize(i)
282
+ @Tags << apmtag_tmp
283
+ end
284
+ end
285
+ end
286
+ end
287
+
189
288
  # 维度(标签)对象
190
289
  class ApmTag < TencentCloud::Common::AbstractModel
191
290
  # @param Key: 维度Key(列名,标签Key)
@@ -377,6 +476,167 @@ module TencentCloud
377
476
  end
378
477
  end
379
478
 
479
+ # DescribeMetricRecords请求参数结构体
480
+ class DescribeMetricRecordsRequest < TencentCloud::Common::AbstractModel
481
+ # @param Filters: 过滤条件
482
+ # @type Filters: Array
483
+ # @param Metrics: 指标列表
484
+ # @type Metrics: Array
485
+ # @param GroupBy: 聚合维度
486
+ # @type GroupBy: Array
487
+ # @param OrderBy: 排序
488
+ # @type OrderBy: :class:`Tencentcloud::Apm.v20210622.models.OrderBy`
489
+ # @param InstanceId: 实例ID
490
+ # @type InstanceId: String
491
+ # @param Limit: 每页大小
492
+ # @type Limit: Integer
493
+ # @param StartTime: 开始时间
494
+ # @type StartTime: Integer
495
+ # @param Offset: 分页起始点
496
+ # @type Offset: Integer
497
+ # @param EndTime: 结束时间
498
+ # @type EndTime: Integer
499
+
500
+ attr_accessor :Filters, :Metrics, :GroupBy, :OrderBy, :InstanceId, :Limit, :StartTime, :Offset, :EndTime
501
+
502
+ def initialize(filters=nil, metrics=nil, groupby=nil, orderby=nil, instanceid=nil, limit=nil, starttime=nil, offset=nil, endtime=nil)
503
+ @Filters = filters
504
+ @Metrics = metrics
505
+ @GroupBy = groupby
506
+ @OrderBy = orderby
507
+ @InstanceId = instanceid
508
+ @Limit = limit
509
+ @StartTime = starttime
510
+ @Offset = offset
511
+ @EndTime = endtime
512
+ end
513
+
514
+ def deserialize(params)
515
+ unless params['Filters'].nil?
516
+ @Filters = []
517
+ params['Filters'].each do |i|
518
+ filter_tmp = Filter.new
519
+ filter_tmp.deserialize(i)
520
+ @Filters << filter_tmp
521
+ end
522
+ end
523
+ unless params['Metrics'].nil?
524
+ @Metrics = []
525
+ params['Metrics'].each do |i|
526
+ querymetricitem_tmp = QueryMetricItem.new
527
+ querymetricitem_tmp.deserialize(i)
528
+ @Metrics << querymetricitem_tmp
529
+ end
530
+ end
531
+ @GroupBy = params['GroupBy']
532
+ unless params['OrderBy'].nil?
533
+ @OrderBy = OrderBy.new
534
+ @OrderBy.deserialize(params['OrderBy'])
535
+ end
536
+ @InstanceId = params['InstanceId']
537
+ @Limit = params['Limit']
538
+ @StartTime = params['StartTime']
539
+ @Offset = params['Offset']
540
+ @EndTime = params['EndTime']
541
+ end
542
+ end
543
+
544
+ # DescribeMetricRecords返回参数结构体
545
+ class DescribeMetricRecordsResponse < TencentCloud::Common::AbstractModel
546
+ # @param Records: 指标结果集
547
+ # 注意:此字段可能返回 null,表示取不到有效值。
548
+ # @type Records: Array
549
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
550
+ # @type RequestId: String
551
+
552
+ attr_accessor :Records, :RequestId
553
+
554
+ def initialize(records=nil, requestid=nil)
555
+ @Records = records
556
+ @RequestId = requestid
557
+ end
558
+
559
+ def deserialize(params)
560
+ unless params['Records'].nil?
561
+ @Records = []
562
+ params['Records'].each do |i|
563
+ apmmetricrecord_tmp = ApmMetricRecord.new
564
+ apmmetricrecord_tmp.deserialize(i)
565
+ @Records << apmmetricrecord_tmp
566
+ end
567
+ end
568
+ @RequestId = params['RequestId']
569
+ end
570
+ end
571
+
572
+ # 查询过滤参数
573
+ class Filter < TencentCloud::Common::AbstractModel
574
+ # @param Type: 过滤方式(=, !=, in)
575
+ # @type Type: String
576
+ # @param Key: 过滤维度名
577
+ # @type Key: String
578
+ # @param Value: 过滤值,in过滤方式用逗号分割多个值
579
+ # @type Value: String
580
+
581
+ attr_accessor :Type, :Key, :Value
582
+
583
+ def initialize(type=nil, key=nil, value=nil)
584
+ @Type = type
585
+ @Key = key
586
+ @Value = value
587
+ end
588
+
589
+ def deserialize(params)
590
+ @Type = params['Type']
591
+ @Key = params['Key']
592
+ @Value = params['Value']
593
+ end
594
+ end
595
+
596
+ # sql排序字段
597
+ class OrderBy < TencentCloud::Common::AbstractModel
598
+ # @param Key: 需要排序的字段
599
+ # @type Key: String
600
+ # @param Value: 顺序排序/倒序排序
601
+ # @type Value: String
602
+
603
+ attr_accessor :Key, :Value
604
+
605
+ def initialize(key=nil, value=nil)
606
+ @Key = key
607
+ @Value = value
608
+ end
609
+
610
+ def deserialize(params)
611
+ @Key = params['Key']
612
+ @Value = params['Value']
613
+ end
614
+ end
615
+
616
+ # 查询
617
+ class QueryMetricItem < TencentCloud::Common::AbstractModel
618
+ # @param MetricName: 指标名
619
+ # @type MetricName: String
620
+ # @param Compare: 同比,已弃用,不建议使用
621
+ # @type Compare: String
622
+ # @param Compares: 同比,支持多种同比方式
623
+ # @type Compares: Array
624
+
625
+ attr_accessor :MetricName, :Compare, :Compares
626
+
627
+ def initialize(metricname=nil, compare=nil, compares=nil)
628
+ @MetricName = metricname
629
+ @Compare = compare
630
+ @Compares = compares
631
+ end
632
+
633
+ def deserialize(params)
634
+ @MetricName = params['MetricName']
635
+ @Compare = params['Compare']
636
+ @Compares = params['Compares']
637
+ end
638
+ end
639
+
380
640
  end
381
641
  end
382
642
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.242
4
+ version: 1.0.243
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-14 00:00:00.000000000 Z
11
+ date: 2022-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common