Class: LeoManager::Status::StorageStat

Inherits:
Object
  • Object
show all
Defined in:
lib/leo_manager_models.rb

Overview

Storage Status

Constant Summary collapse

@@properties =
[:replication_msgs,
 :sync_vnode_msgs,
 :rebalance_msgs,
 :wd_disk_interval,
 :wd_disk_threshold_disk_use,
 :wd_disk_threshold_disk_util
]

Instance Method Summary collapse

Constructor Details

#initialize(h) ⇒ StorageStat

Returns a new instance of StorageStat.



153
154
155
156
157
# File 'lib/leo_manager_models.rb', line 153

def initialize(h)
  @@properties.each do |property|
    instance_variable_set("@#{property}", h[property])
  end
end