Sha256: fe524931be2794bb6fd2b2ec68f99223f523b98ca2fce4d4f60d7749716686ff
Contents?: true
Size: 913 Bytes
Versions: 3
Compression:
Stored size: 913 Bytes
Contents
require 'active_support/concern' require 'zermelo/record' # 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 InfluxDB extend ActiveSupport::Concern include Zermelo::Record included do set_backend :influxdb define_attributes :time => :timestamp end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zermelo-1.3.0 | lib/zermelo/records/influxdb.rb |
zermelo-1.2.1 | lib/zermelo/records/influxdb.rb |
zermelo-1.2.0 | lib/zermelo/records/influxdb.rb |