Class: Timescaledb::Stats::ContinuousAggregates

Inherits:
Object
  • Object
show all
Defined in:
lib/timescaledb/stats/continuous_aggregates.rb

Instance Method Summary collapse

Constructor Details

#initialize(connection = Timescaledb.connection) ⇒ ContinuousAggregates

Returns a new instance of ContinuousAggregates.

Parameters:

  • connection (Timescaledb:Connection) (defaults to: Timescaledb.connection)

    The PG connection.



6
7
8
# File 'lib/timescaledb/stats/continuous_aggregates.rb', line 6

def initialize(connection = Timescaledb.connection)
  @connection = connection
end

Instance Method Details

#to_hHash

Returns The continuous_aggregates stats.

Returns:

  • (Hash)

    The continuous_aggregates stats



13
14
15
# File 'lib/timescaledb/stats/continuous_aggregates.rb', line 13

def to_h
  { total: total }
end