Class: Timescaledb::Stats::Chunks
- Inherits:
-
Object
- Object
- Timescaledb::Stats::Chunks
- Defined in:
- lib/timescaledb/stats/chunks.rb
Instance Method Summary collapse
-
#initialize(hypertables = [], connection = Timescaledb.connection) ⇒ Chunks
constructor
A new instance of Chunks.
-
#to_h ⇒ Hash
The chunks stats.
Constructor Details
#initialize(hypertables = [], connection = Timescaledb.connection) ⇒ Chunks
Returns a new instance of Chunks.
6 7 8 9 |
# File 'lib/timescaledb/stats/chunks.rb', line 6 def initialize(hypertables = [], connection = Timescaledb.connection) @connection = connection @hypertables = hypertables end |
Instance Method Details
#to_h ⇒ Hash
Returns The chunks stats.
14 15 16 |
# File 'lib/timescaledb/stats/chunks.rb', line 14 def to_h { total: total, compressed: compressed, uncompressed: uncompressed } end |