sensu 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 15373d4b608413371b4ef8c01892b55f66137c5e
4
- data.tar.gz: d269fa8610e68991945718e942595cef7d1fc6ae
3
+ metadata.gz: 907c67f40080774064579c80c0ec8979aea2fb1b
4
+ data.tar.gz: 43d91b3282f863f8c865b0fe464e48d35741bf6f
5
5
  SHA512:
6
- metadata.gz: 783b610af26c699256c2ea3a131e146ca3ebc7911c7ea52a82daa5246bfdbbe1cc4b10ee70f3ab4fcb5731d360a57d645abf5f4bde068d0341c7177ad941f197
7
- data.tar.gz: 7da9d58e1718f2e61b3a3d88bfdefc3ff64431ab0311bfc7b9bcbe4f0c9fd35eb15ee49ae44f2ec7df3f6f534c89ead3988ab831801af25b9c7ec9bb3163990c
6
+ metadata.gz: f0595fcf9558e827b4c40ff9e0fb53c46da2747b1774b1d112703eb5f5bf64d812b7787c4ea0581c2445b0a09cf8b3b3ea4b821c1a7e388ee29986c750bc3a28
7
+ data.tar.gz: 2a628deb496b12e2304391859772cce4b63e4827c1f229b53efd06629baf9f6d40909fc41201e9929fc939070abc616354be543cbbb0b793fb70498c05a58e82
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -5,10 +5,15 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.4.2] - 2018-05-10
9
+
10
+ ### Fixed
11
+ - Fixed API GET /results, results were incorrectly reported under a single client name.
12
+
8
13
  ## [1.4.1] - 2018-05-04
9
14
 
10
15
  ### Fixed
11
- - Include em-http-request Ruby gem in runtime dependencies
16
+ - Include em-http-request Ruby gem in runtime dependencies.
12
17
 
13
18
  ## [1.4.0] - 2018-05-02
14
19
 
@@ -41,13 +41,13 @@ module Sensu
41
41
  unless result_keys.empty?
42
42
  result_keys.each_with_index do |result_key, result_key_index|
43
43
  @redis.get(result_key) do |result_json|
44
- _, client_name, check_name = result_key.split(":")
45
- history_key = "history:#{client_name}:#{check_name}"
44
+ history_key = result_key.sub(/^result:/, "history:")
46
45
  @redis.lrange(history_key, -21, -1) do |history|
47
46
  history.map! do |status|
48
47
  status.to_i
49
48
  end
50
49
  unless result_json.nil?
50
+ client_name = history_key.split(":")[1]
51
51
  check = Sensu::JSON.load(result_json)
52
52
  check[:history] = history
53
53
  @response_content << {:client => client_name, :check => check}
@@ -1,7 +1,7 @@
1
1
  module Sensu
2
2
  unless defined?(Sensu::VERSION)
3
3
  # Sensu release version.
4
- VERSION = "1.4.1".freeze
4
+ VERSION = "1.4.2".freeze
5
5
 
6
6
  # Sensu release information.
7
7
  RELEASE_INFO = {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
@@ -31,7 +31,7 @@ cert_chain:
31
31
  jOeGyhtQa9j4FFmsEJDg59f5v/3hECXsa3Xuml3foaFHzX3Ya/YIyd2YFxvkFKIu
32
32
  GVbe7A3YdxzdkH2Es/Ym9twdxXaIDdXzj8sWhw==
33
33
  -----END CERTIFICATE-----
34
- date: 2018-05-04 00:00:00.000000000 Z
34
+ date: 2018-05-10 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: eventmachine
metadata.gz.sig CHANGED
Binary file