class TencentCloud::Tsf::V20180326::GroupUnitApiDailyUseStatistics
单元化API使用详情统计对象列表
def deserialize(params)
def deserialize(params) @NamespaceId = params['NamespaceId'] @NamespaceName = params['NamespaceName'] @SumReqAmount = params['SumReqAmount'] @AvgFailureRate = params['AvgFailureRate'] @AvgTimeCost = params['AvgTimeCost'] unless params['MetricDataPointMap'].nil? @MetricDataPointMap = MetricDataPointMap.new @MetricDataPointMap.deserialize(params['MetricDataPointMap']) end unless params['TopStatusCode'].nil? @TopStatusCode = [] params['TopStatusCode'].each do |i| apiusestatisticsentity_tmp = ApiUseStatisticsEntity.new apiusestatisticsentity_tmp.deserialize(i) @TopStatusCode << apiusestatisticsentity_tmp end end unless params['TopTimeCost'].nil? @TopTimeCost = [] params['TopTimeCost'].each do |i| apiusestatisticsentity_tmp = ApiUseStatisticsEntity.new apiusestatisticsentity_tmp.deserialize(i) @TopTimeCost << apiusestatisticsentity_tmp end end unless params['Quantile'].nil? @Quantile = QuantileEntity.new @Quantile.deserialize(params['Quantile']) end end
def initialize(namespaceid=nil, namespacename=nil, sumreqamount=nil, avgfailurerate=nil, avgtimecost=nil, metricdatapointmap=nil, topstatuscode=nil, toptimecost=nil, quantile=nil)
def initialize(namespaceid=nil, namespacename=nil, sumreqamount=nil, avgfailurerate=nil, avgtimecost=nil, metricdatapointmap=nil, topstatuscode=nil, toptimecost=nil, quantile=nil) @NamespaceId = namespaceid @NamespaceName = namespacename @SumReqAmount = sumreqamount @AvgFailureRate = avgfailurerate @AvgTimeCost = avgtimecost @MetricDataPointMap = metricdatapointmap @TopStatusCode = topstatuscode @TopTimeCost = toptimecost @Quantile = quantile end