ruby-metrics 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Metrics
2
- VERSION = '0.9.1'
2
+ VERSION = '0.9.2'
3
3
  end
@@ -130,7 +130,7 @@ module Metrics
130
130
  expect(mock_tsdb_client).to receive(:put).with(timer_counter_data)
131
131
 
132
132
  timer_fifteen = {
133
- :value => 0.0,
133
+ :value => anything,
134
134
  :timestamp => anything,
135
135
  :tags => {
136
136
  :units => 'requests/sec',
@@ -141,7 +141,7 @@ module Metrics
141
141
  expect(mock_tsdb_client).to receive(:put).with(timer_fifteen)
142
142
 
143
143
  timer_five = {
144
- :value => 0.0,
144
+ :value => anything,
145
145
  :timestamp => anything,
146
146
  :tags => {
147
147
  :units => 'requests/sec',
@@ -153,7 +153,7 @@ module Metrics
153
153
 
154
154
 
155
155
  timer_one = {
156
- :value => 0.0,
156
+ :value => anything,
157
157
  :timestamp => anything,
158
158
  :tags => {
159
159
  :units => 'requests/sec',
@@ -221,8 +221,6 @@ module Metrics
221
221
  end
222
222
 
223
223
  it 'should report a meter' do
224
- expect(Thread).to receive(:new).and_return nil
225
-
226
224
  meter = agent.meter :http_requests, 'requests'
227
225
  meter.mark
228
226
  meter.mark
@@ -232,7 +230,7 @@ module Metrics
232
230
  meter.tag :somekey, 'value'
233
231
 
234
232
  meter_counter_data = {
235
- :value => 1,
233
+ :value => anything,
236
234
  :timestamp => anything,
237
235
  :tags => {
238
236
  :units => 'requests',
@@ -244,7 +242,7 @@ module Metrics
244
242
  expect(mock_tsdb_client).to receive(:put).with(meter_counter_data)
245
243
 
246
244
  meter_fifteen = {
247
- :value => 0.6,
245
+ :value => anything,
248
246
  :timestamp => anything,
249
247
  :tags => {
250
248
  :units => 'requests/sec',
@@ -256,7 +254,7 @@ module Metrics
256
254
  expect(mock_tsdb_client).to receive(:put).with(meter_fifteen)
257
255
 
258
256
  meter_five = {
259
- :value => 0.6,
257
+ :value => anything,
260
258
  :timestamp => anything,
261
259
  :tags => {
262
260
  :units => 'requests/sec',
@@ -269,7 +267,7 @@ module Metrics
269
267
 
270
268
 
271
269
  meter_one = {
272
- :value => 0.6,
270
+ :value => anything,
273
271
  :timestamp => anything,
274
272
  :tags => {
275
273
  :units => 'requests/sec',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: