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.



41001
41002
41003
41004
41005
41006
# File 'lib/v20180228/models.rb', line 41001

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评分



40999
41000
41001
# File 'lib/v20180228/models.rb', line 40999

def HostName
  @HostName
end

#QuuidObject

Parameters:

  • HostName:

    主机名

  • VulLevelList:

    漏洞等级与数量统计列表

  • Quuid:

    主机Quuid

  • Score:

    top评分



40999
41000
41001
# File 'lib/v20180228/models.rb', line 40999

def Quuid
  @Quuid
end

#ScoreObject

Parameters:

  • HostName:

    主机名

  • VulLevelList:

    漏洞等级与数量统计列表

  • Quuid:

    主机Quuid

  • Score:

    top评分



40999
41000
41001
# File 'lib/v20180228/models.rb', line 40999

def Score
  @Score
end

#VulLevelListObject

Parameters:

  • HostName:

    主机名

  • VulLevelList:

    漏洞等级与数量统计列表

  • Quuid:

    主机Quuid

  • Score:

    top评分



40999
41000
41001
# File 'lib/v20180228/models.rb', line 40999

def VulLevelList
  @VulLevelList
end

Instance Method Details

#deserialize(params) ⇒ Object



41008
41009
41010
41011
41012
41013
41014
41015
41016
41017
41018
41019
41020
# File 'lib/v20180228/models.rb', line 41008

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