Sha256: 3fee49ce59d5d5cacb864e8d4fd73281b98510ff7d994fd002a13972eb49fc3f

Contents?: true

Size: 933 Bytes

Versions: 1

Compression:

Stored size: 933 Bytes

Contents

require 'active_support/concern'

require 'zermelo/records/base'

# a record is a row in a time series (named for the record class)

# all attributes are stored as fields in that row

# a save will delete (if required) and create the row

# if time field does not exist, this will be created automatically by influxdb

# indexing -- not really relevant until query building has been worked on, but
# everything in the influxdb query language should be supportable, maybe those
# just indicate what should be queryable?

# TODO: ensure time_precision is set for the incoming data

# class level values are in other time series (with similar names to the
# related redis sets)

module Zermelo
  module Records
    module InfluxDBRecord
      extend ActiveSupport::Concern

      include Zermelo::Records::Base

      included do
        set_backend :influxdb

        define_attributes :time => :timestamp
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zermelo-1.1.0 lib/zermelo/records/influxdb_record.rb