Class: TencentCloud::Cdn::V20180606::BotStats

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180606/models.rb

Overview

BOT统计结果数据

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(metric = nil, detaildata = nil) ⇒ BotStats

Returns a new instance of BotStats.



1915
1916
1917
1918
# File 'lib/v20180606/models.rb', line 1915

def initialize(metric=nil, detaildata=nil)
  @Metric = metric
  @DetailData = detaildata
end

Instance Attribute Details

#DetailDataObject

Parameters:

  • Metric:

    指标名称

  • DetailData:

    指标详细数据



1913
1914
1915
# File 'lib/v20180606/models.rb', line 1913

def DetailData
  @DetailData
end

#MetricObject

Parameters:

  • Metric:

    指标名称

  • DetailData:

    指标详细数据



1913
1914
1915
# File 'lib/v20180606/models.rb', line 1913

def Metric
  @Metric
end

Instance Method Details

#deserialize(params) ⇒ Object



1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
# File 'lib/v20180606/models.rb', line 1920

def deserialize(params)
  @Metric = params['Metric']
  unless params['DetailData'].nil?
    @DetailData = []
    params['DetailData'].each do |i|
      botstatsdetaildata_tmp = BotStatsDetailData.new
      botstatsdetaildata_tmp.deserialize(i)
      @DetailData << botstatsdetaildata_tmp
    end
  end
end