def DescribeRealtimeScale(self, request): """查询sdkappid维度下实时规模,可查询24小时内数据,查询起止时间不超过1个小时。 :param request: Request instance for DescribeRealtimeScale. :type request: :class:`tencentcloud.trtc.v20190722.models.DescribeRealtimeScaleRequest` :rtype: :class:`tencentcloud.trtc.v20190722.models.DescribeRealtimeScaleResponse` """ try: params = request._serialize() body = self.call("DescribeRealtimeScale", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeRealtimeScaleResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def DescribeRealtimeScale(self, request): """This API is used to query the real-time scale for the last 24 hours according to `sdkappid`. The query time range cannot exceed 1 hour. :param request: Request instance for DescribeRealtimeScale. :type request: :class:`tencentcloud.trtc.v20190722.models.DescribeRealtimeScaleRequest` :rtype: :class:`tencentcloud.trtc.v20190722.models.DescribeRealtimeScaleResponse` """ try: params = request._serialize() body = self.call("DescribeRealtimeScale", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.DescribeRealtimeScaleResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)