tencentcloud-sdk-apm 1.0.303 → 1.0.304

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: 4725b95508856c92698c99215f8e375d0d761827
4
- data.tar.gz: 3e01ae4ee0478806e1a98e546173602ad9eba939
3
+ metadata.gz: 16a74a95f1919a49fef789901da1190e7b5c0b30
4
+ data.tar.gz: c9ffd4ab7b487de1ba5739f9de3b58c0d858f627
5
5
  SHA512:
6
- metadata.gz: a7565669379f9ee2e2a3f4b52f557e93e2fa7fa5a5c2b32f649244ac9dc1324d02a5d30ba7ab0c47aafb8e8ab53a564a9d4cf052dc315bc71ca0ef91028e9019
7
- data.tar.gz: b86b6a3f714e77d3d8924829f839c808dd22cfc4940ce326268933b4ff580302f0e8271e7ea3a0e459ac295a3bca60cc06c6f8c7754e845258057092cc146913
6
+ metadata.gz: 844d89cbfd0d900591ee4857d596e93fdcc7bf465e0ec75a1650604713f37d73a69a3c64291799279a4427c38e499ae26ec58e7534f898b7ee45e1a7469f0a22
7
+ data.tar.gz: 40c7e6063d6b9d4e625537a12c324c9d3063c838c0880c2b950c19dad3cbfe4b07c197870823a273fae630f7378569eba4a78b0f1f3c0c0734fd0a9518f950ae
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.303
1
+ 1.0.304
@@ -125,6 +125,30 @@ module TencentCloud
125
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
126
  end
127
127
 
128
+ # 服务概览数据拉取
129
+
130
+ # @param request: Request instance for DescribeServiceOverview.
131
+ # @type request: :class:`Tencentcloud::apm::V20210622::DescribeServiceOverviewRequest`
132
+ # @rtype: :class:`Tencentcloud::apm::V20210622::DescribeServiceOverviewResponse`
133
+ def DescribeServiceOverview(request)
134
+ body = send_request('DescribeServiceOverview', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeServiceOverviewResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
128
152
 
129
153
  end
130
154
  end
@@ -577,6 +577,99 @@ module TencentCloud
577
577
  end
578
578
  end
579
579
 
580
+ # DescribeServiceOverview请求参数结构体
581
+ class DescribeServiceOverviewRequest < TencentCloud::Common::AbstractModel
582
+ # @param Filters: 过滤条件
583
+ # @type Filters: Array
584
+ # @param Metrics: 指标列表
585
+ # @type Metrics: Array
586
+ # @param GroupBy: 聚合维度
587
+ # @type GroupBy: Array
588
+ # @param OrderBy: 排序
589
+ # @type OrderBy: :class:`Tencentcloud::Apm.v20210622.models.OrderBy`
590
+ # @param InstanceId: 实例ID
591
+ # @type InstanceId: String
592
+ # @param Limit: 每页大小
593
+ # @type Limit: Integer
594
+ # @param StartTime: 开始时间
595
+ # @type StartTime: Integer
596
+ # @param Offset: 分页起始点
597
+ # @type Offset: Integer
598
+ # @param EndTime: 结束时间
599
+ # @type EndTime: Integer
600
+
601
+ attr_accessor :Filters, :Metrics, :GroupBy, :OrderBy, :InstanceId, :Limit, :StartTime, :Offset, :EndTime
602
+
603
+ def initialize(filters=nil, metrics=nil, groupby=nil, orderby=nil, instanceid=nil, limit=nil, starttime=nil, offset=nil, endtime=nil)
604
+ @Filters = filters
605
+ @Metrics = metrics
606
+ @GroupBy = groupby
607
+ @OrderBy = orderby
608
+ @InstanceId = instanceid
609
+ @Limit = limit
610
+ @StartTime = starttime
611
+ @Offset = offset
612
+ @EndTime = endtime
613
+ end
614
+
615
+ def deserialize(params)
616
+ unless params['Filters'].nil?
617
+ @Filters = []
618
+ params['Filters'].each do |i|
619
+ filter_tmp = Filter.new
620
+ filter_tmp.deserialize(i)
621
+ @Filters << filter_tmp
622
+ end
623
+ end
624
+ unless params['Metrics'].nil?
625
+ @Metrics = []
626
+ params['Metrics'].each do |i|
627
+ querymetricitem_tmp = QueryMetricItem.new
628
+ querymetricitem_tmp.deserialize(i)
629
+ @Metrics << querymetricitem_tmp
630
+ end
631
+ end
632
+ @GroupBy = params['GroupBy']
633
+ unless params['OrderBy'].nil?
634
+ @OrderBy = OrderBy.new
635
+ @OrderBy.deserialize(params['OrderBy'])
636
+ end
637
+ @InstanceId = params['InstanceId']
638
+ @Limit = params['Limit']
639
+ @StartTime = params['StartTime']
640
+ @Offset = params['Offset']
641
+ @EndTime = params['EndTime']
642
+ end
643
+ end
644
+
645
+ # DescribeServiceOverview返回参数结构体
646
+ class DescribeServiceOverviewResponse < TencentCloud::Common::AbstractModel
647
+ # @param Records: 指标结果集
648
+ # 注意:此字段可能返回 null,表示取不到有效值。
649
+ # @type Records: Array
650
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
651
+ # @type RequestId: String
652
+
653
+ attr_accessor :Records, :RequestId
654
+
655
+ def initialize(records=nil, requestid=nil)
656
+ @Records = records
657
+ @RequestId = requestid
658
+ end
659
+
660
+ def deserialize(params)
661
+ unless params['Records'].nil?
662
+ @Records = []
663
+ params['Records'].each do |i|
664
+ apmmetricrecord_tmp = ApmMetricRecord.new
665
+ apmmetricrecord_tmp.deserialize(i)
666
+ @Records << apmmetricrecord_tmp
667
+ end
668
+ end
669
+ @RequestId = params['RequestId']
670
+ end
671
+ end
672
+
580
673
  # 查询过滤参数
581
674
  class Filter < TencentCloud::Common::AbstractModel
582
675
  # @param Type: 过滤方式(=, !=, in)
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.303
4
+ version: 1.0.304
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-04-26 00:00:00.000000000 Z
11
+ date: 2022-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common