Class: TencentCloud::Cdn::V20180606::BotStats
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdn::V20180606::BotStats
- Defined in:
- lib/v20180606/models.rb
Overview
BOT统计结果数据
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(metric = nil, detaildata = nil) ⇒ BotStats
constructor
A new instance of BotStats.
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
#DetailData ⇒ Object
1913 1914 1915 |
# File 'lib/v20180606/models.rb', line 1913 def DetailData @DetailData end |
#Metric ⇒ Object
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 |