Class: TencentCloud::Dbbrain::V20191016::HealthStatus
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Dbbrain::V20191016::HealthStatus
- Defined in:
- lib/v20191016/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.
1929 1930 1931 1932 1933 1934 1935 |
# File 'lib/v20191016/models.rb', line 1929 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
1927 1928 1929 |
# File 'lib/v20191016/models.rb', line 1927 def HealthLevel @HealthLevel end |
#HealthLevelVersion ⇒ Object
1927 1928 1929 |
# File 'lib/v20191016/models.rb', line 1927 def HealthLevelVersion @HealthLevelVersion end |
#HealthScore ⇒ Object
1927 1928 1929 |
# File 'lib/v20191016/models.rb', line 1927 def HealthScore @HealthScore end |
#ScoreDetails ⇒ Object
1927 1928 1929 |
# File 'lib/v20191016/models.rb', line 1927 def ScoreDetails @ScoreDetails end |
#ScoreLost ⇒ Object
1927 1928 1929 |
# File 'lib/v20191016/models.rb', line 1927 def ScoreLost @ScoreLost end |
Instance Method Details
#deserialize(params) ⇒ Object
1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 |
# File 'lib/v20191016/models.rb', line 1937 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 |