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.
34771 34772 34773 34774 34775 34776 |
# File 'lib/v20180228/models.rb', line 34771 def initialize(agent=nil, srcip=nil, dstport=nil, vul=nil) @Agent = agent @SrcIp = srcip @DstPort = dstport @Vul = vul end |
Instance Attribute Details
#Agent ⇒ Object
34769 34770 34771 |
# File 'lib/v20180228/models.rb', line 34769 def Agent @Agent end |
#DstPort ⇒ Object
34769 34770 34771 |
# File 'lib/v20180228/models.rb', line 34769 def DstPort @DstPort end |
#SrcIp ⇒ Object
34769 34770 34771 |
# File 'lib/v20180228/models.rb', line 34769 def SrcIp @SrcIp end |
#Vul ⇒ Object
34769 34770 34771 |
# File 'lib/v20180228/models.rb', line 34769 def Vul @Vul end |
Instance Method Details
#deserialize(params) ⇒ Object
34778 34779 34780 34781 34782 34783 34784 34785 34786 34787 34788 34789 34790 34791 34792 34793 34794 34795 34796 34797 34798 34799 34800 34801 34802 34803 34804 34805 34806 34807 34808 34809 34810 34811 |
# File 'lib/v20180228/models.rb', line 34778 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 |