sensu 0.27.1 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/lib/sensu/api/routes/clients.rb +1 -1
- data/lib/sensu/api/routes/info.rb +15 -10
- data/lib/sensu/api/routes/request.rb +7 -1
- data/lib/sensu/api/routes/silenced.rb +2 -1
- data/lib/sensu/api/utilities/servers_info.rb +36 -0
- data/lib/sensu/api/utilities/transport_info.rb +1 -0
- data/lib/sensu/client/process.rb +72 -55
- data/lib/sensu/client/socket.rb +1 -1
- data/lib/sensu/constants.rb +1 -1
- data/lib/sensu/daemon.rb +3 -2
- data/lib/sensu/sandbox.rb +19 -0
- data/lib/sensu/server/filter.rb +1 -95
- data/lib/sensu/server/handle.rb +14 -7
- data/lib/sensu/server/process.rb +179 -43
- data/lib/sensu/server/socket.rb +1 -1
- data/lib/sensu/timers.rb +26 -0
- data/lib/sensu/utilities.rb +168 -2
- data/sensu.gemspec +2 -1
- metadata +21 -5
- data/lib/sensu/server/sandbox.rb +0 -21
data/sensu.gemspec
CHANGED
@@ -15,13 +15,14 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.add_dependency "eventmachine", "1.2.2"
|
16
16
|
s.add_dependency "sensu-json", "2.0.1"
|
17
17
|
s.add_dependency "sensu-logger", "1.2.1"
|
18
|
-
s.add_dependency "sensu-settings", "9.
|
18
|
+
s.add_dependency "sensu-settings", "9.9.0"
|
19
19
|
s.add_dependency "sensu-extension", "1.5.1"
|
20
20
|
s.add_dependency "sensu-extensions", "1.7.1"
|
21
21
|
s.add_dependency "sensu-transport", "7.0.2"
|
22
22
|
s.add_dependency "sensu-spawn", "2.2.1"
|
23
23
|
s.add_dependency "sensu-redis", "2.1.0"
|
24
24
|
s.add_dependency "em-http-server", "0.1.8"
|
25
|
+
s.add_dependency "parse-cron", "0.1.4"
|
25
26
|
|
26
27
|
s.add_development_dependency "rake", "10.5.0"
|
27
28
|
s.add_development_dependency "rspec", "~> 3.0.0"
|
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: 0.
|
4
|
+
version: 0.28.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Porter
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-02-
|
12
|
+
date: 2017-02-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: eventmachine
|
@@ -59,14 +59,14 @@ dependencies:
|
|
59
59
|
requirements:
|
60
60
|
- - '='
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 9.
|
62
|
+
version: 9.9.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 9.
|
69
|
+
version: 9.9.0
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: sensu-extension
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,6 +151,20 @@ dependencies:
|
|
151
151
|
- - '='
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: 0.1.8
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: parse-cron
|
156
|
+
requirement: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - '='
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: 0.1.4
|
161
|
+
type: :runtime
|
162
|
+
prerelease: false
|
163
|
+
version_requirements: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - '='
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: 0.1.4
|
154
168
|
- !ruby/object:Gem::Dependency
|
155
169
|
name: rake
|
156
170
|
requirement: !ruby/object:Gem::Requirement
|
@@ -244,6 +258,7 @@ files:
|
|
244
258
|
- lib/sensu/api/utilities/publish_check_request.rb
|
245
259
|
- lib/sensu/api/utilities/publish_check_result.rb
|
246
260
|
- lib/sensu/api/utilities/resolve_event.rb
|
261
|
+
- lib/sensu/api/utilities/servers_info.rb
|
247
262
|
- lib/sensu/api/utilities/transport_info.rb
|
248
263
|
- lib/sensu/api/validators/client.rb
|
249
264
|
- lib/sensu/api/validators/invalid.rb
|
@@ -254,12 +269,13 @@ files:
|
|
254
269
|
- lib/sensu/client/utils.rb
|
255
270
|
- lib/sensu/constants.rb
|
256
271
|
- lib/sensu/daemon.rb
|
272
|
+
- lib/sensu/sandbox.rb
|
257
273
|
- lib/sensu/server/filter.rb
|
258
274
|
- lib/sensu/server/handle.rb
|
259
275
|
- lib/sensu/server/mutate.rb
|
260
276
|
- lib/sensu/server/process.rb
|
261
|
-
- lib/sensu/server/sandbox.rb
|
262
277
|
- lib/sensu/server/socket.rb
|
278
|
+
- lib/sensu/timers.rb
|
263
279
|
- lib/sensu/utilities.rb
|
264
280
|
- sensu.gemspec
|
265
281
|
homepage: http://sensuapp.org
|
data/lib/sensu/server/sandbox.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
module Sensu
|
2
|
-
module Server
|
3
|
-
module Sandbox
|
4
|
-
# Evaluate a Ruby expression within the context of a simple
|
5
|
-
# "sandbox", a Proc in a module method. As of Ruby 2.3.0,
|
6
|
-
# `$SAFE` no longer supports levels > 1, so its use has been
|
7
|
-
# removed from this method. A single value is provided to the
|
8
|
-
# "sandbox".
|
9
|
-
#
|
10
|
-
# @param expression [String] to be evaluated.
|
11
|
-
# @param value [Object] to provide the "sandbox" with.
|
12
|
-
# @return [Object]
|
13
|
-
def self.eval(expression, value=nil)
|
14
|
-
result = Proc.new do
|
15
|
-
Kernel.eval(expression)
|
16
|
-
end
|
17
|
-
result.call
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|