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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210622/client.rb +24 -0
- data/lib/v20210622/models.rb +93 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16a74a95f1919a49fef789901da1190e7b5c0b30
|
4
|
+
data.tar.gz: c9ffd4ab7b487de1ba5739f9de3b58c0d858f627
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 844d89cbfd0d900591ee4857d596e93fdcc7bf465e0ec75a1650604713f37d73a69a3c64291799279a4427c38e499ae26ec58e7534f898b7ee45e1a7469f0a22
|
7
|
+
data.tar.gz: 40c7e6063d6b9d4e625537a12c324c9d3063c838c0880c2b950c19dad3cbfe4b07c197870823a273fae630f7378569eba4a78b0f1f3c0c0734fd0a9518f950ae
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.304
|
data/lib/v20210622/client.rb
CHANGED
@@ -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
|
data/lib/v20210622/models.rb
CHANGED
@@ -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.
|
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-
|
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
|