lib/v20190722/client.rb in tencentcloud-sdk-trtc-3.0.644 vs lib/v20190722/client.rb in tencentcloud-sdk-trtc-3.0.645
- old
+ new
@@ -387,10 +387,42 @@
# networkDelay :网络延迟率。
# 注意:
# 1.调用接口需开通监控仪表盘【基础版】和【进阶版】,监控仪表盘【免费版】不支持调用,监控仪表盘版本功能和计费说明:https://cloud.tencent.com/document/product/647/81331。
# 2.查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天。
+ # @param request: Request instance for DescribeTRTCMarketQualityData.
+ # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCMarketQualityDataRequest`
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCMarketQualityDataResponse`
+ def DescribeTRTCMarketQualityData(request)
+ body = send_request('DescribeTRTCMarketQualityData', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = DescribeTRTCMarketQualityDataResponse.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监控仪表盘-数据大盘质量指标(包括下列指标)
+ # 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)
@@ -418,10 +450,41 @@
# peakCurrentUsers:峰值同时在线人数。
# 注意:
# 1.调用接口需开通监控仪表盘【基础版】和【进阶版】,监控仪表盘【免费版】不支持调用,监控仪表盘版本功能和计费说明:https://cloud.tencent.com/document/product/647/81331。
# 2.查询时间范围根据监控仪表盘功能版本而定,【基础版】可查近30天,【进阶版】可查近60天。
+ # @param request: Request instance for DescribeTRTCMarketScaleData.
+ # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCMarketScaleDataRequest`
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCMarketScaleDataResponse`
+ def DescribeTRTCMarketScaleData(request)
+ body = send_request('DescribeTRTCMarketScaleData', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = DescribeTRTCMarketScaleDataResponse.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)
@@ -447,17 +510,77 @@
# -音频卡顿率
# 注意:
# 1.调用接口需开通监控仪表盘【基础版】和【进阶版】,监控仪表盘【免费版】不支持调用,监控仪表盘版本功能和计费说明:https://cloud.tencent.com/document/product/647/81331。
# 2.查询时间范围根据监控仪表盘功能版本而定,基础版可查近3小时,进阶版可查近12小时。
+ # @param request: Request instance for DescribeTRTCRealTimeQualityData.
+ # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCRealTimeQualityDataRequest`
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCRealTimeQualityDataResponse`
+ def DescribeTRTCRealTimeQualityData(request)
+ body = send_request('DescribeTRTCRealTimeQualityData', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = DescribeTRTCRealTimeQualityDataResponse.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小时。
+ # xa0
+ # 3.除此之外您也可以通过订阅TRTC包月套餐(https://buy.cloud.tencent.com/trtc)尊享版或旗舰版解锁此接口的调用能力,请在开通包月套餐后,请提交工单联系售后解锁调用能力https://console.cloud.tencent.com/workorder/category
+
+ # @param request: Request instance for DescribeTRTCRealTimeScaleData.
+ # @type request: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCRealTimeScaleDataRequest`
+ # @rtype: :class:`Tencentcloud::trtc::V20190722::DescribeTRTCRealTimeScaleDataResponse`
+ def DescribeTRTCRealTimeScaleData(request)
+ body = send_request('DescribeTRTCRealTimeScaleData', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = DescribeTRTCRealTimeScaleDataResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
\ No newline at end of file