tencentcloud-sdk-apm 1.0.213 → 1.0.214
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210622/client.rb +24 -0
- data/lib/v20210622/models.rb +186 -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: d8907413c161ca00096d0b5d35693dc022eab844
|
4
|
+
data.tar.gz: 6c6db4381d0fc68310f45e22b03989af3e62ca72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba71877710f2842d7aa2df3cc98ccb0e5ab4f889abd22fc7d567468fc418ca18741ec3169227a1b45a64a22ecb6d3d4a134bde9af4ee0524aa13d41367e25e5d
|
7
|
+
data.tar.gz: a3f543e1878b572804f779c839baf7f4cb5117c018a2d7b3c399dde2f2c9bd15b69f70aaf699975a43876da02c8d61fbfb282d2c321f5e8d3a1d3cfe39ab16e8
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.214
|
data/lib/v20210622/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# APM实例列表拉取
|
57
|
+
|
58
|
+
# @param request: Request instance for DescribeApmInstances.
|
59
|
+
# @type request: :class:`Tencentcloud::apm::V20210622::DescribeApmInstancesRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::apm::V20210622::DescribeApmInstancesResponse`
|
61
|
+
def DescribeApmInstances(request)
|
62
|
+
body = send_request('DescribeApmInstances', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DescribeApmInstancesResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
56
80
|
|
57
81
|
end
|
58
82
|
end
|
data/lib/v20210622/models.rb
CHANGED
@@ -59,6 +59,133 @@ module TencentCloud
|
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
62
|
+
# apm实例信息
|
63
|
+
class ApmInstanceDetail < TencentCloud::Common::AbstractModel
|
64
|
+
# @param AmountOfUsedStorage: 存储使用量(MB)
|
65
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
66
|
+
# @type AmountOfUsedStorage: Float
|
67
|
+
# @param Name: 实例名
|
68
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
69
|
+
# @type Name: String
|
70
|
+
# @param Tags: 实例所属tag列表
|
71
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
72
|
+
# @type Tags: Array
|
73
|
+
# @param InstanceId: 实例ID
|
74
|
+
# @type InstanceId: String
|
75
|
+
# @param CreateUin: 创建人Uin
|
76
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
77
|
+
# @type CreateUin: String
|
78
|
+
# @param ServiceCount: 该实例已上报的服务数
|
79
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
80
|
+
# @type ServiceCount: Integer
|
81
|
+
# @param CountOfReportSpanPerDay: 日均上报Span数
|
82
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
83
|
+
# @type CountOfReportSpanPerDay: Integer
|
84
|
+
# @param AppId: AppId信息
|
85
|
+
# @type AppId: Integer
|
86
|
+
# @param TraceDuration: Trace数据保存时长
|
87
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
88
|
+
# @type TraceDuration: Integer
|
89
|
+
# @param Description: 实例描述信息
|
90
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
91
|
+
# @type Description: String
|
92
|
+
# @param Status: 实例状态
|
93
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
94
|
+
# @type Status: Integer
|
95
|
+
# @param Region: 实例所属地域
|
96
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
97
|
+
# @type Region: String
|
98
|
+
# @param SpanDailyCounters: 实例上报额度
|
99
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
100
|
+
# @type SpanDailyCounters: Integer
|
101
|
+
# @param BillingInstance: 实例是否开通计费
|
102
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
103
|
+
# @type BillingInstance: Integer
|
104
|
+
# @param ErrRateThreshold: 错误率阈值
|
105
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
106
|
+
# @type ErrRateThreshold: Integer
|
107
|
+
# @param SampleRate: 采样率阈值
|
108
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
109
|
+
# @type SampleRate: Integer
|
110
|
+
# @param ErrorSample: 是否开启错误采样 0 关 1 开
|
111
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
112
|
+
# @type ErrorSample: Integer
|
113
|
+
# @param SlowRequestSavedThreshold: 慢调用保存阈值
|
114
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
115
|
+
# @type SlowRequestSavedThreshold: Integer
|
116
|
+
|
117
|
+
attr_accessor :AmountOfUsedStorage, :Name, :Tags, :InstanceId, :CreateUin, :ServiceCount, :CountOfReportSpanPerDay, :AppId, :TraceDuration, :Description, :Status, :Region, :SpanDailyCounters, :BillingInstance, :ErrRateThreshold, :SampleRate, :ErrorSample, :SlowRequestSavedThreshold
|
118
|
+
|
119
|
+
def initialize(amountofusedstorage=nil, name=nil, tags=nil, instanceid=nil, createuin=nil, servicecount=nil, countofreportspanperday=nil, appid=nil, traceduration=nil, description=nil, status=nil, region=nil, spandailycounters=nil, billinginstance=nil, errratethreshold=nil, samplerate=nil, errorsample=nil, slowrequestsavedthreshold=nil)
|
120
|
+
@AmountOfUsedStorage = amountofusedstorage
|
121
|
+
@Name = name
|
122
|
+
@Tags = tags
|
123
|
+
@InstanceId = instanceid
|
124
|
+
@CreateUin = createuin
|
125
|
+
@ServiceCount = servicecount
|
126
|
+
@CountOfReportSpanPerDay = countofreportspanperday
|
127
|
+
@AppId = appid
|
128
|
+
@TraceDuration = traceduration
|
129
|
+
@Description = description
|
130
|
+
@Status = status
|
131
|
+
@Region = region
|
132
|
+
@SpanDailyCounters = spandailycounters
|
133
|
+
@BillingInstance = billinginstance
|
134
|
+
@ErrRateThreshold = errratethreshold
|
135
|
+
@SampleRate = samplerate
|
136
|
+
@ErrorSample = errorsample
|
137
|
+
@SlowRequestSavedThreshold = slowrequestsavedthreshold
|
138
|
+
end
|
139
|
+
|
140
|
+
def deserialize(params)
|
141
|
+
@AmountOfUsedStorage = params['AmountOfUsedStorage']
|
142
|
+
@Name = params['Name']
|
143
|
+
unless params['Tags'].nil?
|
144
|
+
@Tags = []
|
145
|
+
params['Tags'].each do |i|
|
146
|
+
apmtag_tmp = ApmTag.new
|
147
|
+
apmtag_tmp.deserialize(i)
|
148
|
+
@Tags << apmtag_tmp
|
149
|
+
end
|
150
|
+
end
|
151
|
+
@InstanceId = params['InstanceId']
|
152
|
+
@CreateUin = params['CreateUin']
|
153
|
+
@ServiceCount = params['ServiceCount']
|
154
|
+
@CountOfReportSpanPerDay = params['CountOfReportSpanPerDay']
|
155
|
+
@AppId = params['AppId']
|
156
|
+
@TraceDuration = params['TraceDuration']
|
157
|
+
@Description = params['Description']
|
158
|
+
@Status = params['Status']
|
159
|
+
@Region = params['Region']
|
160
|
+
@SpanDailyCounters = params['SpanDailyCounters']
|
161
|
+
@BillingInstance = params['BillingInstance']
|
162
|
+
@ErrRateThreshold = params['ErrRateThreshold']
|
163
|
+
@SampleRate = params['SampleRate']
|
164
|
+
@ErrorSample = params['ErrorSample']
|
165
|
+
@SlowRequestSavedThreshold = params['SlowRequestSavedThreshold']
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
# 维度(标签)对象
|
170
|
+
class ApmTag < TencentCloud::Common::AbstractModel
|
171
|
+
# @param Key: 维度Key(列名,标签Key)
|
172
|
+
# @type Key: String
|
173
|
+
# @param Value: 维度值(标签值)
|
174
|
+
# @type Value: String
|
175
|
+
|
176
|
+
attr_accessor :Key, :Value
|
177
|
+
|
178
|
+
def initialize(key=nil, value=nil)
|
179
|
+
@Key = key
|
180
|
+
@Value = value
|
181
|
+
end
|
182
|
+
|
183
|
+
def deserialize(params)
|
184
|
+
@Key = params['Key']
|
185
|
+
@Value = params['Value']
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
62
189
|
# DescribeApmAgent请求参数结构体
|
63
190
|
class DescribeApmAgentRequest < TencentCloud::Common::AbstractModel
|
64
191
|
# @param InstanceId: 实例ID
|
@@ -111,6 +238,65 @@ module TencentCloud
|
|
111
238
|
end
|
112
239
|
end
|
113
240
|
|
241
|
+
# DescribeApmInstances请求参数结构体
|
242
|
+
class DescribeApmInstancesRequest < TencentCloud::Common::AbstractModel
|
243
|
+
# @param Tags: Tag列表
|
244
|
+
# @type Tags: Array
|
245
|
+
# @param InstanceName: 搜索实例名
|
246
|
+
# @type InstanceName: String
|
247
|
+
# @param InstanceIds: 过滤实例ID
|
248
|
+
# @type InstanceIds: Array
|
249
|
+
|
250
|
+
attr_accessor :Tags, :InstanceName, :InstanceIds
|
251
|
+
|
252
|
+
def initialize(tags=nil, instancename=nil, instanceids=nil)
|
253
|
+
@Tags = tags
|
254
|
+
@InstanceName = instancename
|
255
|
+
@InstanceIds = instanceids
|
256
|
+
end
|
257
|
+
|
258
|
+
def deserialize(params)
|
259
|
+
unless params['Tags'].nil?
|
260
|
+
@Tags = []
|
261
|
+
params['Tags'].each do |i|
|
262
|
+
apmtag_tmp = ApmTag.new
|
263
|
+
apmtag_tmp.deserialize(i)
|
264
|
+
@Tags << apmtag_tmp
|
265
|
+
end
|
266
|
+
end
|
267
|
+
@InstanceName = params['InstanceName']
|
268
|
+
@InstanceIds = params['InstanceIds']
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
# DescribeApmInstances返回参数结构体
|
273
|
+
class DescribeApmInstancesResponse < TencentCloud::Common::AbstractModel
|
274
|
+
# @param Instances: apm实例列表
|
275
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
276
|
+
# @type Instances: Array
|
277
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
278
|
+
# @type RequestId: String
|
279
|
+
|
280
|
+
attr_accessor :Instances, :RequestId
|
281
|
+
|
282
|
+
def initialize(instances=nil, requestid=nil)
|
283
|
+
@Instances = instances
|
284
|
+
@RequestId = requestid
|
285
|
+
end
|
286
|
+
|
287
|
+
def deserialize(params)
|
288
|
+
unless params['Instances'].nil?
|
289
|
+
@Instances = []
|
290
|
+
params['Instances'].each do |i|
|
291
|
+
apminstancedetail_tmp = ApmInstanceDetail.new
|
292
|
+
apminstancedetail_tmp.deserialize(i)
|
293
|
+
@Instances << apminstancedetail_tmp
|
294
|
+
end
|
295
|
+
end
|
296
|
+
@RequestId = params['RequestId']
|
297
|
+
end
|
298
|
+
end
|
299
|
+
|
114
300
|
end
|
115
301
|
end
|
116
302
|
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.
|
4
|
+
version: 1.0.214
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|