sensu-settings 9.6.0 → 9.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sensu/settings/validators/check.rb +14 -0
- data/sensu-settings.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 032bd11747ae6ca9be56e9634863f385fabb5b60
|
4
|
+
data.tar.gz: 7e2372017f50b83b8e2a825d994faa99776b132d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ed866698f49310e81b106b5424bb9f5c4457584aae40f1240e8cafb046bcc16dc6af332de9d9c6f89a3a1ac6481df11ddd8374dafb715b541b71a3ea782acac
|
7
|
+
data.tar.gz: 760aa8d2cd35951ac1467fb9c7638a7a99d89efe574a0532c4dcadf0dc0f0aaa84db58b11c949a44ef8f7647d9b5fbb79aae023f420461f4ad13be81c2154c15
|
@@ -64,6 +64,19 @@ module Sensu
|
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
+
# Validate check proxy requests.
|
68
|
+
# Validates: proxy_requests
|
69
|
+
#
|
70
|
+
# @param check [Hash] sensu check definition.
|
71
|
+
def validate_check_proxy_requests(check)
|
72
|
+
if is_a_hash?(check[:proxy_requests])
|
73
|
+
must_be_a_hash(check[:proxy_requests][:client_attributes]) ||
|
74
|
+
invalid(check, "check proxy_requests client_attributes must be a hash")
|
75
|
+
else
|
76
|
+
invalid(check, "check proxy_requests must be a hash")
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
67
80
|
# Validate check handling.
|
68
81
|
# Validates: handler, handlers
|
69
82
|
#
|
@@ -147,6 +160,7 @@ module Sensu
|
|
147
160
|
validate_check_execution(check)
|
148
161
|
validate_check_source(check) if check[:source]
|
149
162
|
validate_check_scheduling(check)
|
163
|
+
validate_check_proxy_requests(check) if check[:proxy_requests]
|
150
164
|
validate_check_handling(check)
|
151
165
|
validate_check_ttl(check) if check[:ttl]
|
152
166
|
validate_check_aggregate(check)
|
data/sensu-settings.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.
|
4
|
+
version: 9.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Porter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-json
|