class TencentCloud::Tsf::V20180326::MetricDataPointMap

监控统计数据点Map集合(单元化网关使用)

def deserialize(params)

def deserialize(params)
  unless params['SumReqAmount'].nil?
    @SumReqAmount = []
    params['SumReqAmount'].each do |i|
      metricdatapoint_tmp = MetricDataPoint.new
      metricdatapoint_tmp.deserialize(i)
      @SumReqAmount << metricdatapoint_tmp
    end
  end
  unless params['AvgFailureRate'].nil?
    @AvgFailureRate = []
    params['AvgFailureRate'].each do |i|
      metricdatapoint_tmp = MetricDataPoint.new
      metricdatapoint_tmp.deserialize(i)
      @AvgFailureRate << metricdatapoint_tmp
    end
  end
  unless params['AvgTimeCost'].nil?
    @AvgTimeCost = []
    params['AvgTimeCost'].each do |i|
      metricdatapoint_tmp = MetricDataPoint.new
      metricdatapoint_tmp.deserialize(i)
      @AvgTimeCost << metricdatapoint_tmp
    end
  end
end

def initialize(sumreqamount=nil, avgfailurerate=nil, avgtimecost=nil)

def initialize(sumreqamount=nil, avgfailurerate=nil, avgtimecost=nil)
  @SumReqAmount = sumreqamount
  @AvgFailureRate = avgfailurerate
  @AvgTimeCost = avgtimecost
end