Class: TencentCloud::Cwp::V20180228::VulHostTopInfo

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

Overview

服务器风险top5实体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hostname = nil, vullevellist = nil, quuid = nil, score = nil) ⇒ VulHostTopInfo

Returns a new instance of VulHostTopInfo.



40587
40588
40589
40590
40591
40592
# File 'lib/v20180228/models.rb', line 40587

def initialize(hostname=nil, vullevellist=nil, quuid=nil, score=nil)
  @HostName = hostname
  @VulLevelList = vullevellist
  @Quuid = quuid
  @Score = score
end

Instance Attribute Details

#HostNameObject

Parameters:

  • HostName:

    主机名

  • VulLevelList:

    漏洞等级与数量统计列表

  • Quuid:

    主机Quuid

  • Score:

    top评分



40585
40586
40587
# File 'lib/v20180228/models.rb', line 40585

def HostName
  @HostName
end

#QuuidObject

Parameters:

  • HostName:

    主机名

  • VulLevelList:

    漏洞等级与数量统计列表

  • Quuid:

    主机Quuid

  • Score:

    top评分



40585
40586
40587
# File 'lib/v20180228/models.rb', line 40585

def Quuid
  @Quuid
end

#ScoreObject

Parameters:

  • HostName:

    主机名

  • VulLevelList:

    漏洞等级与数量统计列表

  • Quuid:

    主机Quuid

  • Score:

    top评分



40585
40586
40587
# File 'lib/v20180228/models.rb', line 40585

def Score
  @Score
end

#VulLevelListObject

Parameters:

  • HostName:

    主机名

  • VulLevelList:

    漏洞等级与数量统计列表

  • Quuid:

    主机Quuid

  • Score:

    top评分



40585
40586
40587
# File 'lib/v20180228/models.rb', line 40585

def VulLevelList
  @VulLevelList
end

Instance Method Details

#deserialize(params) ⇒ Object



40594
40595
40596
40597
40598
40599
40600
40601
40602
40603
40604
40605
40606
# File 'lib/v20180228/models.rb', line 40594

def deserialize(params)
  @HostName = params['HostName']
  unless params['VulLevelList'].nil?
    @VulLevelList = []
    params['VulLevelList'].each do |i|
      vullevelcountinfo_tmp = VulLevelCountInfo.new
      vullevelcountinfo_tmp.deserialize(i)
      @VulLevelList << vullevelcountinfo_tmp
    end
  end
  @Quuid = params['Quuid']
  @Score = params['Score']
end