Class: TencentCloud::Weilingwith::V20230427::StatLevel

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

Overview

层级统计

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(total = nil, normalsum = nil, offlinesum = nil, faultsum = nil, spacecode = nil, statdevicetypeset = nil) ⇒ StatLevel



7436
7437
7438
7439
7440
7441
7442
7443
# File 'lib/v20230427/models.rb', line 7436

def initialize(total=nil, normalsum=nil, offlinesum=nil, faultsum=nil, spacecode=nil, statdevicetypeset=nil)
  @Total = total
  @NormalSum = normalsum
  @OfflineSum = offlinesum
  @FaultSum = faultsum
  @SpaceCode = spacecode
  @StatDeviceTypeSet = statdevicetypeset
end

Instance Attribute Details

#FaultSumObject



7434
7435
7436
# File 'lib/v20230427/models.rb', line 7434

def FaultSum
  @FaultSum
end

#NormalSumObject



7434
7435
7436
# File 'lib/v20230427/models.rb', line 7434

def NormalSum
  @NormalSum
end

#OfflineSumObject



7434
7435
7436
# File 'lib/v20230427/models.rb', line 7434

def OfflineSum
  @OfflineSum
end

#SpaceCodeObject



7434
7435
7436
# File 'lib/v20230427/models.rb', line 7434

def SpaceCode
  @SpaceCode
end

#StatDeviceTypeSetObject



7434
7435
7436
# File 'lib/v20230427/models.rb', line 7434

def StatDeviceTypeSet
  @StatDeviceTypeSet
end

#TotalObject



7434
7435
7436
# File 'lib/v20230427/models.rb', line 7434

def Total
  @Total
end

Instance Method Details

#deserialize(params) ⇒ Object



7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
# File 'lib/v20230427/models.rb', line 7445

def deserialize(params)
  @Total = params['Total']
  @NormalSum = params['NormalSum']
  @OfflineSum = params['OfflineSum']
  @FaultSum = params['FaultSum']
  @SpaceCode = params['SpaceCode']
  unless params['StatDeviceTypeSet'].nil?
    @StatDeviceTypeSet = []
    params['StatDeviceTypeSet'].each do |i|
      statdevicetype_tmp = StatDeviceType.new
      statdevicetype_tmp.deserialize(i)
      @StatDeviceTypeSet << statdevicetype_tmp
    end
  end
end