kennel 1.153.0 → 1.154.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/kennel/models/monitor.rb +3 -2
- data/lib/kennel/projects_provider.rb +2 -1
- data/lib/kennel/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2beb6fcf1718d24f82ba5ac797374a416ff8b01b7d501680deb88be0a1344176
|
4
|
+
data.tar.gz: 79e0b70d6106390596317c587b72391ddc4f074423828de974afdf2b82cc4174
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4f0a7f72f2a15630ec60318993d08206be1014914c3795ae80385301e9a2c16d6232e06f84a120899dbaba71459e60fb69d603a963b4f0897024c107a9b9bbf
|
7
|
+
data.tar.gz: b9e19c9620288e9d7262a51f547870c35288769e4833484e3bad00ad689a3c3d779ac4c96ea1a77400390a94b7f87490f4a715e243d62a552c6311219e84ba26
|
@@ -141,8 +141,9 @@ module Kennel
|
|
141
141
|
options[:renotify_statuses] = statuses
|
142
142
|
end
|
143
143
|
|
144
|
-
#
|
145
|
-
|
144
|
+
# on_missing_data cannot be used with notify_no_data or no_data_timeframe
|
145
|
+
# TODO migrate everything to only use on_missing_data
|
146
|
+
if data.fetch(:type) == "event-v2 alert" || on_missing_data != "default"
|
146
147
|
options[:on_missing_data] = on_missing_data
|
147
148
|
options[:notify_no_data] = false # cannot set nil or it's an endless update loop
|
148
149
|
options.delete :no_data_timeframe
|
@@ -25,7 +25,8 @@ module Kennel
|
|
25
25
|
|
26
26
|
# TODO: also auto-load projects and update expected path too
|
27
27
|
["projects"].each do |folder|
|
28
|
-
|
28
|
+
# we need the extra sort so foo/bar.rb is loaded before foo/bar/baz.rb
|
29
|
+
Dir["#{folder}/**/*.rb"].sort.each { |f| require "./#{f}" } # rubocop:disable Lint/RedundantDirGlobSort
|
29
30
|
end
|
30
31
|
rescue NameError => e
|
31
32
|
message = e.message
|
data/lib/kennel/version.rb
CHANGED