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.



5448
5449
5450
5451
5452
5453
5454
# File 'lib/v20210527/models.rb', line 5448

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:

  • 健康分数,满分100。

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

  • 总扣分分数。

  • 扣分详情。

  • 健康等级版本,默认为"V1"



5446
5447
5448
# File 'lib/v20210527/models.rb', line 5446

def HealthLevel
  @HealthLevel
end

#HealthLevelVersionObject

Parameters:

  • 健康分数,满分100。

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

  • 总扣分分数。

  • 扣分详情。

  • 健康等级版本,默认为"V1"



5446
5447
5448
# File 'lib/v20210527/models.rb', line 5446

def HealthLevelVersion
  @HealthLevelVersion
end

#HealthScoreObject

Parameters:

  • 健康分数,满分100。

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

  • 总扣分分数。

  • 扣分详情。

  • 健康等级版本,默认为"V1"



5446
5447
5448
# File 'lib/v20210527/models.rb', line 5446

def HealthScore
  @HealthScore
end

#ScoreDetailsObject

Parameters:

  • 健康分数,满分100。

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

  • 总扣分分数。

  • 扣分详情。

  • 健康等级版本,默认为"V1"



5446
5447
5448
# File 'lib/v20210527/models.rb', line 5446

def ScoreDetails
  @ScoreDetails
end

#ScoreLostObject

Parameters:

  • 健康分数,满分100。

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

  • 总扣分分数。

  • 扣分详情。

  • 健康等级版本,默认为"V1"



5446
5447
5448
# File 'lib/v20210527/models.rb', line 5446

def ScoreLost
  @ScoreLost
end

Instance Method Details

#deserialize(params) ⇒ Object



5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
# File 'lib/v20210527/models.rb', line 5456

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