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
3 4 5 |
# File 'lib/libosctl/zfs/iostat.rb', line 3 def alloc @alloc end |
#bytes_read ⇒ Object
Returns the value of attribute bytes_read
3 4 5 |
# File 'lib/libosctl/zfs/iostat.rb', line 3 def bytes_read @bytes_read end |
#bytes_written ⇒ Object
Returns the value of attribute bytes_written
3 4 5 |
# File 'lib/libosctl/zfs/iostat.rb', line 3 def bytes_written @bytes_written end |
#free ⇒ Object
Returns the value of attribute free
3 4 5 |
# File 'lib/libosctl/zfs/iostat.rb', line 3 def free @free end |
#io_read ⇒ Object
Returns the value of attribute io_read
3 4 5 |
# File 'lib/libosctl/zfs/iostat.rb', line 3 def io_read @io_read end |
#io_written ⇒ Object
Returns the value of attribute io_written
3 4 5 |
# File 'lib/libosctl/zfs/iostat.rb', line 3 def io_written @io_written end |
#pool ⇒ Object
Returns the value of attribute pool
3 4 5 |
# File 'lib/libosctl/zfs/iostat.rb', line 3 def pool @pool end |
Instance Method Details
#<<(other) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/libosctl/zfs/iostat.rb', line 12 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 |