tencentcloud-sdk-trtc 1.0.326 → 1.0.327
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/v20190722/client.rb +52 -0
- data/lib/v20190722/models.rb +190 -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: fed2aeb068a68d2dea2a0b28012c22c67a5c0b2c
|
4
|
+
data.tar.gz: 33a835d855de0f5a0db538273bafc942ff7246b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 399b9c76e509f0272f6c538ff0704462bd94e1bdf112d3aff25fff095121a08c15e91abf211878614b20658e9fe1168c7f1447fb9a013482c25b51c884256aab
|
7
|
+
data.tar.gz: a2189658f5ab0cc6fe6905bee002c14afa4ec3671da57349e15618e27e386d433c583a1420fbb040d9cdba3bdcb7b991f580129b1ba2c188658824f34757425d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.327
|
data/lib/v20190722/client.rb
CHANGED
@@ -257,6 +257,30 @@ module TencentCloud
|
|
257
257
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
258
258
|
end
|
259
259
|
|
260
|
+
# 获取Trtc的用量统计数据。走计费渠道二期 只允许查两天的数据
|
261
|
+
|
262
|
+
# @param request: Request instance for DescribeExternalTrtcMeasure.
|
263
|
+
# @type request: :class:`Tencentcloud::trtc::V20190722::DescribeExternalTrtcMeasureRequest`
|
264
|
+
# @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeExternalTrtcMeasureResponse`
|
265
|
+
def DescribeExternalTrtcMeasure(request)
|
266
|
+
body = send_request('DescribeExternalTrtcMeasure', request.serialize)
|
267
|
+
response = JSON.parse(body)
|
268
|
+
if response['Response'].key?('Error') == false
|
269
|
+
model = DescribeExternalTrtcMeasureResponse.new
|
270
|
+
model.deserialize(response['Response'])
|
271
|
+
model
|
272
|
+
else
|
273
|
+
code = response['Response']['Error']['Code']
|
274
|
+
message = response['Response']['Error']['Message']
|
275
|
+
reqid = response['Response']['RequestId']
|
276
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
277
|
+
end
|
278
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
279
|
+
raise e
|
280
|
+
rescue StandardError => e
|
281
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
282
|
+
end
|
283
|
+
|
260
284
|
# 可查询sdkqppid 每天的房间数和用户数,每分钟1次,可查询最近14天的数据。当天未结束,无法查到当天的房间数与用户数。
|
261
285
|
|
262
286
|
# @param request: Request instance for DescribeHistoryScale.
|
@@ -460,6 +484,34 @@ module TencentCloud
|
|
460
484
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
461
485
|
end
|
462
486
|
|
487
|
+
# 查询旁路转码计费时长。
|
488
|
+
# - 查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。
|
489
|
+
# - 单次查询统计区间最多不能超过2天。
|
490
|
+
# - 若查询当天用量,由于统计延迟等原因,返回数据可能不够准确。
|
491
|
+
# - 日结后付费将于次日上午推送账单,建议次日上午9点以后再来查询前一天的用量。
|
492
|
+
|
493
|
+
# @param request: Request instance for MeasureTrtcMcuExternal.
|
494
|
+
# @type request: :class:`Tencentcloud::trtc::V20190722::MeasureTrtcMcuExternalRequest`
|
495
|
+
# @rtype: :class:`Tencentcloud::trtc::V20190722::MeasureTrtcMcuExternalResponse`
|
496
|
+
def MeasureTrtcMcuExternal(request)
|
497
|
+
body = send_request('MeasureTrtcMcuExternal', request.serialize)
|
498
|
+
response = JSON.parse(body)
|
499
|
+
if response['Response'].key?('Error') == false
|
500
|
+
model = MeasureTrtcMcuExternalResponse.new
|
501
|
+
model.deserialize(response['Response'])
|
502
|
+
model
|
503
|
+
else
|
504
|
+
code = response['Response']['Error']['Code']
|
505
|
+
message = response['Response']['Error']['Message']
|
506
|
+
reqid = response['Response']['RequestId']
|
507
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
508
|
+
end
|
509
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
510
|
+
raise e
|
511
|
+
rescue StandardError => e
|
512
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
513
|
+
end
|
514
|
+
|
463
515
|
# 成功开启录制后,可以使用此接口来更新录制任务。仅在录制任务进行时有效,录制退出后更新将会返回错误。更新操作是全量覆盖,并不是增量更新的模式,也就是说每次更新都需要携带全量的信息。
|
464
516
|
|
465
517
|
# @param request: Request instance for ModifyCloudRecording.
|
data/lib/v20190722/models.rb
CHANGED
@@ -734,6 +734,65 @@ module TencentCloud
|
|
734
734
|
end
|
735
735
|
end
|
736
736
|
|
737
|
+
# DescribeExternalTrtcMeasure请求参数结构体
|
738
|
+
class DescribeExternalTrtcMeasureRequest < TencentCloud::Common::AbstractModel
|
739
|
+
# @param StartTime: 查询开始日期。
|
740
|
+
# @type StartTime: String
|
741
|
+
# @param EndTime: 查询结束日期。
|
742
|
+
# @type EndTime: String
|
743
|
+
# @param SdkAppId: 对应的应用。如果没有这个参数,表示获取用户名下全部实时音视频应用的汇总。
|
744
|
+
# @type SdkAppId: Integer
|
745
|
+
|
746
|
+
attr_accessor :StartTime, :EndTime, :SdkAppId
|
747
|
+
|
748
|
+
def initialize(starttime=nil, endtime=nil, sdkappid=nil)
|
749
|
+
@StartTime = starttime
|
750
|
+
@EndTime = endtime
|
751
|
+
@SdkAppId = sdkappid
|
752
|
+
end
|
753
|
+
|
754
|
+
def deserialize(params)
|
755
|
+
@StartTime = params['StartTime']
|
756
|
+
@EndTime = params['EndTime']
|
757
|
+
@SdkAppId = params['SdkAppId']
|
758
|
+
end
|
759
|
+
end
|
760
|
+
|
761
|
+
# DescribeExternalTrtcMeasure返回参数结构体
|
762
|
+
class DescribeExternalTrtcMeasureResponse < TencentCloud::Common::AbstractModel
|
763
|
+
# @param SdkAppIdTrtrTimeUsages: 每个SdkAppId的时长使用信息
|
764
|
+
# @type SdkAppIdTrtrTimeUsages: Array
|
765
|
+
# @param AnchorUsageMode: 主播的用量统计方式。取值"InRoomTime":房间时长,"SubscribeTime":"订阅时长","Bandwidth":带宽
|
766
|
+
# @type AnchorUsageMode: String
|
767
|
+
# @param AudienceUsageMode: 观众的用量统计方式。取值"InRoomTime":在房间时长,"SubscribeTime":"订阅时长","Bandwidth":带宽,"MergeWithAnchor":"不区分麦上麦下"
|
768
|
+
# @type AudienceUsageMode: String
|
769
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
770
|
+
# @type RequestId: String
|
771
|
+
|
772
|
+
attr_accessor :SdkAppIdTrtrTimeUsages, :AnchorUsageMode, :AudienceUsageMode, :RequestId
|
773
|
+
|
774
|
+
def initialize(sdkappidtrtrtimeusages=nil, anchorusagemode=nil, audienceusagemode=nil, requestid=nil)
|
775
|
+
@SdkAppIdTrtrTimeUsages = sdkappidtrtrtimeusages
|
776
|
+
@AnchorUsageMode = anchorusagemode
|
777
|
+
@AudienceUsageMode = audienceusagemode
|
778
|
+
@RequestId = requestid
|
779
|
+
end
|
780
|
+
|
781
|
+
def deserialize(params)
|
782
|
+
unless params['SdkAppIdTrtrTimeUsages'].nil?
|
783
|
+
@SdkAppIdTrtrTimeUsages = []
|
784
|
+
params['SdkAppIdTrtrTimeUsages'].each do |i|
|
785
|
+
sdkappidnewtrtctimeusage_tmp = SdkAppIdNewTrtcTimeUsage.new
|
786
|
+
sdkappidnewtrtctimeusage_tmp.deserialize(i)
|
787
|
+
@SdkAppIdTrtrTimeUsages << sdkappidnewtrtctimeusage_tmp
|
788
|
+
end
|
789
|
+
end
|
790
|
+
@AnchorUsageMode = params['AnchorUsageMode']
|
791
|
+
@AudienceUsageMode = params['AudienceUsageMode']
|
792
|
+
@RequestId = params['RequestId']
|
793
|
+
end
|
794
|
+
end
|
795
|
+
|
737
796
|
# DescribeHistoryScale请求参数结构体
|
738
797
|
class DescribeHistoryScaleRequest < TencentCloud::Common::AbstractModel
|
739
798
|
# @param SdkAppId: 用户sdkappid(1400188366)
|
@@ -1359,6 +1418,47 @@ module TencentCloud
|
|
1359
1418
|
end
|
1360
1419
|
end
|
1361
1420
|
|
1421
|
+
# MeasureTrtcMcuExternal请求参数结构体
|
1422
|
+
class MeasureTrtcMcuExternalRequest < TencentCloud::Common::AbstractModel
|
1423
|
+
# @param StartTime: 查询开始时间,格式为YYYY-MM-DD。
|
1424
|
+
# @type StartTime: String
|
1425
|
+
# @param EndTime: 查询结束时间,格式为YYYY-MM-DD。
|
1426
|
+
# 单次查询统计区间最多不能超过2天。
|
1427
|
+
# @type EndTime: String
|
1428
|
+
# @param SdkAppId: 应用ID,可不传。传应用ID时返回的是该应用的用量,不传时返回多个应用的合计值。
|
1429
|
+
# @type SdkAppId: Integer
|
1430
|
+
|
1431
|
+
attr_accessor :StartTime, :EndTime, :SdkAppId
|
1432
|
+
|
1433
|
+
def initialize(starttime=nil, endtime=nil, sdkappid=nil)
|
1434
|
+
@StartTime = starttime
|
1435
|
+
@EndTime = endtime
|
1436
|
+
@SdkAppId = sdkappid
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
def deserialize(params)
|
1440
|
+
@StartTime = params['StartTime']
|
1441
|
+
@EndTime = params['EndTime']
|
1442
|
+
@SdkAppId = params['SdkAppId']
|
1443
|
+
end
|
1444
|
+
end
|
1445
|
+
|
1446
|
+
# MeasureTrtcMcuExternal返回参数结构体
|
1447
|
+
class MeasureTrtcMcuExternalResponse < TencentCloud::Common::AbstractModel
|
1448
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1449
|
+
# @type RequestId: String
|
1450
|
+
|
1451
|
+
attr_accessor :RequestId
|
1452
|
+
|
1453
|
+
def initialize(requestid=nil)
|
1454
|
+
@RequestId = requestid
|
1455
|
+
end
|
1456
|
+
|
1457
|
+
def deserialize(params)
|
1458
|
+
@RequestId = params['RequestId']
|
1459
|
+
end
|
1460
|
+
end
|
1461
|
+
|
1362
1462
|
# 用户自定义混流布局参数列表。
|
1363
1463
|
class MixLayout < TencentCloud::Common::AbstractModel
|
1364
1464
|
# @param Top: 画布上该画面左上角的 y 轴坐标,取值范围 [0, 1920],不能超过画布的高。
|
@@ -2054,6 +2154,44 @@ module TencentCloud
|
|
2054
2154
|
end
|
2055
2155
|
end
|
2056
2156
|
|
2157
|
+
# SdkAppId级别实时音视频的用量数据
|
2158
|
+
class SdkAppIdNewTrtcTimeUsage < TencentCloud::Common::AbstractModel
|
2159
|
+
# @param SdkAppId: SdkAppId的值。
|
2160
|
+
# @type SdkAppId: String
|
2161
|
+
# @param TrtcTimeUsages: 统计的时间点数据。
|
2162
|
+
# @type TrtcTimeUsages: Array
|
2163
|
+
# @param AudienceTrtcTimeUsages: 统计的麦下用量的时间点数据。
|
2164
|
+
# @type AudienceTrtcTimeUsages: Array
|
2165
|
+
|
2166
|
+
attr_accessor :SdkAppId, :TrtcTimeUsages, :AudienceTrtcTimeUsages
|
2167
|
+
|
2168
|
+
def initialize(sdkappid=nil, trtctimeusages=nil, audiencetrtctimeusages=nil)
|
2169
|
+
@SdkAppId = sdkappid
|
2170
|
+
@TrtcTimeUsages = trtctimeusages
|
2171
|
+
@AudienceTrtcTimeUsages = audiencetrtctimeusages
|
2172
|
+
end
|
2173
|
+
|
2174
|
+
def deserialize(params)
|
2175
|
+
@SdkAppId = params['SdkAppId']
|
2176
|
+
unless params['TrtcTimeUsages'].nil?
|
2177
|
+
@TrtcTimeUsages = []
|
2178
|
+
params['TrtcTimeUsages'].each do |i|
|
2179
|
+
trtctimenewusage_tmp = TrtcTimeNewUsage.new
|
2180
|
+
trtctimenewusage_tmp.deserialize(i)
|
2181
|
+
@TrtcTimeUsages << trtctimenewusage_tmp
|
2182
|
+
end
|
2183
|
+
end
|
2184
|
+
unless params['AudienceTrtcTimeUsages'].nil?
|
2185
|
+
@AudienceTrtcTimeUsages = []
|
2186
|
+
params['AudienceTrtcTimeUsages'].each do |i|
|
2187
|
+
trtctimenewusage_tmp = TrtcTimeNewUsage.new
|
2188
|
+
trtctimenewusage_tmp.deserialize(i)
|
2189
|
+
@AudienceTrtcTimeUsages << trtctimenewusage_tmp
|
2190
|
+
end
|
2191
|
+
end
|
2192
|
+
end
|
2193
|
+
end
|
2194
|
+
|
2057
2195
|
# SdkAppId级别录制时长数据。
|
2058
2196
|
class SdkAppIdRecordUsage < TencentCloud::Common::AbstractModel
|
2059
2197
|
# @param SdkAppId: SdkAppId的值。
|
@@ -2498,6 +2636,58 @@ module TencentCloud
|
|
2498
2636
|
end
|
2499
2637
|
end
|
2500
2638
|
|
2639
|
+
# 实时音视频用量的某一时间段的统计信息.
|
2640
|
+
class TrtcTimeNewUsage < TencentCloud::Common::AbstractModel
|
2641
|
+
# @param TimeKey: 时间点。
|
2642
|
+
# @type TimeKey: String
|
2643
|
+
# @param VoiceUserNum: 通话人数。仅供参考。在线人数以仪表盘查询结果为准。
|
2644
|
+
# @type VoiceUserNum: Integer
|
2645
|
+
# @param VideoTime: 音视频通话时长。单位:秒。
|
2646
|
+
# @type VideoTime: Integer
|
2647
|
+
# @param Class1VideoTime: 标清视频通话时长。单位:秒。
|
2648
|
+
# @type Class1VideoTime: Integer
|
2649
|
+
# @param Class2VideoTime: 高清视频通话时长。单位:秒。
|
2650
|
+
# @type Class2VideoTime: Integer
|
2651
|
+
# @param Class3VideoTime: 超高清视频通话时长。单位:秒。
|
2652
|
+
# @type Class3VideoTime: Integer
|
2653
|
+
# @param AudioTime: 音频通话时长。单位:秒。
|
2654
|
+
# @type AudioTime: Integer
|
2655
|
+
# @param Bandwidth: 带宽。单位:Mbps。
|
2656
|
+
# @type Bandwidth: Float
|
2657
|
+
# @param Video2KTime: 2k视频通话时长。单位:秒。
|
2658
|
+
# @type Video2KTime: Integer
|
2659
|
+
# @param Video4KTime: 4k视频通话时长。单位:秒。
|
2660
|
+
# @type Video4KTime: Integer
|
2661
|
+
|
2662
|
+
attr_accessor :TimeKey, :VoiceUserNum, :VideoTime, :Class1VideoTime, :Class2VideoTime, :Class3VideoTime, :AudioTime, :Bandwidth, :Video2KTime, :Video4KTime
|
2663
|
+
|
2664
|
+
def initialize(timekey=nil, voiceusernum=nil, videotime=nil, class1videotime=nil, class2videotime=nil, class3videotime=nil, audiotime=nil, bandwidth=nil, video2ktime=nil, video4ktime=nil)
|
2665
|
+
@TimeKey = timekey
|
2666
|
+
@VoiceUserNum = voiceusernum
|
2667
|
+
@VideoTime = videotime
|
2668
|
+
@Class1VideoTime = class1videotime
|
2669
|
+
@Class2VideoTime = class2videotime
|
2670
|
+
@Class3VideoTime = class3videotime
|
2671
|
+
@AudioTime = audiotime
|
2672
|
+
@Bandwidth = bandwidth
|
2673
|
+
@Video2KTime = video2ktime
|
2674
|
+
@Video4KTime = video4ktime
|
2675
|
+
end
|
2676
|
+
|
2677
|
+
def deserialize(params)
|
2678
|
+
@TimeKey = params['TimeKey']
|
2679
|
+
@VoiceUserNum = params['VoiceUserNum']
|
2680
|
+
@VideoTime = params['VideoTime']
|
2681
|
+
@Class1VideoTime = params['Class1VideoTime']
|
2682
|
+
@Class2VideoTime = params['Class2VideoTime']
|
2683
|
+
@Class3VideoTime = params['Class3VideoTime']
|
2684
|
+
@AudioTime = params['AudioTime']
|
2685
|
+
@Bandwidth = params['Bandwidth']
|
2686
|
+
@Video2KTime = params['Video2KTime']
|
2687
|
+
@Video4KTime = params['Video4KTime']
|
2688
|
+
end
|
2689
|
+
end
|
2690
|
+
|
2501
2691
|
# 用户信息,包括用户进房时间,退房时间等
|
2502
2692
|
class UserInformation < TencentCloud::Common::AbstractModel
|
2503
2693
|
# @param RoomStr: 房间号
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-trtc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.327
|
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-06-
|
11
|
+
date: 2022-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|