tencentcloud-sdk-tcm 3.0.441 → 3.0.442
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/v20210413/client.rb +24 -0
- data/lib/v20210413/models.rb +54 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 793705fe27b89f832d259a4c199c8107c7c1100b
|
4
|
+
data.tar.gz: 66e54d5e78aaa7b15161f398e098dff87427d7da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 624a00f33e8cba3067c96f4e8b4b051bd653a3e4e9b8ac2435397870795f3c2801ebfddb15bec9a6eb0c6f0b31ebb27ce5eafb62b1a6186e304e7c2d20cb5ca3
|
7
|
+
data.tar.gz: 12ef07c166329725afceab5fad078eeecbd1cef91b01fe129548c6229e1f2a55d0f3136f24d9aa1a396fec25dcc5af38f10b2e4829316406916e4c43af39dded
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.442
|
data/lib/v20210413/client.rb
CHANGED
@@ -197,6 +197,30 @@ module TencentCloud
|
|
197
197
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
198
|
end
|
199
199
|
|
200
|
+
# 修改 Tracing 配置
|
201
|
+
|
202
|
+
# @param request: Request instance for ModifyTracingConfig.
|
203
|
+
# @type request: :class:`Tencentcloud::tcm::V20210413::ModifyTracingConfigRequest`
|
204
|
+
# @rtype: :class:`Tencentcloud::tcm::V20210413::ModifyTracingConfigResponse`
|
205
|
+
def ModifyTracingConfig(request)
|
206
|
+
body = send_request('ModifyTracingConfig', request.serialize)
|
207
|
+
response = JSON.parse(body)
|
208
|
+
if response['Response'].key?('Error') == false
|
209
|
+
model = ModifyTracingConfigResponse.new
|
210
|
+
model.deserialize(response['Response'])
|
211
|
+
model
|
212
|
+
else
|
213
|
+
code = response['Response']['Error']['Code']
|
214
|
+
message = response['Response']['Error']['Message']
|
215
|
+
reqid = response['Response']['RequestId']
|
216
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
217
|
+
end
|
218
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
219
|
+
raise e
|
220
|
+
rescue StandardError => e
|
221
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
|
+
end
|
223
|
+
|
200
224
|
# 解关联集群
|
201
225
|
|
202
226
|
# @param request: Request instance for UnlinkCluster.
|
data/lib/v20210413/models.rb
CHANGED
@@ -1483,6 +1483,60 @@ module TencentCloud
|
|
1483
1483
|
end
|
1484
1484
|
end
|
1485
1485
|
|
1486
|
+
# ModifyTracingConfig请求参数结构体
|
1487
|
+
class ModifyTracingConfigRequest < TencentCloud::Common::AbstractModel
|
1488
|
+
# @param MeshId: mesh名字
|
1489
|
+
# @type MeshId: String
|
1490
|
+
# @param Enable: 是否启用调用跟踪
|
1491
|
+
# @type Enable: Boolean
|
1492
|
+
# @param APM: 腾讯云 APM 服务相关参数
|
1493
|
+
# @type APM: :class:`Tencentcloud::Tcm.v20210413.models.APM`
|
1494
|
+
# @param Sampling: 调用跟踪采样值
|
1495
|
+
# @type Sampling: Float
|
1496
|
+
# @param Zipkin: 调用追踪Zipkin相关配置
|
1497
|
+
# @type Zipkin: :class:`Tencentcloud::Tcm.v20210413.models.TracingZipkin`
|
1498
|
+
|
1499
|
+
attr_accessor :MeshId, :Enable, :APM, :Sampling, :Zipkin
|
1500
|
+
|
1501
|
+
def initialize(meshid=nil, enable=nil, apm=nil, sampling=nil, zipkin=nil)
|
1502
|
+
@MeshId = meshid
|
1503
|
+
@Enable = enable
|
1504
|
+
@APM = apm
|
1505
|
+
@Sampling = sampling
|
1506
|
+
@Zipkin = zipkin
|
1507
|
+
end
|
1508
|
+
|
1509
|
+
def deserialize(params)
|
1510
|
+
@MeshId = params['MeshId']
|
1511
|
+
@Enable = params['Enable']
|
1512
|
+
unless params['APM'].nil?
|
1513
|
+
@APM = APM.new
|
1514
|
+
@APM.deserialize(params['APM'])
|
1515
|
+
end
|
1516
|
+
@Sampling = params['Sampling']
|
1517
|
+
unless params['Zipkin'].nil?
|
1518
|
+
@Zipkin = TracingZipkin.new
|
1519
|
+
@Zipkin.deserialize(params['Zipkin'])
|
1520
|
+
end
|
1521
|
+
end
|
1522
|
+
end
|
1523
|
+
|
1524
|
+
# ModifyTracingConfig返回参数结构体
|
1525
|
+
class ModifyTracingConfigResponse < TencentCloud::Common::AbstractModel
|
1526
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1527
|
+
# @type RequestId: String
|
1528
|
+
|
1529
|
+
attr_accessor :RequestId
|
1530
|
+
|
1531
|
+
def initialize(requestid=nil)
|
1532
|
+
@RequestId = requestid
|
1533
|
+
end
|
1534
|
+
|
1535
|
+
def deserialize(params)
|
1536
|
+
@RequestId = params['RequestId']
|
1537
|
+
end
|
1538
|
+
end
|
1539
|
+
|
1486
1540
|
# PodsMetricSource 定义了如何根据特定指标进行扩缩容
|
1487
1541
|
class PodsMetricSource < TencentCloud::Common::AbstractModel
|
1488
1542
|
# @param MetricName: 指标名
|