class InfluxDB2::FluxRecord

A record is a tuple of values. Each record in the table represents a single point in the series. Ref: bit.ly/flux-spec#record

Attributes

table[RW]
values[R]

Public Class Methods

new(table, values: nil) click to toggle source

@param [Integer] table the index of table which contains the record @param [Hash] values tuple of values

# File lib/influxdb2/client/flux_table.rb, line 49
def initialize(table, values: nil)
  @table = table
  @values = values || {}
end

Public Instance Methods

field() click to toggle source

@return [String] value with key “_field”

# File lib/influxdb2/client/flux_table.rb, line 77
def field
  values['_field']
end
measurement() click to toggle source

@return [String] value with key “_measurement”

# File lib/influxdb2/client/flux_table.rb, line 82
def measurement
  values['_measurement']
end
start() click to toggle source

@return [Time] the inclusive lower time bound of all records

# File lib/influxdb2/client/flux_table.rb, line 57
def start
  values['_start']
end
stop() click to toggle source

@return [Time] the exclusive upper time bound of all records

# File lib/influxdb2/client/flux_table.rb, line 62
def stop
  values['_stop']
end
time() click to toggle source

@return [Time] the time of the record

# File lib/influxdb2/client/flux_table.rb, line 67
def time
  values['_time']
end
value() click to toggle source

@return [Object] the value of the record

# File lib/influxdb2/client/flux_table.rb, line 72
def value
  values['_value']
end