tencentcloud-sdk-pts 3.0.544 → 3.0.546
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/v20210728/client.rb +24 -0
- data/lib/v20210728/models.rb +126 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d212cadff3baacb4dd2bb872cf1db57f5e864be0
|
4
|
+
data.tar.gz: 22d3b0b131260703a66de3d1cf2fcdde20807439
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db08af32ff805b956031e3eff88a340e1932551e5a0e353b842328e61459b010a93b08e455d2e8c073223b5eb657d336c6b4891d215751a8be10647eab60e85e
|
7
|
+
data.tar.gz: 9311679b91758b1eedb7cb11a7d44a80351c4ac9ededd779c21b489db0af1df89081f1e8e07ebb72224a3d7df53845ae3b15e3f545fdc60d056abdb4b9e51952
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.546
|
data/lib/v20210728/client.rb
CHANGED
@@ -509,6 +509,30 @@ module TencentCloud
|
|
509
509
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
510
|
end
|
511
511
|
|
512
|
+
# 查询错误详情汇总信息
|
513
|
+
|
514
|
+
# @param request: Request instance for DescribeErrorSummary.
|
515
|
+
# @type request: :class:`Tencentcloud::pts::V20210728::DescribeErrorSummaryRequest`
|
516
|
+
# @rtype: :class:`Tencentcloud::pts::V20210728::DescribeErrorSummaryResponse`
|
517
|
+
def DescribeErrorSummary(request)
|
518
|
+
body = send_request('DescribeErrorSummary', request.serialize)
|
519
|
+
response = JSON.parse(body)
|
520
|
+
if response['Response'].key?('Error') == false
|
521
|
+
model = DescribeErrorSummaryResponse.new
|
522
|
+
model.deserialize(response['Response'])
|
523
|
+
model
|
524
|
+
else
|
525
|
+
code = response['Response']['Error']['Code']
|
526
|
+
message = response['Response']['Error']['Message']
|
527
|
+
reqid = response['Response']['RequestId']
|
528
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
529
|
+
end
|
530
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
531
|
+
raise e
|
532
|
+
rescue StandardError => e
|
533
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
|
+
end
|
535
|
+
|
512
536
|
# 查询文件列表
|
513
537
|
|
514
538
|
# @param request: Request instance for DescribeFiles.
|
data/lib/v20210728/models.rb
CHANGED
@@ -426,14 +426,18 @@ module TencentCloud
|
|
426
426
|
# @param GracefulStopSeconds: 优雅终止任务的等待时间
|
427
427
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
428
428
|
# @type GracefulStopSeconds: Integer
|
429
|
+
# @param Resources: 资源数
|
430
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
431
|
+
# @type Resources: Integer
|
429
432
|
|
430
|
-
attr_accessor :Stages, :IterationCount, :MaxRequestsPerSecond, :GracefulStopSeconds
|
433
|
+
attr_accessor :Stages, :IterationCount, :MaxRequestsPerSecond, :GracefulStopSeconds, :Resources
|
431
434
|
|
432
|
-
def initialize(stages=nil, iterationcount=nil, maxrequestspersecond=nil, gracefulstopseconds=nil)
|
435
|
+
def initialize(stages=nil, iterationcount=nil, maxrequestspersecond=nil, gracefulstopseconds=nil, resources=nil)
|
433
436
|
@Stages = stages
|
434
437
|
@IterationCount = iterationcount
|
435
438
|
@MaxRequestsPerSecond = maxrequestspersecond
|
436
439
|
@GracefulStopSeconds = gracefulstopseconds
|
440
|
+
@Resources = resources
|
437
441
|
end
|
438
442
|
|
439
443
|
def deserialize(params)
|
@@ -448,6 +452,7 @@ module TencentCloud
|
|
448
452
|
@IterationCount = params['IterationCount']
|
449
453
|
@MaxRequestsPerSecond = params['MaxRequestsPerSecond']
|
450
454
|
@GracefulStopSeconds = params['GracefulStopSeconds']
|
455
|
+
@Resources = params['Resources']
|
451
456
|
end
|
452
457
|
end
|
453
458
|
|
@@ -1655,6 +1660,69 @@ module TencentCloud
|
|
1655
1660
|
end
|
1656
1661
|
end
|
1657
1662
|
|
1663
|
+
# DescribeErrorSummary请求参数结构体
|
1664
|
+
class DescribeErrorSummaryRequest < TencentCloud::Common::AbstractModel
|
1665
|
+
# @param JobId: 任务ID
|
1666
|
+
# @type JobId: String
|
1667
|
+
# @param ScenarioId: 场景ID
|
1668
|
+
# @type ScenarioId: String
|
1669
|
+
# @param ProjectId: 项目ID
|
1670
|
+
# @type ProjectId: String
|
1671
|
+
# @param Filters: 过滤参数
|
1672
|
+
# @type Filters: Array
|
1673
|
+
|
1674
|
+
attr_accessor :JobId, :ScenarioId, :ProjectId, :Filters
|
1675
|
+
|
1676
|
+
def initialize(jobid=nil, scenarioid=nil, projectid=nil, filters=nil)
|
1677
|
+
@JobId = jobid
|
1678
|
+
@ScenarioId = scenarioid
|
1679
|
+
@ProjectId = projectid
|
1680
|
+
@Filters = filters
|
1681
|
+
end
|
1682
|
+
|
1683
|
+
def deserialize(params)
|
1684
|
+
@JobId = params['JobId']
|
1685
|
+
@ScenarioId = params['ScenarioId']
|
1686
|
+
@ProjectId = params['ProjectId']
|
1687
|
+
unless params['Filters'].nil?
|
1688
|
+
@Filters = []
|
1689
|
+
params['Filters'].each do |i|
|
1690
|
+
filter_tmp = Filter.new
|
1691
|
+
filter_tmp.deserialize(i)
|
1692
|
+
@Filters << filter_tmp
|
1693
|
+
end
|
1694
|
+
end
|
1695
|
+
end
|
1696
|
+
end
|
1697
|
+
|
1698
|
+
# DescribeErrorSummary返回参数结构体
|
1699
|
+
class DescribeErrorSummaryResponse < TencentCloud::Common::AbstractModel
|
1700
|
+
# @param ErrorSummarySet: 错误汇总信息
|
1701
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1702
|
+
# @type ErrorSummarySet: Array
|
1703
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1704
|
+
# @type RequestId: String
|
1705
|
+
|
1706
|
+
attr_accessor :ErrorSummarySet, :RequestId
|
1707
|
+
|
1708
|
+
def initialize(errorsummaryset=nil, requestid=nil)
|
1709
|
+
@ErrorSummarySet = errorsummaryset
|
1710
|
+
@RequestId = requestid
|
1711
|
+
end
|
1712
|
+
|
1713
|
+
def deserialize(params)
|
1714
|
+
unless params['ErrorSummarySet'].nil?
|
1715
|
+
@ErrorSummarySet = []
|
1716
|
+
params['ErrorSummarySet'].each do |i|
|
1717
|
+
errorsummary_tmp = ErrorSummary.new
|
1718
|
+
errorsummary_tmp.deserialize(i)
|
1719
|
+
@ErrorSummarySet << errorsummary_tmp
|
1720
|
+
end
|
1721
|
+
end
|
1722
|
+
@RequestId = params['RequestId']
|
1723
|
+
end
|
1724
|
+
end
|
1725
|
+
|
1658
1726
|
# DescribeFiles请求参数结构体
|
1659
1727
|
class DescribeFilesRequest < TencentCloud::Common::AbstractModel
|
1660
1728
|
# @param ProjectIds: 项目 ID 数组
|
@@ -2768,6 +2836,48 @@ module TencentCloud
|
|
2768
2836
|
end
|
2769
2837
|
end
|
2770
2838
|
|
2839
|
+
# 错误信息汇总
|
2840
|
+
class ErrorSummary < TencentCloud::Common::AbstractModel
|
2841
|
+
# @param Status: 状态码
|
2842
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2843
|
+
# @type Status: String
|
2844
|
+
# @param Result: 结果码
|
2845
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2846
|
+
# @type Result: String
|
2847
|
+
# @param Count: 错误出现次数
|
2848
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2849
|
+
# @type Count: Integer
|
2850
|
+
# @param Rate: 错误率
|
2851
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2852
|
+
# @type Rate: Float
|
2853
|
+
# @param Message: 错误信息
|
2854
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2855
|
+
# @type Message: String
|
2856
|
+
# @param Proto: 请求协议类型
|
2857
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2858
|
+
# @type Proto: String
|
2859
|
+
|
2860
|
+
attr_accessor :Status, :Result, :Count, :Rate, :Message, :Proto
|
2861
|
+
|
2862
|
+
def initialize(status=nil, result=nil, count=nil, rate=nil, message=nil, proto=nil)
|
2863
|
+
@Status = status
|
2864
|
+
@Result = result
|
2865
|
+
@Count = count
|
2866
|
+
@Rate = rate
|
2867
|
+
@Message = message
|
2868
|
+
@Proto = proto
|
2869
|
+
end
|
2870
|
+
|
2871
|
+
def deserialize(params)
|
2872
|
+
@Status = params['Status']
|
2873
|
+
@Result = params['Result']
|
2874
|
+
@Count = params['Count']
|
2875
|
+
@Rate = params['Rate']
|
2876
|
+
@Message = params['Message']
|
2877
|
+
@Proto = params['Proto']
|
2878
|
+
end
|
2879
|
+
end
|
2880
|
+
|
2771
2881
|
# 文件列表
|
2772
2882
|
class File < TencentCloud::Common::AbstractModel
|
2773
2883
|
# @param FileId: 文件 ID
|
@@ -2929,9 +3039,21 @@ module TencentCloud
|
|
2929
3039
|
class Filter < TencentCloud::Common::AbstractModel
|
2930
3040
|
# @param Operator: 等于:0,不等于:1
|
2931
3041
|
# @type Operator: Integer
|
2932
|
-
# @param LabelName:
|
3042
|
+
# @param LabelName: 标签名,可选值包括:
|
3043
|
+
# 1. method,请求方法名;
|
3044
|
+
# 2. proto:协议名;
|
3045
|
+
# 3. service:服务名;
|
3046
|
+
# 4. status:响应状态码;
|
3047
|
+
# 5. result:响应详情;
|
3048
|
+
# 6. check:检查名。
|
2933
3049
|
# @type LabelName: String
|
2934
|
-
# @param LabelValue:
|
3050
|
+
# @param LabelValue: 标签值:
|
3051
|
+
# 1. method:请求方法名,以 http 协议为例,method 为 GET、POST、PUT 等;
|
3052
|
+
# 2. proto:协议名,以 http 协议为例,proto 为 HTTP/1.1、HTTP/2 等;
|
3053
|
+
# 3. service:服务名,以 http 协议为例,service 为请求 url,如 http://httpbin.org/get 等;
|
3054
|
+
# 4. status:响应状态码,以 http 协议为例,状态码包括 200、404、500 等;
|
3055
|
+
# 5. result:响应详情,通过 result 判断请求成功或失败;请求正常,result 标签值为 ok;请求失败,result 标签携带错误码和描述;
|
3056
|
+
# 6. check:检查名,标签值为用户设置的检查点名称。
|
2935
3057
|
# @type LabelValue: String
|
2936
3058
|
|
2937
3059
|
attr_accessor :Operator, :LabelName, :LabelValue
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-pts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.546
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -34,8 +34,8 @@ extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
36
|
- lib/tencentcloud-sdk-pts.rb
|
37
|
-
- lib/v20210728/models.rb
|
38
37
|
- lib/v20210728/client.rb
|
38
|
+
- lib/v20210728/models.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|