sensu 0.22.2-java → 0.23.0.beta-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +40 -0
- data/MIT-LICENSE.txt +1 -1
- data/lib/sensu/api/process.rb +69 -65
- data/lib/sensu/cli.rb +3 -0
- data/lib/sensu/client/process.rb +9 -44
- data/lib/sensu/client/socket.rb +4 -4
- data/lib/sensu/constants.rb +1 -1
- data/lib/sensu/daemon.rb +69 -40
- data/lib/sensu/server/filter.rb +63 -24
- data/lib/sensu/server/mutate.rb +1 -1
- data/lib/sensu/server/process.rb +68 -54
- data/lib/sensu/server/sandbox.rb +4 -4
- data/lib/sensu/utilities.rb +40 -4
- data/sensu.gemspec +7 -9
- metadata +21 -36
- data/lib/sensu/redis.rb +0 -25
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.23.0.beta
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Sean Porter
|
@@ -9,48 +9,34 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-03-
|
12
|
+
date: 2016-03-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
16
|
-
version_requirements: !ruby/object:Gem::Requirement
|
17
|
-
requirements:
|
18
|
-
- - '='
|
19
|
-
- !ruby/object:Gem::Version
|
20
|
-
version: 1.11.2
|
21
|
-
requirement: !ruby/object:Gem::Requirement
|
22
|
-
requirements:
|
23
|
-
- - '='
|
24
|
-
- !ruby/object:Gem::Version
|
25
|
-
version: 1.11.2
|
26
|
-
prerelease: false
|
27
|
-
type: :runtime
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: uuidtools
|
15
|
+
name: eventmachine
|
30
16
|
version_requirements: !ruby/object:Gem::Requirement
|
31
17
|
requirements:
|
32
18
|
- - '='
|
33
19
|
- !ruby/object:Gem::Version
|
34
|
-
version: 2.1
|
20
|
+
version: 1.2.0.1
|
35
21
|
requirement: !ruby/object:Gem::Requirement
|
36
22
|
requirements:
|
37
23
|
- - '='
|
38
24
|
- !ruby/object:Gem::Version
|
39
|
-
version: 2.1
|
25
|
+
version: 1.2.0.1
|
40
26
|
prerelease: false
|
41
27
|
type: :runtime
|
42
28
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
29
|
+
name: sensu-json
|
44
30
|
version_requirements: !ruby/object:Gem::Requirement
|
45
31
|
requirements:
|
46
32
|
- - '='
|
47
33
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.0
|
34
|
+
version: 1.1.0
|
49
35
|
requirement: !ruby/object:Gem::Requirement
|
50
36
|
requirements:
|
51
37
|
- - '='
|
52
38
|
- !ruby/object:Gem::Version
|
53
|
-
version: 1.0
|
39
|
+
version: 1.1.0
|
54
40
|
prerelease: false
|
55
41
|
type: :runtime
|
56
42
|
- !ruby/object:Gem::Dependency
|
@@ -59,12 +45,12 @@ dependencies:
|
|
59
45
|
requirements:
|
60
46
|
- - '='
|
61
47
|
- !ruby/object:Gem::Version
|
62
|
-
version: 1.
|
48
|
+
version: 1.2.0
|
63
49
|
requirement: !ruby/object:Gem::Requirement
|
64
50
|
requirements:
|
65
51
|
- - '='
|
66
52
|
- !ruby/object:Gem::Version
|
67
|
-
version: 1.
|
53
|
+
version: 1.2.0
|
68
54
|
prerelease: false
|
69
55
|
type: :runtime
|
70
56
|
- !ruby/object:Gem::Dependency
|
@@ -73,12 +59,12 @@ dependencies:
|
|
73
59
|
requirements:
|
74
60
|
- - '='
|
75
61
|
- !ruby/object:Gem::Version
|
76
|
-
version: 3.
|
62
|
+
version: 3.4.0
|
77
63
|
requirement: !ruby/object:Gem::Requirement
|
78
64
|
requirements:
|
79
65
|
- - '='
|
80
66
|
- !ruby/object:Gem::Version
|
81
|
-
version: 3.
|
67
|
+
version: 3.4.0
|
82
68
|
prerelease: false
|
83
69
|
type: :runtime
|
84
70
|
- !ruby/object:Gem::Dependency
|
@@ -101,12 +87,12 @@ dependencies:
|
|
101
87
|
requirements:
|
102
88
|
- - '='
|
103
89
|
- !ruby/object:Gem::Version
|
104
|
-
version: 1.
|
90
|
+
version: 1.5.0
|
105
91
|
requirement: !ruby/object:Gem::Requirement
|
106
92
|
requirements:
|
107
93
|
- - '='
|
108
94
|
- !ruby/object:Gem::Version
|
109
|
-
version: 1.
|
95
|
+
version: 1.5.0
|
110
96
|
prerelease: false
|
111
97
|
type: :runtime
|
112
98
|
- !ruby/object:Gem::Dependency
|
@@ -115,12 +101,12 @@ dependencies:
|
|
115
101
|
requirements:
|
116
102
|
- - '='
|
117
103
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
104
|
+
version: 5.0.0
|
119
105
|
requirement: !ruby/object:Gem::Requirement
|
120
106
|
requirements:
|
121
107
|
- - '='
|
122
108
|
- !ruby/object:Gem::Version
|
123
|
-
version:
|
109
|
+
version: 5.0.0
|
124
110
|
prerelease: false
|
125
111
|
type: :runtime
|
126
112
|
- !ruby/object:Gem::Dependency
|
@@ -138,17 +124,17 @@ dependencies:
|
|
138
124
|
prerelease: false
|
139
125
|
type: :runtime
|
140
126
|
- !ruby/object:Gem::Dependency
|
141
|
-
name:
|
127
|
+
name: sensu-redis
|
142
128
|
version_requirements: !ruby/object:Gem::Requirement
|
143
129
|
requirements:
|
144
130
|
- - '='
|
145
131
|
- !ruby/object:Gem::Version
|
146
|
-
version: 1.0
|
132
|
+
version: 1.2.0
|
147
133
|
requirement: !ruby/object:Gem::Requirement
|
148
134
|
requirements:
|
149
135
|
- - '='
|
150
136
|
- !ruby/object:Gem::Version
|
151
|
-
version: 1.0
|
137
|
+
version: 1.2.0
|
152
138
|
prerelease: false
|
153
139
|
type: :runtime
|
154
140
|
- !ruby/object:Gem::Dependency
|
@@ -261,7 +247,6 @@ files:
|
|
261
247
|
- lib/sensu/client/socket.rb
|
262
248
|
- lib/sensu/constants.rb
|
263
249
|
- lib/sensu/daemon.rb
|
264
|
-
- lib/sensu/redis.rb
|
265
250
|
- lib/sensu/server/filter.rb
|
266
251
|
- lib/sensu/server/handle.rb
|
267
252
|
- lib/sensu/server/mutate.rb
|
@@ -285,9 +270,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
285
270
|
version: '0'
|
286
271
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
287
272
|
requirements:
|
288
|
-
- - "
|
273
|
+
- - ">"
|
289
274
|
- !ruby/object:Gem::Version
|
290
|
-
version:
|
275
|
+
version: 1.3.1
|
291
276
|
requirements: []
|
292
277
|
rubyforge_project:
|
293
278
|
rubygems_version: 2.4.8
|
data/lib/sensu/redis.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
gem "em-redis-unified", "1.0.1"
|
2
|
-
|
3
|
-
require "em-redis-unified"
|
4
|
-
|
5
|
-
module Sensu
|
6
|
-
class Redis
|
7
|
-
# Connect to Redis and ensure that the Redis version is at least
|
8
|
-
# 1.3.14, in order to support certain commands.
|
9
|
-
#
|
10
|
-
# @param options [Hash]
|
11
|
-
# @return [Object] Redis connection object.
|
12
|
-
def self.connect(options={})
|
13
|
-
options ||= {}
|
14
|
-
connection = EM::Protocols::Redis.connect(options)
|
15
|
-
connection.info do |info|
|
16
|
-
if info[:redis_version] < "1.3.14"
|
17
|
-
klass = EM::Protocols::Redis::RedisError
|
18
|
-
message = "redis version must be >= 2.0 RC 1"
|
19
|
-
connection.error(klass, message)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
connection
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|