kennel 1.25.1 → 1.25.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce3e83af0040ecfd37b521c17f1aebaa8e0f4c15c717922fae5ae0fe3be758fa
4
- data.tar.gz: 157bd5e5ee60a69f806de7a691eb76cbdb1e591e8db1046a9140427edcad79b8
3
+ metadata.gz: 2ae305a01ea89bad8d057c85b3cc58a49ef5464fe1814a505db3347c985b660a
4
+ data.tar.gz: c95b134c4a17fde2370c548c22e0bc56bbc416e4d20d30705713d726001f280e
5
5
  SHA512:
6
- metadata.gz: c0aa9861587aa05e54b2efc2c786f4db3f799cec30066cf03bbd85334772f39089c19d8bb2b0f70632c4fbe0013b05263b73f71044f4f0fa95bc6e8d57a76e06
7
- data.tar.gz: 41a8a2ee3354c5caf964fcfda6ba12bf21bfa34a128009356002986e93e041b603ecfcfb84103dc59a9054846818f3275f4995f49f5980f2623cb33ea46b6c18
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.25.1"
3
+ VERSION = "1.25.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kennel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.1
4
+ version: 1.25.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser