Class: OsCtl::Lib::Zfs::IOStat::PoolStats
- Inherits:
-
Struct
- Object
- Struct
- OsCtl::Lib::Zfs::IOStat::PoolStats
- Defined in:
- lib/libosctl/zfs/iostat.rb
Instance Attribute Summary collapse
-
#alloc ⇒ Object
Returns the value of attribute alloc.
-
#bytes_read ⇒ Object
Returns the value of attribute bytes_read.
-
#bytes_written ⇒ Object
Returns the value of attribute bytes_written.
-
#free ⇒ Object
Returns the value of attribute free.
-
#io_read ⇒ Object
Returns the value of attribute io_read.
-
#io_written ⇒ Object
Returns the value of attribute io_written.
-
#pool ⇒ Object
Returns the value of attribute pool.
Instance Method Summary collapse
Instance Attribute Details
#alloc ⇒ Object
Returns the value of attribute alloc
5 6 7 |
# File 'lib/libosctl/zfs/iostat.rb', line 5 def alloc @alloc end |
#bytes_read ⇒ Object
Returns the value of attribute bytes_read
5 6 7 |
# File 'lib/libosctl/zfs/iostat.rb', line 5 def bytes_read @bytes_read end |
#bytes_written ⇒ Object
Returns the value of attribute bytes_written
5 6 7 |
# File 'lib/libosctl/zfs/iostat.rb', line 5 def bytes_written @bytes_written end |
#free ⇒ Object
Returns the value of attribute free
5 6 7 |
# File 'lib/libosctl/zfs/iostat.rb', line 5 def free @free end |
#io_read ⇒ Object
Returns the value of attribute io_read
5 6 7 |
# File 'lib/libosctl/zfs/iostat.rb', line 5 def io_read @io_read end |
#io_written ⇒ Object
Returns the value of attribute io_written
5 6 7 |
# File 'lib/libosctl/zfs/iostat.rb', line 5 def io_written @io_written end |
#pool ⇒ Object
Returns the value of attribute pool
5 6 7 |
# File 'lib/libosctl/zfs/iostat.rb', line 5 def pool @pool end |
Instance Method Details
#<<(other) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/libosctl/zfs/iostat.rb', line 14 def <<(other) self.alloc = nil self.free = nil self.io_read += other.io_read self.io_written += other.io_written self.bytes_read += other.bytes_read self.bytes_written += other.bytes_written end |