tencentcloud-sdk-live 3.0.563 → 3.0.566
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/v20180801/client.rb +24 -0
- data/lib/v20180801/models.rb +117 -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: 3052b235fd4b39470a0b13e4b73086d571b6ba2e
|
4
|
+
data.tar.gz: 39274846a09f323ad78b86ae1dff0c68b5a76e0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0158289870d0288d6c96337a9df78c2a2e23568cd601ffd8b7ddc0239a72d1a0a118117cdedc37790da9ca226574a6116454afa221049547d4713e401b5f88e
|
7
|
+
data.tar.gz: b4dfa0ac4066c69b31736752ed84fd2c973c4e8d37a1cf9acee3ecc2f0271b13276fc9707774f5def9295d44bf854c0e1c99244df3c74238addad6d9ffbe069c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.566
|
data/lib/v20180801/client.rb
CHANGED
@@ -2205,6 +2205,30 @@ module TencentCloud
|
|
2205
2205
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2206
2206
|
end
|
2207
2207
|
|
2208
|
+
# P2P流数据查询接口,用来获取流量、卡播和起播信息。
|
2209
|
+
|
2210
|
+
# @param request: Request instance for DescribeLiveXP2PDetailInfoList.
|
2211
|
+
# @type request: :class:`Tencentcloud::live::V20180801::DescribeLiveXP2PDetailInfoListRequest`
|
2212
|
+
# @rtype: :class:`Tencentcloud::live::V20180801::DescribeLiveXP2PDetailInfoListResponse`
|
2213
|
+
def DescribeLiveXP2PDetailInfoList(request)
|
2214
|
+
body = send_request('DescribeLiveXP2PDetailInfoList', request.serialize)
|
2215
|
+
response = JSON.parse(body)
|
2216
|
+
if response['Response'].key?('Error') == false
|
2217
|
+
model = DescribeLiveXP2PDetailInfoListResponse.new
|
2218
|
+
model.deserialize(response['Response'])
|
2219
|
+
model
|
2220
|
+
else
|
2221
|
+
code = response['Response']['Error']['Code']
|
2222
|
+
message = response['Response']['Error']['Message']
|
2223
|
+
reqid = response['Response']['RequestId']
|
2224
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2225
|
+
end
|
2226
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2227
|
+
raise e
|
2228
|
+
rescue StandardError => e
|
2229
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2230
|
+
end
|
2231
|
+
|
2208
2232
|
# 批量获取日志URL。
|
2209
2233
|
|
2210
2234
|
# @param request: Request instance for DescribeLogDownloadList.
|
data/lib/v20180801/models.rb
CHANGED
@@ -5546,6 +5546,64 @@ module TencentCloud
|
|
5546
5546
|
end
|
5547
5547
|
end
|
5548
5548
|
|
5549
|
+
# DescribeLiveXP2PDetailInfoList请求参数结构体
|
5550
|
+
class DescribeLiveXP2PDetailInfoListRequest < TencentCloud::Common::AbstractModel
|
5551
|
+
# @param QueryTime: utc分钟粒度查询时间,查询某一分钟的用量数据,格式为:yyyy-mm-ddTHH:MM:00Z,参考https://cloud.tencent.com/document/product/266/11732#I,
|
5552
|
+
# 例如:北京时间2019-01-08 10:00:00,对应utc时间为:2019-01-08T10:00:00+08:00。
|
5553
|
+
|
5554
|
+
# 支持最近六个月的查询。
|
5555
|
+
# @type QueryTime: String
|
5556
|
+
# @param Type: 类型数组,分直播live和点播vod,不传默认查全部。
|
5557
|
+
# @type Type: Array
|
5558
|
+
# @param StreamNames: 查询流数组,不传默认查所有流。
|
5559
|
+
# @type StreamNames: Array
|
5560
|
+
# @param Dimension: 查询维度,不传该参数则默认查询流维度的数据,传递该参数则只查对应维度的数据,和返回值的字段相关,目前支持AppId维度查询。
|
5561
|
+
# @type Dimension: Array
|
5562
|
+
|
5563
|
+
attr_accessor :QueryTime, :Type, :StreamNames, :Dimension
|
5564
|
+
|
5565
|
+
def initialize(querytime=nil, type=nil, streamnames=nil, dimension=nil)
|
5566
|
+
@QueryTime = querytime
|
5567
|
+
@Type = type
|
5568
|
+
@StreamNames = streamnames
|
5569
|
+
@Dimension = dimension
|
5570
|
+
end
|
5571
|
+
|
5572
|
+
def deserialize(params)
|
5573
|
+
@QueryTime = params['QueryTime']
|
5574
|
+
@Type = params['Type']
|
5575
|
+
@StreamNames = params['StreamNames']
|
5576
|
+
@Dimension = params['Dimension']
|
5577
|
+
end
|
5578
|
+
end
|
5579
|
+
|
5580
|
+
# DescribeLiveXP2PDetailInfoList返回参数结构体
|
5581
|
+
class DescribeLiveXP2PDetailInfoListResponse < TencentCloud::Common::AbstractModel
|
5582
|
+
# @param DataInfoList: P2P流统计信息。
|
5583
|
+
# @type DataInfoList: Array
|
5584
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5585
|
+
# @type RequestId: String
|
5586
|
+
|
5587
|
+
attr_accessor :DataInfoList, :RequestId
|
5588
|
+
|
5589
|
+
def initialize(datainfolist=nil, requestid=nil)
|
5590
|
+
@DataInfoList = datainfolist
|
5591
|
+
@RequestId = requestid
|
5592
|
+
end
|
5593
|
+
|
5594
|
+
def deserialize(params)
|
5595
|
+
unless params['DataInfoList'].nil?
|
5596
|
+
@DataInfoList = []
|
5597
|
+
params['DataInfoList'].each do |i|
|
5598
|
+
xp2pdetailinfo_tmp = XP2PDetailInfo.new
|
5599
|
+
xp2pdetailinfo_tmp.deserialize(i)
|
5600
|
+
@DataInfoList << xp2pdetailinfo_tmp
|
5601
|
+
end
|
5602
|
+
end
|
5603
|
+
@RequestId = params['RequestId']
|
5604
|
+
end
|
5605
|
+
end
|
5606
|
+
|
5549
5607
|
# DescribeLogDownloadList请求参数结构体
|
5550
5608
|
class DescribeLogDownloadListRequest < TencentCloud::Common::AbstractModel
|
5551
5609
|
# @param StartTime: 开始时间,北京时间。
|
@@ -10778,6 +10836,65 @@ module TencentCloud
|
|
10778
10836
|
end
|
10779
10837
|
end
|
10780
10838
|
|
10839
|
+
# 央视P2P流信息。
|
10840
|
+
class XP2PDetailInfo < TencentCloud::Common::AbstractModel
|
10841
|
+
# @param CdnBytes: CDN流量。
|
10842
|
+
# @type CdnBytes: Integer
|
10843
|
+
# @param P2pBytes: P2P流量。
|
10844
|
+
# @type P2pBytes: Integer
|
10845
|
+
# @param StuckPeople: 卡播人数。
|
10846
|
+
# @type StuckPeople: Integer
|
10847
|
+
# @param StuckTimes: 卡播次数。
|
10848
|
+
# @type StuckTimes: Integer
|
10849
|
+
# @param OnlinePeople: 在线人数。
|
10850
|
+
# @type OnlinePeople: Integer
|
10851
|
+
# @param Request: 起播请求次数
|
10852
|
+
# @type Request: Integer
|
10853
|
+
# @param RequestSuccess: 起播成功次数
|
10854
|
+
# @type RequestSuccess: Integer
|
10855
|
+
# @param Time: 时间,一分钟粒度,utc格式:yyyy-mm-ddTHH:MM:SSZ,参考https://cloud.tencent.com/document/product/266/11732#I。。
|
10856
|
+
# @type Time: String
|
10857
|
+
# @param Type: 类型,分live和vod两种。
|
10858
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10859
|
+
# @type Type: String
|
10860
|
+
# @param StreamName: 流ID。
|
10861
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10862
|
+
# @type StreamName: String
|
10863
|
+
# @param AppId: AppId。
|
10864
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10865
|
+
# @type AppId: String
|
10866
|
+
|
10867
|
+
attr_accessor :CdnBytes, :P2pBytes, :StuckPeople, :StuckTimes, :OnlinePeople, :Request, :RequestSuccess, :Time, :Type, :StreamName, :AppId
|
10868
|
+
|
10869
|
+
def initialize(cdnbytes=nil, p2pbytes=nil, stuckpeople=nil, stucktimes=nil, onlinepeople=nil, request=nil, requestsuccess=nil, time=nil, type=nil, streamname=nil, appid=nil)
|
10870
|
+
@CdnBytes = cdnbytes
|
10871
|
+
@P2pBytes = p2pbytes
|
10872
|
+
@StuckPeople = stuckpeople
|
10873
|
+
@StuckTimes = stucktimes
|
10874
|
+
@OnlinePeople = onlinepeople
|
10875
|
+
@Request = request
|
10876
|
+
@RequestSuccess = requestsuccess
|
10877
|
+
@Time = time
|
10878
|
+
@Type = type
|
10879
|
+
@StreamName = streamname
|
10880
|
+
@AppId = appid
|
10881
|
+
end
|
10882
|
+
|
10883
|
+
def deserialize(params)
|
10884
|
+
@CdnBytes = params['CdnBytes']
|
10885
|
+
@P2pBytes = params['P2pBytes']
|
10886
|
+
@StuckPeople = params['StuckPeople']
|
10887
|
+
@StuckTimes = params['StuckTimes']
|
10888
|
+
@OnlinePeople = params['OnlinePeople']
|
10889
|
+
@Request = params['Request']
|
10890
|
+
@RequestSuccess = params['RequestSuccess']
|
10891
|
+
@Time = params['Time']
|
10892
|
+
@Type = params['Type']
|
10893
|
+
@StreamName = params['StreamName']
|
10894
|
+
@AppId = params['AppId']
|
10895
|
+
end
|
10896
|
+
end
|
10897
|
+
|
10781
10898
|
end
|
10782
10899
|
end
|
10783
10900
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-live
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.566
|
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-05-
|
11
|
+
date: 2023-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|