Class: TencentCloud::Dbbrain::V20191016::HealthScoreInfo

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

Overview

获取健康得分返回的详情。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(issuetypes = nil, eventstotalcount = nil, healthscore = nil, healthlevel = nil) ⇒ HealthScoreInfo

Returns a new instance of HealthScoreInfo.



1892
1893
1894
1895
1896
1897
# File 'lib/v20191016/models.rb', line 1892

def initialize(issuetypes=nil, eventstotalcount=nil, healthscore=nil, healthlevel=nil)
  @IssueTypes = issuetypes
  @EventsTotalCount = eventstotalcount
  @HealthScore = healthscore
  @HealthLevel = healthlevel
end

Instance Attribute Details

#EventsTotalCountObject

Parameters:

  • IssueTypes:

    异常详情。

  • EventsTotalCount:

    异常事件总数。

  • HealthScore:

    健康得分。

  • HealthLevel:

    健康等级, 如:“HEALTH”, “SUB_HEALTH”, “RISK”, “HIGH_RISK”。



1890
1891
1892
# File 'lib/v20191016/models.rb', line 1890

def EventsTotalCount
  @EventsTotalCount
end

#HealthLevelObject

Parameters:

  • IssueTypes:

    异常详情。

  • EventsTotalCount:

    异常事件总数。

  • HealthScore:

    健康得分。

  • HealthLevel:

    健康等级, 如:“HEALTH”, “SUB_HEALTH”, “RISK”, “HIGH_RISK”。



1890
1891
1892
# File 'lib/v20191016/models.rb', line 1890

def HealthLevel
  @HealthLevel
end

#HealthScoreObject

Parameters:

  • IssueTypes:

    异常详情。

  • EventsTotalCount:

    异常事件总数。

  • HealthScore:

    健康得分。

  • HealthLevel:

    健康等级, 如:“HEALTH”, “SUB_HEALTH”, “RISK”, “HIGH_RISK”。



1890
1891
1892
# File 'lib/v20191016/models.rb', line 1890

def HealthScore
  @HealthScore
end

#IssueTypesObject

Parameters:

  • IssueTypes:

    异常详情。

  • EventsTotalCount:

    异常事件总数。

  • HealthScore:

    健康得分。

  • HealthLevel:

    健康等级, 如:“HEALTH”, “SUB_HEALTH”, “RISK”, “HIGH_RISK”。



1890
1891
1892
# File 'lib/v20191016/models.rb', line 1890

def IssueTypes
  @IssueTypes
end

Instance Method Details

#deserialize(params) ⇒ Object



1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
# File 'lib/v20191016/models.rb', line 1899

def deserialize(params)
  unless params['IssueTypes'].nil?
    @IssueTypes = []
    params['IssueTypes'].each do |i|
      issuetypeinfo_tmp = IssueTypeInfo.new
      issuetypeinfo_tmp.deserialize(i)
      @IssueTypes << issuetypeinfo_tmp
    end
  end
  @EventsTotalCount = params['EventsTotalCount']
  @HealthScore = params['HealthScore']
  @HealthLevel = params['HealthLevel']
end