kennel 1.25.1 → 1.25.2
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 -2
- 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: 2ae305a01ea89bad8d057c85b3cc58a49ef5464fe1814a505db3347c985b660a
|
4
|
+
data.tar.gz: c95b134c4a17fde2370c548c22e0bc56bbc416e4d20d30705713d726001f280e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83fabb8313e79a7e845b3c25ceb02d122b8678dc2704b1cd71ffb1ecdac74bcc9ece1d39c398e34f5d74c9653e7482ba4750a0e55d959c795a50dd44158b658c
|
7
|
+
data.tar.gz: 20568a12ab049e0a370d7faaa84ca7737c3a535b1aad699155f993952f19688f344f878787457e1a3ab95a4281660aec5b1bf24a3a2e68163e8491f9c0567791
|
@@ -12,7 +12,8 @@ module Kennel
|
|
12
12
|
|
13
13
|
settings(
|
14
14
|
:query, :name, :message, :escalation_message, :critical, :kennel_id, :type, :renotify_interval, :warning, :timeout_h, :evaluation_delay,
|
15
|
-
:ok, :id, :no_data_timeframe, :notify_no_data, :notify_audit, :tags, :multi, :critical_recovery, :warning_recovery, :require_full_window
|
15
|
+
:ok, :id, :no_data_timeframe, :notify_no_data, :notify_audit, :tags, :multi, :critical_recovery, :warning_recovery, :require_full_window,
|
16
|
+
:threshold_windows
|
16
17
|
)
|
17
18
|
defaults(
|
18
19
|
message: -> { "\n\n@slack-#{project.slack}" },
|
@@ -30,7 +31,8 @@ module Kennel
|
|
30
31
|
evaluation_delay: -> { nil },
|
31
32
|
multi: -> { !NON_MULTI_TYPES.include?(type) || query.include?(" by ") },
|
32
33
|
critical_recovery: -> { nil },
|
33
|
-
warning_recovery: -> { nil }
|
34
|
+
warning_recovery: -> { nil },
|
35
|
+
threshold_windows: -> { nil }
|
34
36
|
)
|
35
37
|
|
36
38
|
attr_reader :project
|
@@ -88,6 +90,10 @@ module Kennel
|
|
88
90
|
thresholds.each { |k, v| thresholds[k] = Float(v) }
|
89
91
|
end
|
90
92
|
|
93
|
+
if windows = threshold_windows
|
94
|
+
options[:threshold_windows] = windows
|
95
|
+
end
|
96
|
+
|
91
97
|
validate_json(data) if validate
|
92
98
|
|
93
99
|
@as_json = data
|
data/lib/kennel/version.rb
CHANGED