class InfluxDB2::FluxTable
This class represents the table structure of the Flux CSV Response. Ref: bit.ly/flux-spec#table
Attributes
columns[R]
records[R]
Public Class Methods
new()
click to toggle source
# File lib/influxdb2/client/flux_table.rb, line 25 def initialize @columns = [] @records = [] end
Public Instance Methods
group_key()
click to toggle source
A table's group key is subset of the entire columns dataset that assigned to the table. As such, all records within a table will have the same values for each column that is part of the group key.
# File lib/influxdb2/client/flux_table.rb, line 33 def group_key columns = [] @columns.each do |column| columns.push(column) if column.group end columns end