tencentcloud-sdk-apm 1.0.313 → 1.0.314

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: b249614e019f16557242748c82a26423adcbf841
4
- data.tar.gz: 40a692d6faa180dd8e5a7a49313d5ee4229f9b6a
3
+ metadata.gz: 6f06a8c99a0b4239fa820dd511ab24f67f70ea4b
4
+ data.tar.gz: 0a4bb216e4c2b6ce7ab67481804dc93235a7496c
5
5
  SHA512:
6
- metadata.gz: ad37a83b52abd31ea7edb018237bcb4369c58d57c500979bba29ba79f75b554c3667266203c8903b686074d20e9fdc4e78b0edd25719c69514b2200326964c8e
7
- data.tar.gz: 8d6803fa07d30b193f9266ecf58e9940e8b31545d82a2e075dd9d29b169b403c999f4919867ad4034f4d198b847efe958a23fef32fd5e05db34b7ffc88b01689
6
+ metadata.gz: be6505d5e028b4d80b8136b3bef502799a54693e22ca61315a5af15757315ebf40a60f6c1b1a50d798f9d44971985a43b5edf99b25b0a3c07609399f4d868ea3
7
+ data.tar.gz: f4de13e9a3fb9543556701cd2716b87f6e08bfdb2bbfccf1471f76f960dbbcc98d0bcc86cd6ca2325ac117ec84203e327e81c16c5c9b1fd239a78e5885fb39d3
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.313
1
+ 1.0.314
@@ -101,6 +101,31 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
+ # 获取指标数据通用接口。用户根据需要上送请求参数,返回对应的指标数据。
105
+ # 接口调用频率限制为:20次/秒,1200次/分钟。单请求的数据点数限制为1440个。
106
+
107
+ # @param request: Request instance for DescribeGeneralMetricData.
108
+ # @type request: :class:`Tencentcloud::apm::V20210622::DescribeGeneralMetricDataRequest`
109
+ # @rtype: :class:`Tencentcloud::apm::V20210622::DescribeGeneralMetricDataResponse`
110
+ def DescribeGeneralMetricData(request)
111
+ body = send_request('DescribeGeneralMetricData', request.serialize)
112
+ response = JSON.parse(body)
113
+ if response['Response'].key?('Error') == false
114
+ model = DescribeGeneralMetricDataResponse.new
115
+ model.deserialize(response['Response'])
116
+ model
117
+ else
118
+ code = response['Response']['Error']['Code']
119
+ message = response['Response']['Error']['Message']
120
+ reqid = response['Response']['RequestId']
121
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
122
+ end
123
+ rescue TencentCloud::Common::TencentCloudSDKException => e
124
+ raise e
125
+ rescue StandardError => e
126
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
127
+ end
128
+
104
129
  # 拉取通用指标列表
105
130
 
106
131
  # @param request: Request instance for DescribeMetricRecords.
@@ -480,6 +480,92 @@ module TencentCloud
480
480
  end
481
481
  end
482
482
 
483
+ # DescribeGeneralMetricData请求参数结构体
484
+ class DescribeGeneralMetricDataRequest < TencentCloud::Common::AbstractModel
485
+ # @param Filters: 要过滤的维度信息,支持:service.name(服务名)、span.kind(客户端/服务端视角)为维度进行过滤。
486
+
487
+ # span.kind:
488
+
489
+ # server:服务端视角
490
+ # client:客户端视角
491
+
492
+ # 默认为服务端视角进行查询。
493
+ # @type Filters: Array
494
+ # @param Metrics: 需要查询的指标,不可自定义输入。支持:service_request_count(总请求)、service_duration(平均响应时间)的指标数据。
495
+ # @type Metrics: Array
496
+ # @param InstanceId: 实例ID
497
+ # @type InstanceId: String
498
+ # @param ViewName: 视图名称
499
+ # @type ViewName: String
500
+ # @param GroupBy: 聚合维度,支持:service.name(服务名)、span.kind (客户端/服务端视角)维度进行聚合。
501
+ # @type GroupBy: Array
502
+ # @param StartTime: 起始时间的时间戳,单位为秒,只支持查询2天内最多1小时的指标数据。
503
+ # @type StartTime: Integer
504
+ # @param EndTime: 结束时间的时间戳,单位为秒,只支持查询2天内最多1小时的指标数据。
505
+ # @type EndTime: Integer
506
+ # @param Period: 聚合粒度,单位为秒,最小为60s,即一分钟的聚合粒度;如果为空或0则计算开始时间到截止时间的指标数据,上报其他值会报错。
507
+ # @type Period: Integer
508
+
509
+ attr_accessor :Filters, :Metrics, :InstanceId, :ViewName, :GroupBy, :StartTime, :EndTime, :Period
510
+
511
+ def initialize(filters=nil, metrics=nil, instanceid=nil, viewname=nil, groupby=nil, starttime=nil, endtime=nil, period=nil)
512
+ @Filters = filters
513
+ @Metrics = metrics
514
+ @InstanceId = instanceid
515
+ @ViewName = viewname
516
+ @GroupBy = groupby
517
+ @StartTime = starttime
518
+ @EndTime = endtime
519
+ @Period = period
520
+ end
521
+
522
+ def deserialize(params)
523
+ unless params['Filters'].nil?
524
+ @Filters = []
525
+ params['Filters'].each do |i|
526
+ generalfilter_tmp = GeneralFilter.new
527
+ generalfilter_tmp.deserialize(i)
528
+ @Filters << generalfilter_tmp
529
+ end
530
+ end
531
+ @Metrics = params['Metrics']
532
+ @InstanceId = params['InstanceId']
533
+ @ViewName = params['ViewName']
534
+ @GroupBy = params['GroupBy']
535
+ @StartTime = params['StartTime']
536
+ @EndTime = params['EndTime']
537
+ @Period = params['Period']
538
+ end
539
+ end
540
+
541
+ # DescribeGeneralMetricData返回参数结构体
542
+ class DescribeGeneralMetricDataResponse < TencentCloud::Common::AbstractModel
543
+ # @param Records: 指标结果集
544
+ # 注意:此字段可能返回 null,表示取不到有效值。
545
+ # @type Records: Array
546
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
547
+ # @type RequestId: String
548
+
549
+ attr_accessor :Records, :RequestId
550
+
551
+ def initialize(records=nil, requestid=nil)
552
+ @Records = records
553
+ @RequestId = requestid
554
+ end
555
+
556
+ def deserialize(params)
557
+ unless params['Records'].nil?
558
+ @Records = []
559
+ params['Records'].each do |i|
560
+ line_tmp = Line.new
561
+ line_tmp.deserialize(i)
562
+ @Records << line_tmp
563
+ end
564
+ end
565
+ @RequestId = params['RequestId']
566
+ end
567
+ end
568
+
483
569
  # DescribeMetricRecords请求参数结构体
484
570
  class DescribeMetricRecordsRequest < TencentCloud::Common::AbstractModel
485
571
  # @param Filters: 过滤条件
@@ -694,6 +780,67 @@ module TencentCloud
694
780
  end
695
781
  end
696
782
 
783
+ # 查询过滤参数
784
+ class GeneralFilter < TencentCloud::Common::AbstractModel
785
+ # @param Key: 过滤维度名
786
+ # @type Key: String
787
+ # @param Value: 过滤值
788
+ # @type Value: String
789
+
790
+ attr_accessor :Key, :Value
791
+
792
+ def initialize(key=nil, value=nil)
793
+ @Key = key
794
+ @Value = value
795
+ end
796
+
797
+ def deserialize(params)
798
+ @Key = params['Key']
799
+ @Value = params['Value']
800
+ end
801
+ end
802
+
803
+ # 指标曲线数据
804
+ class Line < TencentCloud::Common::AbstractModel
805
+ # @param MetricName: 指标名
806
+ # @type MetricName: String
807
+ # @param MetricNameCN: 指标中文名
808
+ # @type MetricNameCN: String
809
+ # @param TimeSerial: 时间序列
810
+ # @type TimeSerial: Array
811
+ # @param DataSerial: 数据序列
812
+ # 注意:此字段可能返回 null,表示取不到有效值。
813
+ # @type DataSerial: Array
814
+ # @param Tags: 维度列表
815
+ # 注意:此字段可能返回 null,表示取不到有效值。
816
+ # @type Tags: Array
817
+
818
+ attr_accessor :MetricName, :MetricNameCN, :TimeSerial, :DataSerial, :Tags
819
+
820
+ def initialize(metricname=nil, metricnamecn=nil, timeserial=nil, dataserial=nil, tags=nil)
821
+ @MetricName = metricname
822
+ @MetricNameCN = metricnamecn
823
+ @TimeSerial = timeserial
824
+ @DataSerial = dataserial
825
+ @Tags = tags
826
+ end
827
+
828
+ def deserialize(params)
829
+ @MetricName = params['MetricName']
830
+ @MetricNameCN = params['MetricNameCN']
831
+ @TimeSerial = params['TimeSerial']
832
+ @DataSerial = params['DataSerial']
833
+ unless params['Tags'].nil?
834
+ @Tags = []
835
+ params['Tags'].each do |i|
836
+ apmtag_tmp = ApmTag.new
837
+ apmtag_tmp.deserialize(i)
838
+ @Tags << apmtag_tmp
839
+ end
840
+ end
841
+ end
842
+ end
843
+
697
844
  # sql排序字段
698
845
  class OrderBy < TencentCloud::Common::AbstractModel
699
846
  # @param Key: 需要排序的字段
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.313
4
+ version: 1.0.314
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-05-16 00:00:00.000000000 Z
11
+ date: 2022-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common