tencentcloud-sdk-vod 1.0.281 → 1.0.284
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/v20180717/client.rb +27 -0
- data/lib/v20180717/models.rb +92 -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: 789d2b3f8e9ce4948176fcf23f45249e57613c74
|
4
|
+
data.tar.gz: c3e40a88003c9ebfe0befc06ef16d9dd28ed98d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3352fc8d342682d80c86777a2aa08a1789e10fc6e547711448a6759c686aee8c10d1f02af864ba755361e397251d11b068f16df5919f9e3f4ea91b1f04af096
|
7
|
+
data.tar.gz: c3cc389f7a3b070699e603a0b4a9c91dfe76933635906c9a310df26ca0aebcf9b5de0b76c4b127f9cef009946477ab1650491b81bbce03e1e194f8dc7369d607
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.284
|
data/lib/v20180717/client.rb
CHANGED
@@ -1577,6 +1577,33 @@ module TencentCloud
|
|
1577
1577
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1578
1578
|
end
|
1579
1579
|
|
1580
|
+
# 该接口用于查询媒体文件按指定时间粒度统计的播放数据
|
1581
|
+
# * 可以查询最近一年的播放统计数据。
|
1582
|
+
# * 时间粒度为小时,结束时间和起始时间的跨度最大为7天。
|
1583
|
+
# * 时间粒度为天,结束时间和起始时间的跨度最大为90天。
|
1584
|
+
|
1585
|
+
# @param request: Request instance for DescribeMediaPlayStatDetails.
|
1586
|
+
# @type request: :class:`Tencentcloud::vod::V20180717::DescribeMediaPlayStatDetailsRequest`
|
1587
|
+
# @rtype: :class:`Tencentcloud::vod::V20180717::DescribeMediaPlayStatDetailsResponse`
|
1588
|
+
def DescribeMediaPlayStatDetails(request)
|
1589
|
+
body = send_request('DescribeMediaPlayStatDetails', request.serialize)
|
1590
|
+
response = JSON.parse(body)
|
1591
|
+
if response['Response'].key?('Error') == false
|
1592
|
+
model = DescribeMediaPlayStatDetailsResponse.new
|
1593
|
+
model.deserialize(response['Response'])
|
1594
|
+
model
|
1595
|
+
else
|
1596
|
+
code = response['Response']['Error']['Code']
|
1597
|
+
message = response['Response']['Error']['Message']
|
1598
|
+
reqid = response['Response']['RequestId']
|
1599
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1600
|
+
end
|
1601
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1602
|
+
raise e
|
1603
|
+
rescue StandardError => e
|
1604
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1605
|
+
end
|
1606
|
+
|
1580
1607
|
# 该接口返回查询时间范围内每天使用的视频处理用量信息。
|
1581
1608
|
# 1. 可以查询最近365天内的视频处理统计数据。
|
1582
1609
|
# 2. 查询时间跨度不超过90天。
|
data/lib/v20180717/models.rb
CHANGED
@@ -8293,6 +8293,68 @@ module TencentCloud
|
|
8293
8293
|
end
|
8294
8294
|
end
|
8295
8295
|
|
8296
|
+
# DescribeMediaPlayStatDetails请求参数结构体
|
8297
|
+
class DescribeMediaPlayStatDetailsRequest < TencentCloud::Common::AbstractModel
|
8298
|
+
# @param FileId: 媒体文件 ID。
|
8299
|
+
# @type FileId: String
|
8300
|
+
# @param StartTime: 起始时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
|
8301
|
+
# @type StartTime: String
|
8302
|
+
# @param EndTime: 结束时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
|
8303
|
+
# @type EndTime: String
|
8304
|
+
# @param Interval: 统计时间粒度,有效值:
|
8305
|
+
# <li>Hour:以小时为粒度。</li>
|
8306
|
+
# <li>Day:以天为粒度。</li>
|
8307
|
+
# 默认按时间跨度决定,小于1天以小时为粒度,大于等于1天则以天为粒度。
|
8308
|
+
# @type Interval: String
|
8309
|
+
# @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
|
8310
|
+
# @type SubAppId: Integer
|
8311
|
+
|
8312
|
+
attr_accessor :FileId, :StartTime, :EndTime, :Interval, :SubAppId
|
8313
|
+
|
8314
|
+
def initialize(fileid=nil, starttime=nil, endtime=nil, interval=nil, subappid=nil)
|
8315
|
+
@FileId = fileid
|
8316
|
+
@StartTime = starttime
|
8317
|
+
@EndTime = endtime
|
8318
|
+
@Interval = interval
|
8319
|
+
@SubAppId = subappid
|
8320
|
+
end
|
8321
|
+
|
8322
|
+
def deserialize(params)
|
8323
|
+
@FileId = params['FileId']
|
8324
|
+
@StartTime = params['StartTime']
|
8325
|
+
@EndTime = params['EndTime']
|
8326
|
+
@Interval = params['Interval']
|
8327
|
+
@SubAppId = params['SubAppId']
|
8328
|
+
end
|
8329
|
+
end
|
8330
|
+
|
8331
|
+
# DescribeMediaPlayStatDetails返回参数结构体
|
8332
|
+
class DescribeMediaPlayStatDetailsResponse < TencentCloud::Common::AbstractModel
|
8333
|
+
# @param PlayStatInfoSet: 播放统计数据。
|
8334
|
+
# @type PlayStatInfoSet: Array
|
8335
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8336
|
+
# @type RequestId: String
|
8337
|
+
|
8338
|
+
attr_accessor :PlayStatInfoSet, :RequestId
|
8339
|
+
|
8340
|
+
def initialize(playstatinfoset=nil, requestid=nil)
|
8341
|
+
@PlayStatInfoSet = playstatinfoset
|
8342
|
+
@RequestId = requestid
|
8343
|
+
end
|
8344
|
+
|
8345
|
+
def deserialize(params)
|
8346
|
+
unless params['PlayStatInfoSet'].nil?
|
8347
|
+
@PlayStatInfoSet = []
|
8348
|
+
params['PlayStatInfoSet'].each do |i|
|
8349
|
+
playstatinfo_tmp = PlayStatInfo.new
|
8350
|
+
playstatinfo_tmp.deserialize(i)
|
8351
|
+
@PlayStatInfoSet << playstatinfo_tmp
|
8352
|
+
end
|
8353
|
+
end
|
8354
|
+
@RequestId = params['RequestId']
|
8355
|
+
end
|
8356
|
+
end
|
8357
|
+
|
8296
8358
|
# DescribeMediaProcessUsageData请求参数结构体
|
8297
8359
|
class DescribeMediaProcessUsageDataRequest < TencentCloud::Common::AbstractModel
|
8298
8360
|
# @param StartTime: 起始日期。使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#52)。
|
@@ -15106,6 +15168,36 @@ module TencentCloud
|
|
15106
15168
|
end
|
15107
15169
|
end
|
15108
15170
|
|
15171
|
+
# 播放统计信息。
|
15172
|
+
class PlayStatInfo < TencentCloud::Common::AbstractModel
|
15173
|
+
# @param Time: 数据所在时间区间的开始时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。如:当时间粒度为天,2018-12-01T00:00:00+08:00,表示2018年12月1日(含)到2018年12月2日(不含)区间。
|
15174
|
+
# <li>表示小时级别数据时,2019-08-22T00:00:00+08:00表示2019-08-22日0点到1点的统计数据。</li>
|
15175
|
+
# <li>表示天级别数据时,2019-08-22T00:00:00+08:00表示2019-08-22日的统计数据。</li>
|
15176
|
+
# @type Time: String
|
15177
|
+
# @param FileId: 媒体文件ID。
|
15178
|
+
# @type FileId: String
|
15179
|
+
# @param PlayTimes: 播放次数。
|
15180
|
+
# @type PlayTimes: Integer
|
15181
|
+
# @param Traffic: 播放流量,单位:字节。
|
15182
|
+
# @type Traffic: Integer
|
15183
|
+
|
15184
|
+
attr_accessor :Time, :FileId, :PlayTimes, :Traffic
|
15185
|
+
|
15186
|
+
def initialize(time=nil, fileid=nil, playtimes=nil, traffic=nil)
|
15187
|
+
@Time = time
|
15188
|
+
@FileId = fileid
|
15189
|
+
@PlayTimes = playtimes
|
15190
|
+
@Traffic = traffic
|
15191
|
+
end
|
15192
|
+
|
15193
|
+
def deserialize(params)
|
15194
|
+
@Time = params['Time']
|
15195
|
+
@FileId = params['FileId']
|
15196
|
+
@PlayTimes = params['PlayTimes']
|
15197
|
+
@Traffic = params['Traffic']
|
15198
|
+
end
|
15199
|
+
end
|
15200
|
+
|
15109
15201
|
# 播放器配置详情
|
15110
15202
|
class PlayerConfig < TencentCloud::Common::AbstractModel
|
15111
15203
|
# @param Name: 播放器配置名字。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-vod
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.284
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|