tencentcloud-sdk-apm 1.0.213 → 1.0.217

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: df8eb28f14c5f63efc471718c63d91bac3570cce
4
- data.tar.gz: a49e1bef03e7b8594fcdb1b41b9926a855bb4846
3
+ metadata.gz: 66f43474106439aeff880a5fe951ca60c944ef6f
4
+ data.tar.gz: 72643e9b5831b0616b6195c16427a24056956964
5
5
  SHA512:
6
- metadata.gz: 2d40d21201ae15d21ad2e277f4e0a7650f2b1a8d466a28d2a5d1064cb61aec3192185963c05305dc6d78a7d6d40a3dfa73b5c1af96a1838f6129a07b015c85c6
7
- data.tar.gz: bc90665ed1d5bfb6b8c6a7b691d0f1d3a738253c5b68ac7851d472e0e1973025d41cd811b2ccb5ae02ac4f326144aa466ec14c0a149227bf250aa168ebe2e685
6
+ metadata.gz: 110f104d4b5867f66ca61122ae84be58b82aeb7032c0a77fc32a7a0f0adfed8b41f72ad2efccdd39d2be6728e3ebe28c2afa89d4acd49aa097b19e79bf6c9330
7
+ data.tar.gz: 0295d414569d7a5f63a8f84e11f00e5ffb90faa8b48761237956ad2f025b331a70cd3809006ffd37155cd78d2e1dab6459b8954a0bb195614b39e9e425323993
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.213
1
+ 1.0.217
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 业务购买APM实例,调用该接口创建
33
+
34
+ # @param request: Request instance for CreateApmInstance.
35
+ # @type request: :class:`Tencentcloud::apm::V20210622::CreateApmInstanceRequest`
36
+ # @rtype: :class:`Tencentcloud::apm::V20210622::CreateApmInstanceResponse`
37
+ def CreateApmInstance(request)
38
+ body = send_request('CreateApmInstance', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CreateApmInstanceResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
32
56
  # 获取Apm Agent信息
33
57
 
34
58
  # @param request: Request instance for DescribeApmAgent.
@@ -53,6 +77,30 @@ module TencentCloud
53
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
78
  end
55
79
 
80
+ # APM实例列表拉取
81
+
82
+ # @param request: Request instance for DescribeApmInstances.
83
+ # @type request: :class:`Tencentcloud::apm::V20210622::DescribeApmInstancesRequest`
84
+ # @rtype: :class:`Tencentcloud::apm::V20210622::DescribeApmInstancesResponse`
85
+ def DescribeApmInstances(request)
86
+ body = send_request('DescribeApmInstances', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeApmInstancesResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
56
104
 
57
105
  end
58
106
  end
@@ -59,6 +59,193 @@ 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
+
189
+ # CreateApmInstance请求参数结构体
190
+ class CreateApmInstanceRequest < TencentCloud::Common::AbstractModel
191
+ # @param Name: 实例名
192
+ # @type Name: String
193
+ # @param Description: 实例描述信息
194
+ # @type Description: String
195
+ # @param TraceDuration: Trace数据保存时长
196
+ # @type TraceDuration: Integer
197
+ # @param Tags: 标签列表
198
+ # @type Tags: Array
199
+ # @param SpanDailyCounters: 实例上报额度值
200
+ # @type SpanDailyCounters: Integer
201
+
202
+ attr_accessor :Name, :Description, :TraceDuration, :Tags, :SpanDailyCounters
203
+
204
+ def initialize(name=nil, description=nil, traceduration=nil, tags=nil, spandailycounters=nil)
205
+ @Name = name
206
+ @Description = description
207
+ @TraceDuration = traceduration
208
+ @Tags = tags
209
+ @SpanDailyCounters = spandailycounters
210
+ end
211
+
212
+ def deserialize(params)
213
+ @Name = params['Name']
214
+ @Description = params['Description']
215
+ @TraceDuration = params['TraceDuration']
216
+ unless params['Tags'].nil?
217
+ @Tags = []
218
+ params['Tags'].each do |i|
219
+ apmtag_tmp = ApmTag.new
220
+ apmtag_tmp.deserialize(i)
221
+ @Tags << apmtag_tmp
222
+ end
223
+ end
224
+ @SpanDailyCounters = params['SpanDailyCounters']
225
+ end
226
+ end
227
+
228
+ # CreateApmInstance返回参数结构体
229
+ class CreateApmInstanceResponse < TencentCloud::Common::AbstractModel
230
+ # @param InstanceId: 实例ID
231
+ # 注意:此字段可能返回 null,表示取不到有效值。
232
+ # @type InstanceId: String
233
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
234
+ # @type RequestId: String
235
+
236
+ attr_accessor :InstanceId, :RequestId
237
+
238
+ def initialize(instanceid=nil, requestid=nil)
239
+ @InstanceId = instanceid
240
+ @RequestId = requestid
241
+ end
242
+
243
+ def deserialize(params)
244
+ @InstanceId = params['InstanceId']
245
+ @RequestId = params['RequestId']
246
+ end
247
+ end
248
+
62
249
  # DescribeApmAgent请求参数结构体
63
250
  class DescribeApmAgentRequest < TencentCloud::Common::AbstractModel
64
251
  # @param InstanceId: 实例ID
@@ -111,6 +298,65 @@ module TencentCloud
111
298
  end
112
299
  end
113
300
 
301
+ # DescribeApmInstances请求参数结构体
302
+ class DescribeApmInstancesRequest < TencentCloud::Common::AbstractModel
303
+ # @param Tags: Tag列表
304
+ # @type Tags: Array
305
+ # @param InstanceName: 搜索实例名
306
+ # @type InstanceName: String
307
+ # @param InstanceIds: 过滤实例ID
308
+ # @type InstanceIds: Array
309
+
310
+ attr_accessor :Tags, :InstanceName, :InstanceIds
311
+
312
+ def initialize(tags=nil, instancename=nil, instanceids=nil)
313
+ @Tags = tags
314
+ @InstanceName = instancename
315
+ @InstanceIds = instanceids
316
+ end
317
+
318
+ def deserialize(params)
319
+ unless params['Tags'].nil?
320
+ @Tags = []
321
+ params['Tags'].each do |i|
322
+ apmtag_tmp = ApmTag.new
323
+ apmtag_tmp.deserialize(i)
324
+ @Tags << apmtag_tmp
325
+ end
326
+ end
327
+ @InstanceName = params['InstanceName']
328
+ @InstanceIds = params['InstanceIds']
329
+ end
330
+ end
331
+
332
+ # DescribeApmInstances返回参数结构体
333
+ class DescribeApmInstancesResponse < TencentCloud::Common::AbstractModel
334
+ # @param Instances: apm实例列表
335
+ # 注意:此字段可能返回 null,表示取不到有效值。
336
+ # @type Instances: Array
337
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
338
+ # @type RequestId: String
339
+
340
+ attr_accessor :Instances, :RequestId
341
+
342
+ def initialize(instances=nil, requestid=nil)
343
+ @Instances = instances
344
+ @RequestId = requestid
345
+ end
346
+
347
+ def deserialize(params)
348
+ unless params['Instances'].nil?
349
+ @Instances = []
350
+ params['Instances'].each do |i|
351
+ apminstancedetail_tmp = ApmInstanceDetail.new
352
+ apminstancedetail_tmp.deserialize(i)
353
+ @Instances << apminstancedetail_tmp
354
+ end
355
+ end
356
+ @RequestId = params['RequestId']
357
+ end
358
+ end
359
+
114
360
  end
115
361
  end
116
362
  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.213
4
+ version: 1.0.217
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-30 00:00:00.000000000 Z
11
+ date: 2021-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common