tencentcloud-sdk-live 1.0.263 → 1.0.264

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5209db79c2dfb41a0294170719db007144301c30
4
- data.tar.gz: 8cb9d25aa49e4bcf3ceb215af3f462a7ca89832b
3
+ metadata.gz: c1292fad391504611eb5f3f6eb12a3bd7c408512
4
+ data.tar.gz: 77cb773f777f0c34eeffb4b314afa76e61a1267f
5
5
  SHA512:
6
- metadata.gz: 44136df6de0976d7fbb595f89fccfab667e566189e220b9058b8b974437db214fe8fbbfe6aacd3613647bde3f451927fe210fd4bfedb41266a15e8e7256ea803
7
- data.tar.gz: b427b651d25af13e6ec34efbd88d2cc56dc6ce2f7397956a94657e21d23e86d20f1c67ed5e577a0bcb8237fec9d681f545751eb5b08d5d4eabb0219f996fce7f
6
+ metadata.gz: eb323445fcb9d762e6e1bb0277557f3abe6d3303e7dd92f7f2e3fecc9c137c39f67d805934e72f5ba295ac487f18dde4dcf1f8bcff72cc5c4a90915799b74875
7
+ data.tar.gz: 21f2b74324344ad875b02b894d33592e0536917f47174e39566ccdbddec41eb96d2edebc2e220b2d05401ac329e91e5e96cf621464fb58ad95aae3277f898a8d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.263
1
+ 1.0.264
@@ -561,6 +561,36 @@ module TencentCloud
561
561
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
562
562
  end
563
563
 
564
+ # 创建一个在指定时间启动、结束的截图任务,并使用指定截图模板ID对应的配置进行截图。
565
+ # - 注意事项
566
+ # 1. 断流会结束当前截图。在结束时间到达之前任务仍然有效,期间只要正常推流都会正常截图,与是否多次推、断流无关。
567
+ # 2. 使用上避免创建时间段相互重叠的截图任务。若同一条流当前存在多个时段重叠的任务,为避免重复系统将启动最多3个截图任务。
568
+ # 3. 创建的截图任务记录在平台侧只保留3个月。
569
+ # 4. 当前截图任务管理API(CreateScreenshotTask/StopScreenshotTask/DeleteScreenshotTask)与旧API(CreateLiveInstantSnapshot/StopLiveInstantSnapshot)不兼容,两套接口不能混用。
570
+ # 5. 避免 创建截图任务 与 推流 操作同时进行,可能导致因截图任务未生效而引起任务延迟启动问题,两者操作间隔建议大于3秒。
571
+
572
+ # @param request: Request instance for CreateScreenshotTask.
573
+ # @type request: :class:`Tencentcloud::live::V20180801::CreateScreenshotTaskRequest`
574
+ # @rtype: :class:`Tencentcloud::live::V20180801::CreateScreenshotTaskResponse`
575
+ def CreateScreenshotTask(request)
576
+ body = send_request('CreateScreenshotTask', request.serialize)
577
+ response = JSON.parse(body)
578
+ if response['Response'].key?('Error') == false
579
+ model = CreateScreenshotTaskResponse.new
580
+ model.deserialize(response['Response'])
581
+ model
582
+ else
583
+ code = response['Response']['Error']['Code']
584
+ message = response['Response']['Error']['Message']
585
+ reqid = response['Response']['RequestId']
586
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
587
+ end
588
+ rescue TencentCloud::Common::TencentCloudSDKException => e
589
+ raise e
590
+ rescue StandardError => e
591
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
592
+ end
593
+
564
594
  # 删除回调规则。
565
595
 
566
596
  # @param request: Request instance for DeleteLiveCallbackRule.
@@ -949,6 +979,30 @@ module TencentCloud
949
979
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
950
980
  end
951
981
 
982
+ # 删除截图任务配置。删除操作不影响正在运行当中的任务,仅对删除之后新的推流有效。
983
+
984
+ # @param request: Request instance for DeleteScreenshotTask.
985
+ # @type request: :class:`Tencentcloud::live::V20180801::DeleteScreenshotTaskRequest`
986
+ # @rtype: :class:`Tencentcloud::live::V20180801::DeleteScreenshotTaskResponse`
987
+ def DeleteScreenshotTask(request)
988
+ body = send_request('DeleteScreenshotTask', request.serialize)
989
+ response = JSON.parse(body)
990
+ if response['Response'].key?('Error') == false
991
+ model = DeleteScreenshotTaskResponse.new
992
+ model.deserialize(response['Response'])
993
+ model
994
+ else
995
+ code = response['Response']['Error']['Code']
996
+ message = response['Response']['Error']['Message']
997
+ reqid = response['Response']['RequestId']
998
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
999
+ end
1000
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1001
+ raise e
1002
+ rescue StandardError => e
1003
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1004
+ end
1005
+
952
1006
  # 输入某个时间点(1分钟维度),查询该时间点所有流的下行信息。
953
1007
 
954
1008
  # @param request: Request instance for DescribeAllStreamPlayInfoList.
@@ -2228,6 +2282,33 @@ module TencentCloud
2228
2282
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2229
2283
  end
2230
2284
 
2285
+ # 查询指定时间段范围内启动和结束的截图任务列表。
2286
+ # - 使用前提
2287
+ # 1. 仅用于查询由 CreateScreenshotTask接口创建的截图任务。
2288
+ # 2. 不能查询被 DeleteScreenshotTask接口删除以及已过期(平台侧保留3个月)的截图任务。
2289
+
2290
+ # @param request: Request instance for DescribeScreenshotTask.
2291
+ # @type request: :class:`Tencentcloud::live::V20180801::DescribeScreenshotTaskRequest`
2292
+ # @rtype: :class:`Tencentcloud::live::V20180801::DescribeScreenshotTaskResponse`
2293
+ def DescribeScreenshotTask(request)
2294
+ body = send_request('DescribeScreenshotTask', request.serialize)
2295
+ response = JSON.parse(body)
2296
+ if response['Response'].key?('Error') == false
2297
+ model = DescribeScreenshotTaskResponse.new
2298
+ model.deserialize(response['Response'])
2299
+ model
2300
+ else
2301
+ code = response['Response']['Error']['Code']
2302
+ message = response['Response']['Error']['Message']
2303
+ reqid = response['Response']['RequestId']
2304
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2305
+ end
2306
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2307
+ raise e
2308
+ rescue StandardError => e
2309
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2310
+ end
2311
+
2231
2312
  # 查询天维度每条流的播放数据,包括总流量等。
2232
2313
 
2233
2314
  # @param request: Request instance for DescribeStreamDayPlayInfoList.
@@ -2880,6 +2961,30 @@ module TencentCloud
2880
2961
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2881
2962
  end
2882
2963
 
2964
+ # 提前结束截图,中止运行中的截图任务。任务被成功终止后,本次任务将不再启动。
2965
+
2966
+ # @param request: Request instance for StopScreenshotTask.
2967
+ # @type request: :class:`Tencentcloud::live::V20180801::StopScreenshotTaskRequest`
2968
+ # @rtype: :class:`Tencentcloud::live::V20180801::StopScreenshotTaskResponse`
2969
+ def StopScreenshotTask(request)
2970
+ body = send_request('StopScreenshotTask', request.serialize)
2971
+ response = JSON.parse(body)
2972
+ if response['Response'].key?('Error') == false
2973
+ model = StopScreenshotTaskResponse.new
2974
+ model.deserialize(response['Response'])
2975
+ model
2976
+ else
2977
+ code = response['Response']['Error']['Code']
2978
+ message = response['Response']['Error']['Message']
2979
+ reqid = response['Response']['RequestId']
2980
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2981
+ end
2982
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2983
+ raise e
2984
+ rescue StandardError => e
2985
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2986
+ end
2987
+
2883
2988
  # 解绑域名证书
2884
2989
 
2885
2990
  # @param request: Request instance for UnBindLiveDomainCert.
@@ -1962,6 +1962,72 @@ module TencentCloud
1962
1962
  end
1963
1963
  end
1964
1964
 
1965
+ # CreateScreenshotTask请求参数结构体
1966
+ class CreateScreenshotTaskRequest < TencentCloud::Common::AbstractModel
1967
+ # @param StreamName: 流名称。
1968
+ # @type StreamName: String
1969
+ # @param DomainName: 推流域名。
1970
+ # @type DomainName: String
1971
+ # @param AppName: 推流路径。
1972
+ # @type AppName: String
1973
+ # @param EndTime: 截图任务结束时间,Unix时间戳。设置时间必须大于StartTime及当前时间,且EndTime - StartTime不能超过24小时。
1974
+ # @type EndTime: Integer
1975
+ # @param TemplateId: 截图模板ID,CreateLiveSnapshotTemplate 返回值。如果传入错误ID,则不拉起截图。
1976
+ # @type TemplateId: Integer
1977
+ # @param StartTime: 截图任务开始时间,Unix时间戳。如果不填表示立即启动截图。StartTime不能超过当前时间+6天。
1978
+ # @type StartTime: Integer
1979
+ # @param StreamType: 推流类型,默认0。取值:
1980
+ # 0-直播推流。
1981
+ # 1-合成流,即 A+B=C 类型混流。
1982
+ # @type StreamType: Integer
1983
+ # @param Extension: 扩展字段,暂无定义。默认为空。
1984
+ # @type Extension: String
1985
+
1986
+ attr_accessor :StreamName, :DomainName, :AppName, :EndTime, :TemplateId, :StartTime, :StreamType, :Extension
1987
+
1988
+ def initialize(streamname=nil, domainname=nil, appname=nil, endtime=nil, templateid=nil, starttime=nil, streamtype=nil, extension=nil)
1989
+ @StreamName = streamname
1990
+ @DomainName = domainname
1991
+ @AppName = appname
1992
+ @EndTime = endtime
1993
+ @TemplateId = templateid
1994
+ @StartTime = starttime
1995
+ @StreamType = streamtype
1996
+ @Extension = extension
1997
+ end
1998
+
1999
+ def deserialize(params)
2000
+ @StreamName = params['StreamName']
2001
+ @DomainName = params['DomainName']
2002
+ @AppName = params['AppName']
2003
+ @EndTime = params['EndTime']
2004
+ @TemplateId = params['TemplateId']
2005
+ @StartTime = params['StartTime']
2006
+ @StreamType = params['StreamType']
2007
+ @Extension = params['Extension']
2008
+ end
2009
+ end
2010
+
2011
+ # CreateScreenshotTask返回参数结构体
2012
+ class CreateScreenshotTaskResponse < TencentCloud::Common::AbstractModel
2013
+ # @param TaskId: 任务ID,全局唯一标识截图任务。返回TaskId字段说明截图任务创建成功。
2014
+ # @type TaskId: String
2015
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2016
+ # @type RequestId: String
2017
+
2018
+ attr_accessor :TaskId, :RequestId
2019
+
2020
+ def initialize(taskid=nil, requestid=nil)
2021
+ @TaskId = taskid
2022
+ @RequestId = requestid
2023
+ end
2024
+
2025
+ def deserialize(params)
2026
+ @TaskId = params['TaskId']
2027
+ @RequestId = params['RequestId']
2028
+ end
2029
+ end
2030
+
1965
2031
  # 流播放信息
1966
2032
  class DayStreamPlayInfo < TencentCloud::Common::AbstractModel
1967
2033
  # @param Time: 数据时间点,格式:yyyy-mm-dd HH:MM:SS。
@@ -2618,6 +2684,38 @@ module TencentCloud
2618
2684
  end
2619
2685
  end
2620
2686
 
2687
+ # DeleteScreenshotTask请求参数结构体
2688
+ class DeleteScreenshotTaskRequest < TencentCloud::Common::AbstractModel
2689
+ # @param TaskId: 任务ID,CreateScreenshotTask返回。删除TaskId指定的截图任务。
2690
+ # @type TaskId: String
2691
+
2692
+ attr_accessor :TaskId
2693
+
2694
+ def initialize(taskid=nil)
2695
+ @TaskId = taskid
2696
+ end
2697
+
2698
+ def deserialize(params)
2699
+ @TaskId = params['TaskId']
2700
+ end
2701
+ end
2702
+
2703
+ # DeleteScreenshotTask返回参数结构体
2704
+ class DeleteScreenshotTaskResponse < TencentCloud::Common::AbstractModel
2705
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2706
+ # @type RequestId: String
2707
+
2708
+ attr_accessor :RequestId
2709
+
2710
+ def initialize(requestid=nil)
2711
+ @RequestId = requestid
2712
+ end
2713
+
2714
+ def deserialize(params)
2715
+ @RequestId = params['RequestId']
2716
+ end
2717
+ end
2718
+
2621
2719
  # DescribeAllStreamPlayInfoList请求参数结构体
2622
2720
  class DescribeAllStreamPlayInfoListRequest < TencentCloud::Common::AbstractModel
2623
2721
  # @param QueryTime: 查询时间点,精确到分钟粒度,支持最近1个月的数据查询,数据延迟为5分钟左右,如果要查询实时的数据,建议传递5分钟前的时间点,格式为yyyy-mm-dd HH:MM:00。(只精确至分钟,秒数填00)。
@@ -5716,6 +5814,73 @@ module TencentCloud
5716
5814
  end
5717
5815
  end
5718
5816
 
5817
+ # DescribeScreenshotTask请求参数结构体
5818
+ class DescribeScreenshotTaskRequest < TencentCloud::Common::AbstractModel
5819
+ # @param StartTime: 查询任务开始时间,Unix 时间戳。设置时间不早于当前时间之前90天的时间,且查询时间跨度不超过一周。
5820
+ # @type StartTime: Integer
5821
+ # @param EndTime: 查询任务结束时间,Unix 时间戳。EndTime 必须大于 StartTime,设置时间不早于当前时间之前90天的时间,且查询时间跨度不超过一周。(注意:任务开始结束时间必须在查询时间范围内)。
5822
+ # @type EndTime: Integer
5823
+ # @param StreamName: 流名称。
5824
+ # @type StreamName: String
5825
+ # @param DomainName: 推流域名。
5826
+ # @type DomainName: String
5827
+ # @param AppName: 推流路径。
5828
+ # @type AppName: String
5829
+ # @param ScrollToken: 翻页标识,分批拉取时使用:当单次请求无法拉取所有数据,接口将会返回 ScrollToken,下一次请求携带该 Token,将会从下一条记录开始获取。
5830
+ # @type ScrollToken: String
5831
+
5832
+ attr_accessor :StartTime, :EndTime, :StreamName, :DomainName, :AppName, :ScrollToken
5833
+
5834
+ def initialize(starttime=nil, endtime=nil, streamname=nil, domainname=nil, appname=nil, scrolltoken=nil)
5835
+ @StartTime = starttime
5836
+ @EndTime = endtime
5837
+ @StreamName = streamname
5838
+ @DomainName = domainname
5839
+ @AppName = appname
5840
+ @ScrollToken = scrolltoken
5841
+ end
5842
+
5843
+ def deserialize(params)
5844
+ @StartTime = params['StartTime']
5845
+ @EndTime = params['EndTime']
5846
+ @StreamName = params['StreamName']
5847
+ @DomainName = params['DomainName']
5848
+ @AppName = params['AppName']
5849
+ @ScrollToken = params['ScrollToken']
5850
+ end
5851
+ end
5852
+
5853
+ # DescribeScreenshotTask返回参数结构体
5854
+ class DescribeScreenshotTaskResponse < TencentCloud::Common::AbstractModel
5855
+ # @param ScrollToken: 翻页标识,当请求未返回所有数据,该字段表示下一条记录的 Token。当该字段为空,说明已无更多数据。
5856
+ # @type ScrollToken: String
5857
+ # @param TaskList: 截图任务列表。当该字段为空,说明已返回所有数据。
5858
+ # @type TaskList: Array
5859
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5860
+ # @type RequestId: String
5861
+
5862
+ attr_accessor :ScrollToken, :TaskList, :RequestId
5863
+
5864
+ def initialize(scrolltoken=nil, tasklist=nil, requestid=nil)
5865
+ @ScrollToken = scrolltoken
5866
+ @TaskList = tasklist
5867
+ @RequestId = requestid
5868
+ end
5869
+
5870
+ def deserialize(params)
5871
+ @ScrollToken = params['ScrollToken']
5872
+ unless params['TaskList'].nil?
5873
+ @TaskList = []
5874
+ params['TaskList'].each do |i|
5875
+ screenshottask_tmp = ScreenshotTask.new
5876
+ screenshottask_tmp.deserialize(i)
5877
+ @TaskList << screenshottask_tmp
5878
+ end
5879
+ end
5880
+ @RequestId = params['RequestId']
5881
+ end
5882
+ end
5883
+
5719
5884
  # DescribeStreamDayPlayInfoList请求参数结构体
5720
5885
  class DescribeStreamDayPlayInfoListRequest < TencentCloud::Common::AbstractModel
5721
5886
  # @param DayTime: 日期,格式:YYYY-mm-dd。
@@ -8681,6 +8846,50 @@ module TencentCloud
8681
8846
  end
8682
8847
  end
8683
8848
 
8849
+ # 截图任务
8850
+ class ScreenshotTask < TencentCloud::Common::AbstractModel
8851
+ # @param TaskId: 截图任务ID。
8852
+ # @type TaskId: String
8853
+ # @param DomainName: 推流域名。
8854
+ # @type DomainName: String
8855
+ # @param AppName: 推流路径。
8856
+ # @type AppName: String
8857
+ # @param StreamName: 流名称。
8858
+ # @type StreamName: String
8859
+ # @param StartTime: 任务开始时间,Unix时间戳。
8860
+ # @type StartTime: Integer
8861
+ # @param EndTime: 任务结束时间,Unix时间戳。
8862
+ # @type EndTime: Integer
8863
+ # @param TemplateId: 截图模板ID。
8864
+ # @type TemplateId: Integer
8865
+ # @param Stopped: 调用 StopScreenshotTask 停止任务时间,Unix时间戳。值为0表示未曾调用接口停止任务。
8866
+ # @type Stopped: Integer
8867
+
8868
+ attr_accessor :TaskId, :DomainName, :AppName, :StreamName, :StartTime, :EndTime, :TemplateId, :Stopped
8869
+
8870
+ def initialize(taskid=nil, domainname=nil, appname=nil, streamname=nil, starttime=nil, endtime=nil, templateid=nil, stopped=nil)
8871
+ @TaskId = taskid
8872
+ @DomainName = domainname
8873
+ @AppName = appname
8874
+ @StreamName = streamname
8875
+ @StartTime = starttime
8876
+ @EndTime = endtime
8877
+ @TemplateId = templateid
8878
+ @Stopped = stopped
8879
+ end
8880
+
8881
+ def deserialize(params)
8882
+ @TaskId = params['TaskId']
8883
+ @DomainName = params['DomainName']
8884
+ @AppName = params['AppName']
8885
+ @StreamName = params['StreamName']
8886
+ @StartTime = params['StartTime']
8887
+ @EndTime = params['EndTime']
8888
+ @TemplateId = params['TemplateId']
8889
+ @Stopped = params['Stopped']
8890
+ end
8891
+ end
8892
+
8684
8893
  # 截图模板信息。
8685
8894
  class SnapshotTemplateInfo < TencentCloud::Common::AbstractModel
8686
8895
  # @param TemplateId: 模板 ID。
@@ -8813,6 +9022,38 @@ module TencentCloud
8813
9022
  end
8814
9023
  end
8815
9024
 
9025
+ # StopScreenshotTask请求参数结构体
9026
+ class StopScreenshotTaskRequest < TencentCloud::Common::AbstractModel
9027
+ # @param TaskId: 截图任务ID。
9028
+ # @type TaskId: String
9029
+
9030
+ attr_accessor :TaskId
9031
+
9032
+ def initialize(taskid=nil)
9033
+ @TaskId = taskid
9034
+ end
9035
+
9036
+ def deserialize(params)
9037
+ @TaskId = params['TaskId']
9038
+ end
9039
+ end
9040
+
9041
+ # StopScreenshotTask返回参数结构体
9042
+ class StopScreenshotTaskResponse < TencentCloud::Common::AbstractModel
9043
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9044
+ # @type RequestId: String
9045
+
9046
+ attr_accessor :RequestId
9047
+
9048
+ def initialize(requestid=nil)
9049
+ @RequestId = requestid
9050
+ end
9051
+
9052
+ def deserialize(params)
9053
+ @RequestId = params['RequestId']
9054
+ end
9055
+ end
9056
+
8816
9057
  # 推断流事件信息。
8817
9058
  class StreamEventInfo < TencentCloud::Common::AbstractModel
8818
9059
  # @param AppName: 应用名称。
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: 1.0.263
4
+ version: 1.0.264
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-02-23 00:00:00.000000000 Z
11
+ date: 2022-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common