kennel 1.113.2 → 1.113.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kennel/models/monitor.rb +8 -0
- data/lib/kennel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1820e573733a40ccb56114ecc6c94f8d7732feb10d556f3bf1107c9d21fab7f0
|
4
|
+
data.tar.gz: ed5230938e75e643c71b719f6ec4e3e317e9e94d9fb1a2848bbbe881eea56f4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: beb8e6d2a60fd3c8ebe26cdd14ca70d89b9a107ee0a831cea52601464b7c13afe058f25eaee76add474e728f404d4c56216eea24e5ce4c5a5b58897da1e43af0
|
7
|
+
data.tar.gz: 8000438dd34c1e22334283f2e3892379cc08fadeb6085d74ecd41a3b32fdc0aacb28b9a2019d6bdad7a48bcea94084200f69d8c814054fe928aedf16b06b7ea2
|
@@ -211,6 +211,10 @@ module Kennel
|
|
211
211
|
def validate_json(data)
|
212
212
|
super
|
213
213
|
|
214
|
+
if data[:name]&.start_with?(" ")
|
215
|
+
invalid! "name cannot start with a space"
|
216
|
+
end
|
217
|
+
|
214
218
|
type = data.fetch(:type)
|
215
219
|
|
216
220
|
# do not allow deprecated type that will be coverted by datadog and then produce a diff
|
@@ -241,6 +245,10 @@ module Kennel
|
|
241
245
|
unless ALLOWED_PRIORITY_CLASSES.include?(priority.class)
|
242
246
|
invalid! "priority needs to be an Integer"
|
243
247
|
end
|
248
|
+
|
249
|
+
if data.dig(:options, :timeout_h)&.> 24
|
250
|
+
invalid! "timeout_h must be <= 24"
|
251
|
+
end
|
244
252
|
end
|
245
253
|
|
246
254
|
# verify is_match/is_exact_match and {{foo.name}} uses available variables
|
data/lib/kennel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kennel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.113.
|
4
|
+
version: 1.113.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|