Class: TencentCloud::Dbbrain::V20210527::HealthScoreInfo

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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



5308
5309
5310
5311
5312
5313
# File 'lib/v20210527/models.rb', line 5308

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

Instance Attribute Details

#EventsTotalCountObject



5306
5307
5308
# File 'lib/v20210527/models.rb', line 5306

def EventsTotalCount
  @EventsTotalCount
end

#HealthLevelObject



5306
5307
5308
# File 'lib/v20210527/models.rb', line 5306

def HealthLevel
  @HealthLevel
end

#HealthScoreObject



5306
5307
5308
# File 'lib/v20210527/models.rb', line 5306

def HealthScore
  @HealthScore
end

#IssueTypesObject



5306
5307
5308
# File 'lib/v20210527/models.rb', line 5306

def IssueTypes
  @IssueTypes
end

Instance Method Details

#deserialize(params) ⇒ Object



5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
# File 'lib/v20210527/models.rb', line 5315

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