Class: TencentCloud::Dbbrain::V20210527::HealthStatus

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

Overview

实例健康详情。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(healthscore = nil, healthlevel = nil, scorelost = nil, scoredetails = nil, healthlevelversion = nil) ⇒ HealthStatus

Returns a new instance of HealthStatus.



5384
5385
5386
5387
5388
5389
5390
# File 'lib/v20210527/models.rb', line 5384

def initialize(healthscore=nil, healthlevel=nil, scorelost=nil, scoredetails=nil, healthlevelversion=nil)
  @HealthScore = healthscore
  @HealthLevel = healthlevel
  @ScoreLost = scorelost
  @ScoreDetails = scoredetails
  @HealthLevelVersion = healthlevelversion
end

Instance Attribute Details

#HealthLevelObject

Parameters:

  • HealthScore:

    健康分数,满分100。

  • HealthLevel:

    健康等级,取值包括:“HEALTH” - 健康;“SUB_HEALTH” - 亚健康;“RISK”- 危险;“HIGH_RISK” - 高危。

  • ScoreLost:

    总扣分分数。

  • ScoreDetails:

    扣分详情。

  • HealthLevelVersion:

    健康等级版本,默认为“V1”



5382
5383
5384
# File 'lib/v20210527/models.rb', line 5382

def HealthLevel
  @HealthLevel
end

#HealthLevelVersionObject

Parameters:

  • HealthScore:

    健康分数,满分100。

  • HealthLevel:

    健康等级,取值包括:“HEALTH” - 健康;“SUB_HEALTH” - 亚健康;“RISK”- 危险;“HIGH_RISK” - 高危。

  • ScoreLost:

    总扣分分数。

  • ScoreDetails:

    扣分详情。

  • HealthLevelVersion:

    健康等级版本,默认为“V1”



5382
5383
5384
# File 'lib/v20210527/models.rb', line 5382

def HealthLevelVersion
  @HealthLevelVersion
end

#HealthScoreObject

Parameters:

  • HealthScore:

    健康分数,满分100。

  • HealthLevel:

    健康等级,取值包括:“HEALTH” - 健康;“SUB_HEALTH” - 亚健康;“RISK”- 危险;“HIGH_RISK” - 高危。

  • ScoreLost:

    总扣分分数。

  • ScoreDetails:

    扣分详情。

  • HealthLevelVersion:

    健康等级版本,默认为“V1”



5382
5383
5384
# File 'lib/v20210527/models.rb', line 5382

def HealthScore
  @HealthScore
end

#ScoreDetailsObject

Parameters:

  • HealthScore:

    健康分数,满分100。

  • HealthLevel:

    健康等级,取值包括:“HEALTH” - 健康;“SUB_HEALTH” - 亚健康;“RISK”- 危险;“HIGH_RISK” - 高危。

  • ScoreLost:

    总扣分分数。

  • ScoreDetails:

    扣分详情。

  • HealthLevelVersion:

    健康等级版本,默认为“V1”



5382
5383
5384
# File 'lib/v20210527/models.rb', line 5382

def ScoreDetails
  @ScoreDetails
end

#ScoreLostObject

Parameters:

  • HealthScore:

    健康分数,满分100。

  • HealthLevel:

    健康等级,取值包括:“HEALTH” - 健康;“SUB_HEALTH” - 亚健康;“RISK”- 危险;“HIGH_RISK” - 高危。

  • ScoreLost:

    总扣分分数。

  • ScoreDetails:

    扣分详情。

  • HealthLevelVersion:

    健康等级版本,默认为“V1”



5382
5383
5384
# File 'lib/v20210527/models.rb', line 5382

def ScoreLost
  @ScoreLost
end

Instance Method Details

#deserialize(params) ⇒ Object



5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
# File 'lib/v20210527/models.rb', line 5392

def deserialize(params)
  @HealthScore = params['HealthScore']
  @HealthLevel = params['HealthLevel']
  @ScoreLost = params['ScoreLost']
  unless params['ScoreDetails'].nil?
    @ScoreDetails = []
    params['ScoreDetails'].each do |i|
      scoredetail_tmp = ScoreDetail.new
      scoredetail_tmp.deserialize(i)
      @ScoreDetails << scoredetail_tmp
    end
  end
  @HealthLevelVersion = params['HealthLevelVersion']
end