metriks-opentsdb 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a74c61d8d3fb63d203f71da76870f7ccb9ae79e2
4
- data.tar.gz: ac0af5dca354776b41942920f2dbffc30af36ece
3
+ metadata.gz: 1f0fcaf84f504d87dd4dc7e02fad84add07d7225
4
+ data.tar.gz: f66af80bd062960f3f10d8de994fbffbc0343a20
5
5
  SHA512:
6
- metadata.gz: dbdb8828013e5f2ed54fe94eb53f653d50337d3bea85b42e5c3f23bbb379bd4f093b34c1240faea6013537e96b6090cbd884974a53d5ec7e1a75a5c0241c7539
7
- data.tar.gz: 18d73b9179793875b60914a3520010f137bddb0ab414897ca713c0f9bba4dcc77522051371d8a479858f658fed2a5f168e01866da81712e99c039cd0f21bacff
6
+ metadata.gz: 3069230f7767bb82941ebf75e9299c67fa78e5cb350d1c12c667315701f089656fdf74e5fc89f7df3e47e81c8d789145e8c47ab57dc7e03eb07fa8d569d60af5
7
+ data.tar.gz: a93c71eedba246add2e6277a8c7dae84d9032334187fb517b89eab76356f560fe8020e847e54a6af70321ab5ac722069e114c3d033e64c2c88d2bff58a19f651
@@ -1,5 +1,5 @@
1
1
  require 'metriks/opentsdb_reporter'
2
2
 
3
3
  module MetriksOpenTSDB
4
- VERSION = '1.1.2'
4
+ VERSION = '1.1.3'
5
5
  end
@@ -88,6 +88,7 @@ module Metriks
88
88
  length = @batch_size
89
89
  while index < datapoints.size
90
90
  info("Starting from #{index}")
91
+ to_send = nil
91
92
  if datapoints.size < (index + length)
92
93
  length = datapoints.size - index
93
94
  else
@@ -95,7 +96,10 @@ module Metriks
95
96
  end
96
97
  info("Length is #{length}")
97
98
  info("Begin post")
99
+ info(datapoints[index, length].inspect)
100
+ info("To Json")
98
101
  jsonstr = datapoints[index, length].to_json
102
+ info("Send to rest")
99
103
  RestClient.post "#{@hostname}/api/put",
100
104
  jsonstr,
101
105
  :content_type => :json, :accept => :json
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'metriks-opentsdb'
16
- s.version = '1.1.2'
16
+ s.version = '1.1.3'
17
17
  s.date = '2015-08-03'
18
18
 
19
19
  ## Make sure your summary is short. The description may be as long
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metriks-opentsdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajat Venkatesh