Class: InfluxDB2::FluxRecord
- Inherits:
 - 
      Object
      
        
- Object
 - InfluxDB2::FluxRecord
 
 
- Defined in:
 - lib/influxdb2/client/flux_table.rb
 
Overview
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
Instance Attribute Summary collapse
- 
  
    
      #row  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute row.
 - 
  
    
      #table  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute table.
 - 
  
    
      #values  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute values.
 
Instance Method Summary collapse
- 
  
    
      #field  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
Value with key “_field”.
 - 
  
    
      #initialize(table, values: nil, row: nil)  ⇒ FluxRecord 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of FluxRecord.
 - 
  
    
      #measurement  ⇒ String 
    
    
  
  
  
  
  
  
  
  
  
    
Value with key “_measurement”.
 - 
  
    
      #start  ⇒ Time 
    
    
  
  
  
  
  
  
  
  
  
    
The inclusive lower time bound of all records.
 - 
  
    
      #stop  ⇒ Time 
    
    
  
  
  
  
  
  
  
  
  
    
The exclusive upper time bound of all records.
 - 
  
    
      #time  ⇒ Time 
    
    
  
  
  
  
  
  
  
  
  
    
The time of the record.
 - 
  
    
      #value  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
The value of the record.
 
Constructor Details
#initialize(table, values: nil, row: nil) ⇒ FluxRecord
Returns a new instance of FluxRecord.
      51 52 53 54 55  | 
    
      # File 'lib/influxdb2/client/flux_table.rb', line 51 def initialize(table, values: nil, row: nil) @table = table @values = values || {} @row = row || [] end  | 
  
Instance Attribute Details
#row ⇒ Object (readonly)
Returns the value of attribute row.
      57 58 59  | 
    
      # File 'lib/influxdb2/client/flux_table.rb', line 57 def row @row end  | 
  
#table ⇒ Object
Returns the value of attribute table.
      57 58 59  | 
    
      # File 'lib/influxdb2/client/flux_table.rb', line 57 def table @table end  | 
  
#values ⇒ Object (readonly)
Returns the value of attribute values.
      57 58 59  | 
    
      # File 'lib/influxdb2/client/flux_table.rb', line 57 def values @values end  | 
  
Instance Method Details
#field ⇒ String
Returns value with key “_field”.
      81 82 83  | 
    
      # File 'lib/influxdb2/client/flux_table.rb', line 81 def field values['_field'] end  | 
  
#measurement ⇒ String
Returns value with key “_measurement”.
      86 87 88  | 
    
      # File 'lib/influxdb2/client/flux_table.rb', line 86 def measurement values['_measurement'] end  | 
  
#start ⇒ Time
Returns the inclusive lower time bound of all records.
      61 62 63  | 
    
      # File 'lib/influxdb2/client/flux_table.rb', line 61 def start values['_start'] end  | 
  
#stop ⇒ Time
Returns the exclusive upper time bound of all records.
      66 67 68  | 
    
      # File 'lib/influxdb2/client/flux_table.rb', line 66 def stop values['_stop'] end  | 
  
#time ⇒ Time
Returns the time of the record.
      71 72 73  | 
    
      # File 'lib/influxdb2/client/flux_table.rb', line 71 def time values['_time'] end  | 
  
#value ⇒ Object
Returns the value of the record.
      76 77 78  | 
    
      # File 'lib/influxdb2/client/flux_table.rb', line 76 def value values['_value'] end  |