sidekiq-monitoring 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/sidekiq-monitoring.rb +6 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff9875b4a8c594e350b7fa0011370e3e6f2b85f5
4
- data.tar.gz: 26b491d59ff14b95e8cc7d990bc3708cfc96c445
3
+ metadata.gz: 05f7351c183eb78e67ae33854d1ea42ec2ade1de
4
+ data.tar.gz: 00409f8a0d8aa2b4238cdb1a4bc5f95f90d135ab
5
5
  SHA512:
6
- metadata.gz: 4d8dd80f523151bc5dad5c48a2316e4cb70e8523dcc91ffbc9e55607af70792af081bc36afdf136c327ca49ab176a9b4e46e8103fd9757e326e025bc95801943
7
- data.tar.gz: 63003606a81842ec0d2e8d6780f387dd3cfc0cc6a75901888721d8a2d8eb859fd4b709bf7db4f9afaa7fe3bb180cd3a7ee411a391643ddf315b283469e60c2c4
6
+ metadata.gz: 1bd24caaf8940b5c6fb7b0286ee4c1f1683e4c6511694ba7d7d5c0973e3282e2c779c691b8c78f015cec3be317ea6242a058b997fb34b4d6b3c7440f8dbfe54e
7
+ data.tar.gz: 6dc9c5d2b9a35985feb190662a74369d8e9255e624894ec48354610eb405c9cc78c477f4b195e002feac4231bdad8900269dbe373b602c2bafa17d7cb7c2186b
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.1
@@ -17,7 +17,7 @@ class SidekiqMonitoring < Sinatra::Base
17
17
 
18
18
  get '/sidekiq_queues' do
19
19
  content_type :json
20
- MultiJson.dump SidekiqMonitoring::Global.new(@@thresholds)
20
+ MultiJson.dump SidekiqMonitoring::Global.new(@@thresholds, @@latency_thresholds)
21
21
  end
22
22
 
23
23
  module Monitorable
@@ -58,6 +58,8 @@ class SidekiqMonitoring < Sinatra::Base
58
58
  'jid' => jid,
59
59
  'worker_class' => worker_class,
60
60
  'elapsed_time' => elapsed_time,
61
+ 'warning_threshold' => warning_threshold,
62
+ 'critical_threshold' => critical_threshold,
61
63
  'status' => status,
62
64
  'process_id' => process_id
63
65
  }
@@ -98,6 +100,9 @@ class SidekiqMonitoring < Sinatra::Base
98
100
  'size' => size,
99
101
  'warning_threshold' => warning_threshold,
100
102
  'critical_threshold' => critical_threshold,
103
+ 'latency_warning_threshold' => warning_latency_threshold,
104
+ 'latency_critical_threshold' => critical_latency_threshold,
105
+ 'latency' => latency,
101
106
  'status' => status
102
107
  }
103
108
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-monitoring
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Carlier
8
8
  autorequire:
9
9
  bindir: ''
10
10
  cert_chain: []
11
- date: 2016-03-14 00:00:00.000000000 Z
11
+ date: 2016-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra