kennel 1.24.0 → 1.25.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc0e165b94919fa57bee6f74db80803a7ad13bdb987eb236e75ae7cacb6b76b0
4
- data.tar.gz: 13b1a80354a6a40fb9ac9af6cefb9cf647326f91b440f64d7fbe022b758605ab
3
+ metadata.gz: 04415dfd456a6fee8e4c924a8424e352ec56a517c2fd30978d713e6e71ed3fcf
4
+ data.tar.gz: 3f44e7c4ee40a3b1e7acaef70d7f14bd74e0f7d9ab1466e51ccf3c556a1e392b
5
5
  SHA512:
6
- metadata.gz: e542c763c3a7b7a8820d0260ae17b6e630cf86d65a36a07d1b77ae2e8c13755d933b1df711b352b6b23dfd27bf0cfc32a19ec3f21459b50c4dfc2f9223edd748
7
- data.tar.gz: a64aabfcaa572f2edfdd620dd5a593d99f5b8ba1bae1411ee0458ba1d1cbafbb692487ab2ffb8bd5a28d6a1984003c0872499f6d3a6c0af1554535c341c6ec0a
6
+ metadata.gz: 7ecab7b149be13704a2e812585fc72344090d7ca77a49c2efe50f3eb3ada40f0e2c9cb677892e2ef4f2746b3db2fe7a138a57266f9b6ae5423b1ee08b1abd660
7
+ data.tar.gz: 3ebdd13c2e756e4c0a27ed1130844bf5547a5355b432085f6470e047b7318236c5392fbf504a095fac9e1025fea4fe2ba683f8b8465ed2cc308e71627236822b
@@ -11,7 +11,7 @@ module Kennel
11
11
  NON_MULTI_TYPES = ["query alert", "log alert"].freeze # NOTE: event alerts don't seem to return their multi setting
12
12
 
13
13
  settings(
14
- :query, :name, :message, :escalation_message, :critical, :kennel_id, :type, :renotify_interval, :warning, :timeout_h,
14
+ :query, :name, :message, :escalation_message, :critical, :kennel_id, :type, :renotify_interval, :warning, :timeout_h, :evaluation_delay,
15
15
  :ok, :id, :no_data_timeframe, :notify_no_data, :notify_audit, :tags, :multi, :critical_recovery, :warning_recovery, :require_full_window
16
16
  )
17
17
  defaults(
@@ -27,7 +27,8 @@ module Kennel
27
27
  notify_audit: -> { true },
28
28
  tags: -> { @project.tags },
29
29
  timeout_h: -> { 0 },
30
- multi: -> { !NON_MULTI_TYPES.include?(type) || query.include?(" by ") },
30
+ evaluation_delay: -> { nil },
31
+ multi: -> { !NON_MULTI_TYPES.include?(type) || query.include?(" by ") },
31
32
  critical_recovery: -> { nil },
32
33
  warning_recovery: -> { nil }
33
34
  )
@@ -57,7 +58,7 @@ module Kennel
57
58
  new_host_delay: 300,
58
59
  include_tags: true,
59
60
  escalation_message: Utils.presence(escalation_message.strip),
60
- evaluation_delay: nil,
61
+ evaluation_delay: evaluation_delay,
61
62
  locked: false, # setting this to true prevents any edit and breaks updates when using replace workflow
62
63
  renotify_interval: renotify_interval || 0,
63
64
  thresholds: {
@@ -124,7 +125,7 @@ module Kennel
124
125
  end
125
126
  end
126
127
 
127
- # nil or "" are not returned from the api
128
+ # nil / "" / 0 are not returned from the api when set via the UI
128
129
  options[:evaluation_delay] ||= nil
129
130
  end
130
131
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.24.0"
3
+ VERSION = "1.25.0"
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.24.0
4
+ version: 1.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser