sensu-settings 10.8.0 → 10.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sensu/settings/validators/check.rb +11 -2
- 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: 605d58f20eae60dba5ae4fbd4bbd4deea46373dd
|
4
|
+
data.tar.gz: fa6d16f5e3637f6310f13a05d9f189ccf2e8249c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '043909936ab89e0a5a7a5df4a298b53493c9de753a78667d4f8d6072889c136653ccf810aa4ad3057ebc70ef6fe6b7a6cb5d55c0434e684faf056e83ec804c3b'
|
7
|
+
data.tar.gz: a51515efe93f5774d0b7db90f379b9b3d0445b5cdfa988455bd6560960a5c4665db276e1d5be41dbe5e4fa121d97ebd2ba963a5cd9eef90f2131de735cacb959
|
@@ -88,13 +88,22 @@ module Sensu
|
|
88
88
|
end
|
89
89
|
|
90
90
|
# Validate check proxy requests.
|
91
|
-
# Validates: proxy_requests
|
91
|
+
# Validates: proxy_requests (client_attributes, splay, splay_coverage)
|
92
92
|
#
|
93
93
|
# @param check [Hash] sensu check definition.
|
94
94
|
def validate_check_proxy_requests(check)
|
95
95
|
if is_a_hash?(check[:proxy_requests])
|
96
|
-
|
96
|
+
proxy_requests = check[:proxy_requests]
|
97
|
+
must_be_a_hash(proxy_requests[:client_attributes]) ||
|
97
98
|
invalid(check, "check proxy_requests client_attributes must be a hash")
|
99
|
+
must_be_boolean_if_set(proxy_requests[:splay]) ||
|
100
|
+
invalid(check, "check proxy_requests splay must be boolean")
|
101
|
+
if proxy_requests[:splay_coverage]
|
102
|
+
(must_be_an_integer(proxy_requests[:splay_coverage]) &&
|
103
|
+
proxy_requests[:splay_coverage] > 0 &&
|
104
|
+
proxy_requests[:splay_coverage] < 100) ||
|
105
|
+
invalid(check, "check proxy_requests splay_coverage must be an integer greater than 0 and less than 100")
|
106
|
+
end
|
98
107
|
else
|
99
108
|
invalid(check, "check proxy_requests must be a hash")
|
100
109
|
end
|
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: 10.
|
4
|
+
version: 10.9.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: 2017-09-
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-json
|