lib/v20190722/client.rb in tencentcloud-sdk-trtc-3.0.443 vs lib/v20190722/client.rb in tencentcloud-sdk-trtc-3.0.444

- old
+ new

@@ -402,9 +402,130 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 查询TRTC监控仪表盘-数据大盘质量指标(包括下列指标) + # joinSuccessRate:加入频道成功率。 + # joinSuccessIn5sRate:5s内加入频道成功率。 + # audioFreezeRate:音频卡顿率。 + # videoFreezeRate:视频卡顿率。 + # networkDelay :网络延迟率。 + # 注意: + # 1.调用接口需开通监控仪表盘【基础版】和【进阶版】,监控仪表盘【免费版】不支持调用,监控仪表盘版本功能和计费说明:https://cloud.tencent.com/document/product/647/81331。 + # 2、查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天。 + + # @param request: Request instance for DescribeTRTCMarketQualityMetricData. + # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCMarketQualityMetricDataRequest` + # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCMarketQualityMetricDataResponse` + def DescribeTRTCMarketQualityMetricData(request) + body = send_request('DescribeTRTCMarketQualityMetricData', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeTRTCMarketQualityMetricDataResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + + # 查询TRTC监控仪表盘-数据大盘规模指标(会返回通话人数,通话房间数,峰值同时在线人数,峰值同时在线频道数) + # userCount:通话人数, + # roomCount:通话房间数,从有用户加入频道到所有用户离开频道计为一个通话频道。 + # peakCurrentChannels:峰值同时在线频道数。 + # peakCurrentUsers:峰值同时在线人数。 + # 注意: + # 1.调用接口需开通监控仪表盘【基础版】和【进阶版】,监控仪表盘【免费版】不支持调用,监控仪表盘版本功能和计费说明:https://cloud.tencent.com/document/product/647/81331。 + # 2、查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天。 + + # @param request: Request instance for DescribeTRTCMarketScaleMetricData. + # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCMarketScaleMetricDataRequest` + # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCMarketScaleMetricDataResponse` + def DescribeTRTCMarketScaleMetricData(request) + body = send_request('DescribeTRTCMarketScaleMetricData', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeTRTCMarketScaleMetricDataResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + + # 查询TRTC监控仪表盘-实时监控质量指标(会返回下列指标) + # -视频卡顿率 + # -音频卡顿率 + # 注意: + # 1.调用接口需开通监控仪表盘【基础版】和【进阶版】,监控仪表盘【免费版】不支持调用,监控仪表盘版本功能和计费说明:https://cloud.tencent.com/document/product/647/81331。 + # 2、查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时。 + + # @param request: Request instance for DescribeTRTCRealTimeQualityMetricData. + # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCRealTimeQualityMetricDataRequest` + # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCRealTimeQualityMetricDataResponse` + def DescribeTRTCRealTimeQualityMetricData(request) + body = send_request('DescribeTRTCRealTimeQualityMetricData', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeTRTCRealTimeQualityMetricDataResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + + # 查询TRTC监控仪表盘-实时监控规模指标(会返回下列指标) + # -userCount(在线用户数) + # -roomCount(在线房间数) + # 注意: + # 1.调用接口需开通监控仪表盘【基础版】和【进阶版】,监控仪表盘【免费版】不支持调用,监控仪表盘版本功能和计费说明:https://cloud.tencent.com/document/product/647/81331。 + # 2、查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时。 + + # @param request: Request instance for DescribeTRTCRealTimeScaleMetricData. + # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCRealTimeScaleMetricDataRequest` + # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCRealTimeScaleMetricDataResponse` + def DescribeTRTCRealTimeScaleMetricData(request) + body = send_request('DescribeTRTCRealTimeScaleMetricData', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = DescribeTRTCRealTimeScaleMetricDataResponse.new + model.deserialize(response['Response']) + model + else + code = response['Response']['Error']['Code'] + message = response['Response']['Error']['Message'] + reqid = response['Response']['RequestId'] + raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid) + end + rescue TencentCloud::Common::TencentCloudSDKException => e + raise e + rescue StandardError => e + raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) + end + # 查询旁路转码计费时长。 # - 查询时间小于等于1天时,返回每5分钟粒度的数据;查询时间大于1天时,返回按天汇总的数据。 # - 单次查询统计区间最多不能超过31天。 # - 若查询当天用量,由于统计延迟等原因,返回数据可能不够准确。 # - 日结后付费将于次日上午推送账单,建议次日上午9点以后再来查询前一天的用量。 \ No newline at end of file