metriks-opentsdb 1.1.1 → 1.1.2

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: 24c5cd57ab5c2e1a20198517c8e548210630b6b5
4
- data.tar.gz: 8beac0c4dddfb9220a6916349aba9a877040f50d
3
+ metadata.gz: a74c61d8d3fb63d203f71da76870f7ccb9ae79e2
4
+ data.tar.gz: ac0af5dca354776b41942920f2dbffc30af36ece
5
5
  SHA512:
6
- metadata.gz: f04b63379a7de32cfcc32a273cee00427749967766aa31bf9e76dc0f16df2c7a94481654ca4d04b723c66a2412f4075a5e2f4a16270be8cc74266c025879b364
7
- data.tar.gz: 803f1cd94f17b46b042ef4c9709b1f7ed8183a14601203f235a5db6fcb1414e5b293db7637bcad5d90ce7807f637f3365b8faf0b72b7b986be48afc9055deca9
6
+ metadata.gz: dbdb8828013e5f2ed54fe94eb53f653d50337d3bea85b42e5c3f23bbb379bd4f093b34c1240faea6013537e96b6090cbd884974a53d5ec7e1a75a5c0241c7539
7
+ data.tar.gz: 18d73b9179793875b60914a3520010f137bddb0ab414897ca713c0f9bba4dcc77522051371d8a479858f658fed2a5f168e01866da81712e99c039cd0f21bacff
@@ -87,15 +87,19 @@ module Metriks
87
87
  index = 0
88
88
  length = @batch_size
89
89
  while index < datapoints.size
90
+ info("Starting from #{index}")
90
91
  if datapoints.size < (index + length)
91
92
  length = datapoints.size - index
92
93
  else
93
94
  length = @batch_size
94
95
  end
95
-
96
+ info("Length is #{length}")
97
+ info("Begin post")
98
+ jsonstr = datapoints[index, length].to_json
96
99
  RestClient.post "#{@hostname}/api/put",
97
- datapoints[index, length].to_json,
100
+ jsonstr,
98
101
  :content_type => :json, :accept => :json
102
+ info("Put done")
99
103
  index += length
100
104
  end
101
105
  end
@@ -1,5 +1,5 @@
1
1
  require 'metriks/opentsdb_reporter'
2
2
 
3
3
  module MetriksOpenTSDB
4
- VERSION = '1.1.1'
4
+ VERSION = '1.1.2'
5
5
  end
@@ -13,8 +13,8 @@ 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.1'
17
- s.date = '2015-08-02'
16
+ s.version = '1.1.2'
17
+ s.date = '2015-08-03'
18
18
 
19
19
  ## Make sure your summary is short. The description may be as long
20
20
  ## as you like.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metriks-opentsdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajat Venkatesh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-02 00:00:00.000000000 Z
11
+ date: 2015-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metriks