tencentcloud-sdk-apm 1.0.241 → 1.0.245

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0bd8889ad15d6de64fbb3190e84655ade8d41749
4
- data.tar.gz: 70302c414d70b8ec6544c47863896a66388c69dc
3
+ metadata.gz: a2d7de8698db6703201fb1b61c55c48bd056cb9d
4
+ data.tar.gz: daa881f003e21fa717ee69b5788472dc62948c80
5
5
  SHA512:
6
- metadata.gz: e56c0e3943018f6cc300576014973583c41318c31470f4af4799b005bb03754afad2aed354dd9564c7c847c992be05fd0aebf7c5be01ca71d74ed7916c78773f
7
- data.tar.gz: 8bb37ea2d9aa6843081d5a3f5258c9070551f26863405d2dfc1cd8d12b895cce070797abc16ebe1365fe49ec5cbcd32475f05fefaf50660062285a8f19257651
6
+ metadata.gz: e81a310514979dfbbfb302dbaf2f3e4307422fc29d77ebc73d22d756fab7265cfc20b15d0860dfbc3bca9f5b43b75929ad6237b4dd19c525134d458012c9472f
7
+ data.tar.gz: 10cbf5d97a941ecd0f4bed3dbcea09b90bba459906a72bc315d7127ab6f10e74e7a48d9d5d18028339c8faf499f3c446c9370ee113d22907f182e9bda884b227
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.241
1
+ 1.0.245
@@ -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,171 @@ 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
+ # @param BusinessName: 业务名称(默认值:taw)
500
+ # @type BusinessName: String
501
+
502
+ attr_accessor :Filters, :Metrics, :GroupBy, :OrderBy, :InstanceId, :Limit, :StartTime, :Offset, :EndTime, :BusinessName
503
+
504
+ def initialize(filters=nil, metrics=nil, groupby=nil, orderby=nil, instanceid=nil, limit=nil, starttime=nil, offset=nil, endtime=nil, businessname=nil)
505
+ @Filters = filters
506
+ @Metrics = metrics
507
+ @GroupBy = groupby
508
+ @OrderBy = orderby
509
+ @InstanceId = instanceid
510
+ @Limit = limit
511
+ @StartTime = starttime
512
+ @Offset = offset
513
+ @EndTime = endtime
514
+ @BusinessName = businessname
515
+ end
516
+
517
+ def deserialize(params)
518
+ unless params['Filters'].nil?
519
+ @Filters = []
520
+ params['Filters'].each do |i|
521
+ filter_tmp = Filter.new
522
+ filter_tmp.deserialize(i)
523
+ @Filters << filter_tmp
524
+ end
525
+ end
526
+ unless params['Metrics'].nil?
527
+ @Metrics = []
528
+ params['Metrics'].each do |i|
529
+ querymetricitem_tmp = QueryMetricItem.new
530
+ querymetricitem_tmp.deserialize(i)
531
+ @Metrics << querymetricitem_tmp
532
+ end
533
+ end
534
+ @GroupBy = params['GroupBy']
535
+ unless params['OrderBy'].nil?
536
+ @OrderBy = OrderBy.new
537
+ @OrderBy.deserialize(params['OrderBy'])
538
+ end
539
+ @InstanceId = params['InstanceId']
540
+ @Limit = params['Limit']
541
+ @StartTime = params['StartTime']
542
+ @Offset = params['Offset']
543
+ @EndTime = params['EndTime']
544
+ @BusinessName = params['BusinessName']
545
+ end
546
+ end
547
+
548
+ # DescribeMetricRecords返回参数结构体
549
+ class DescribeMetricRecordsResponse < TencentCloud::Common::AbstractModel
550
+ # @param Records: 指标结果集
551
+ # 注意:此字段可能返回 null,表示取不到有效值。
552
+ # @type Records: Array
553
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
554
+ # @type RequestId: String
555
+
556
+ attr_accessor :Records, :RequestId
557
+
558
+ def initialize(records=nil, requestid=nil)
559
+ @Records = records
560
+ @RequestId = requestid
561
+ end
562
+
563
+ def deserialize(params)
564
+ unless params['Records'].nil?
565
+ @Records = []
566
+ params['Records'].each do |i|
567
+ apmmetricrecord_tmp = ApmMetricRecord.new
568
+ apmmetricrecord_tmp.deserialize(i)
569
+ @Records << apmmetricrecord_tmp
570
+ end
571
+ end
572
+ @RequestId = params['RequestId']
573
+ end
574
+ end
575
+
576
+ # 查询过滤参数
577
+ class Filter < TencentCloud::Common::AbstractModel
578
+ # @param Type: 过滤方式(=, !=, in)
579
+ # @type Type: String
580
+ # @param Key: 过滤维度名
581
+ # @type Key: String
582
+ # @param Value: 过滤值,in过滤方式用逗号分割多个值
583
+ # @type Value: String
584
+
585
+ attr_accessor :Type, :Key, :Value
586
+
587
+ def initialize(type=nil, key=nil, value=nil)
588
+ @Type = type
589
+ @Key = key
590
+ @Value = value
591
+ end
592
+
593
+ def deserialize(params)
594
+ @Type = params['Type']
595
+ @Key = params['Key']
596
+ @Value = params['Value']
597
+ end
598
+ end
599
+
600
+ # sql排序字段
601
+ class OrderBy < TencentCloud::Common::AbstractModel
602
+ # @param Key: 需要排序的字段
603
+ # @type Key: String
604
+ # @param Value: 顺序排序/倒序排序
605
+ # @type Value: String
606
+
607
+ attr_accessor :Key, :Value
608
+
609
+ def initialize(key=nil, value=nil)
610
+ @Key = key
611
+ @Value = value
612
+ end
613
+
614
+ def deserialize(params)
615
+ @Key = params['Key']
616
+ @Value = params['Value']
617
+ end
618
+ end
619
+
620
+ # 查询
621
+ class QueryMetricItem < TencentCloud::Common::AbstractModel
622
+ # @param MetricName: 指标名
623
+ # @type MetricName: String
624
+ # @param Compare: 同比,已弃用,不建议使用
625
+ # @type Compare: String
626
+ # @param Compares: 同比,支持多种同比方式
627
+ # @type Compares: Array
628
+
629
+ attr_accessor :MetricName, :Compare, :Compares
630
+
631
+ def initialize(metricname=nil, compare=nil, compares=nil)
632
+ @MetricName = metricname
633
+ @Compare = compare
634
+ @Compares = compares
635
+ end
636
+
637
+ def deserialize(params)
638
+ @MetricName = params['MetricName']
639
+ @Compare = params['Compare']
640
+ @Compares = params['Compares']
641
+ end
642
+ end
643
+
380
644
  end
381
645
  end
382
646
  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.241
4
+ version: 1.0.245
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-13 00:00:00.000000000 Z
11
+ date: 2022-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common