Sha256: 2b4da276d2b528d54138a80bfcc068b8b59e84064e3aa677cf952f30e952a03c

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 Bytes

Contents

#!/usr/bin/env ruby
require 'pp'
require 'bundler/setup'
require 'databox'

Databox.configure do |c|
  c.push_token   = "vi0jlkpxsy5pdhdtw94el"
end

client = Databox::Client.new()

client.insert_all([
  {key: 'temp.ljx', value: 4.3, attributes: {test: 'rees je'}},
  {key: 'temp.ljx', value: 1.3, date: '2015-01-01 09:00:00'},
])


#3.times do |t|
#	client.push(key: "example.ruby", value: t*100, date:(DateTime.now - t).strftime('%Y-%m-%d'))
#end

#client.push(key: "example.ruby.unit", value: 100, unit: "USD")

pp client.last_push(3)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
databox-2.0.0 example.rb