Class: TencentCloud::Cwp::V20180228::NetAttackTopInfo
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cwp::V20180228::NetAttackTopInfo
- Defined in:
- lib/v20180228/models.rb
Overview
网络攻击top统计数据
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(agent = nil, srcip = nil, dstport = nil, vul = nil) ⇒ NetAttackTopInfo
constructor
A new instance of NetAttackTopInfo.
Constructor Details
#initialize(agent = nil, srcip = nil, dstport = nil, vul = nil) ⇒ NetAttackTopInfo
Returns a new instance of NetAttackTopInfo.
35185 35186 35187 35188 35189 35190 |
# File 'lib/v20180228/models.rb', line 35185 def initialize(agent=nil, srcip=nil, dstport=nil, vul=nil) @Agent = agent @SrcIp = srcip @DstPort = dstport @Vul = vul end |
Instance Attribute Details
#Agent ⇒ Object
35183 35184 35185 |
# File 'lib/v20180228/models.rb', line 35183 def Agent @Agent end |
#DstPort ⇒ Object
35183 35184 35185 |
# File 'lib/v20180228/models.rb', line 35183 def DstPort @DstPort end |
#SrcIp ⇒ Object
35183 35184 35185 |
# File 'lib/v20180228/models.rb', line 35183 def SrcIp @SrcIp end |
#Vul ⇒ Object
35183 35184 35185 |
# File 'lib/v20180228/models.rb', line 35183 def Vul @Vul end |
Instance Method Details
#deserialize(params) ⇒ Object
35192 35193 35194 35195 35196 35197 35198 35199 35200 35201 35202 35203 35204 35205 35206 35207 35208 35209 35210 35211 35212 35213 35214 35215 35216 35217 35218 35219 35220 35221 35222 35223 35224 35225 |
# File 'lib/v20180228/models.rb', line 35192 def deserialize(params) unless params['Agent'].nil? @Agent = [] params['Agent'].each do |i| topinfo_tmp = TopInfo.new topinfo_tmp.deserialize(i) @Agent << topinfo_tmp end end unless params['SrcIp'].nil? @SrcIp = [] params['SrcIp'].each do |i| topinfo_tmp = TopInfo.new topinfo_tmp.deserialize(i) @SrcIp << topinfo_tmp end end unless params['DstPort'].nil? @DstPort = [] params['DstPort'].each do |i| topinfo_tmp = TopInfo.new topinfo_tmp.deserialize(i) @DstPort << topinfo_tmp end end unless params['Vul'].nil? @Vul = [] params['Vul'].each do |i| topinfo_tmp = TopInfo.new topinfo_tmp.deserialize(i) @Vul << topinfo_tmp end end end |