Class: TencentCloud::Dbbrain::V20210527::HealthStatus
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dbbrain::V20210527::HealthStatus
- Defined in:
- lib/v20210527/models.rb
Overview
实例健康详情。
Instance Attribute Summary collapse
- #HealthLevel ⇒ Object
- #HealthLevelVersion ⇒ Object
- #HealthScore ⇒ Object
- #ScoreDetails ⇒ Object
- #ScoreLost ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(healthscore = nil, healthlevel = nil, scorelost = nil, scoredetails = nil, healthlevelversion = nil) ⇒ HealthStatus
constructor
A new instance of HealthStatus.
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
#HealthLevel ⇒ Object
5382 5383 5384 |
# File 'lib/v20210527/models.rb', line 5382 def HealthLevel @HealthLevel end |
#HealthLevelVersion ⇒ Object
5382 5383 5384 |
# File 'lib/v20210527/models.rb', line 5382 def HealthLevelVersion @HealthLevelVersion end |
#HealthScore ⇒ Object
5382 5383 5384 |
# File 'lib/v20210527/models.rb', line 5382 def HealthScore @HealthScore end |
#ScoreDetails ⇒ Object
5382 5383 5384 |
# File 'lib/v20210527/models.rb', line 5382 def ScoreDetails @ScoreDetails end |
#ScoreLost ⇒ Object
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 |