tencentcloud-sdk-apm 1.0.214 → 1.0.215

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: d8907413c161ca00096d0b5d35693dc022eab844
4
- data.tar.gz: 6c6db4381d0fc68310f45e22b03989af3e62ca72
3
+ metadata.gz: bee2064bfc3b0dd24a5f0ccce7b30fc427dd7715
4
+ data.tar.gz: e30c840b2f1de262a3ffa66172a0e73d1484a23d
5
5
  SHA512:
6
- metadata.gz: ba71877710f2842d7aa2df3cc98ccb0e5ab4f889abd22fc7d567468fc418ca18741ec3169227a1b45a64a22ecb6d3d4a134bde9af4ee0524aa13d41367e25e5d
7
- data.tar.gz: a3f543e1878b572804f779c839baf7f4cb5117c018a2d7b3c399dde2f2c9bd15b69f70aaf699975a43876da02c8d61fbfb282d2c321f5e8d3a1d3cfe39ab16e8
6
+ metadata.gz: 3554ea51b8e6256cd22a379c02b20ba4888c7ab2ab973a8d59ccf693a2da0d737e2f28bbd4574537603677cb6d379052712bcb0c684e2026245a427b28b0bcc7
7
+ data.tar.gz: c9965af98ebf02f08302f9d7a85db23f750a5c4182041634b850d6f5f3f5feebb1bac7a06b4deab41a5015008fd94e6ec98e9b5f3bbfd53d15a8dc8f538c5d27
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.214
1
+ 1.0.215
@@ -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.
@@ -186,6 +186,66 @@ module TencentCloud
186
186
  end
187
187
  end
188
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
+
189
249
  # DescribeApmAgent请求参数结构体
190
250
  class DescribeApmAgentRequest < TencentCloud::Common::AbstractModel
191
251
  # @param InstanceId: 实例ID
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.214
4
+ version: 1.0.215
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-12-01 00:00:00.000000000 Z
11
+ date: 2021-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common