kennel 2.22.0 → 2.22.1

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: b931b9c2d75d6e0d69967e3088795e72d8a5f3f558ff1dd1b6de03efde7aabf8
4
- data.tar.gz: '081dde24122f351f92c7dc8f16e7877ec3dcd1f7226bd1e4fc126abd3044798d'
3
+ metadata.gz: 21600f7f1ed4c550d106f75619a29a57cf2c6631c95a04b332f2d1a808fc94be
4
+ data.tar.gz: e366f291cf986a51e7841a70641854fe3090ed39b8616b4acc6b80fc030dcf33
5
5
  SHA512:
6
- metadata.gz: ffd01589e499c34d72dd477f5e3e00369582c42cacbf7eae19493e791b84ecbac42c48c5bf34e3d8c8a6245f555d29f62e3cb879cc2e24892b555766f9b5ffcc
7
- data.tar.gz: 7a95114123013fd90a64993f86f217b5f4379e0d3dc6b19d876d2ac42f404b4907ef35b2396c811c4291838ca8183073523090bb2d89882dbbffa6972b40bb38
6
+ metadata.gz: cb9953eb8430131345f3b21ef6cec57ece7248114439a2d5c6bbe22ca522b72350077ff927f8521f51a97695827f8dc1b91cf1809b0c0e05d7dab486643465c7
7
+ data.tar.gz: dca2a03ad0132035f34d331daf622ed41c281e993037212b8d7894fbdcdd6442dcc7fe62bc2ca9f125ef816027f70d94422a1e06bda60e42743309e8a787958c
@@ -352,6 +352,10 @@ module Kennel
352
352
  if data.dig(:options, :timeout_h)&.> 24
353
353
  invalid! :invalid_timeout_h, "timeout_h must be <= 24"
354
354
  end
355
+
356
+ if type == "composite" && data.dig(:options, :new_group_delay)
357
+ invalid! :composite_new_group_delay, "new_group_delay is not supported for composite monitors"
358
+ end
355
359
  end
356
360
 
357
361
  # verify is_match/is_exact_match and {{foo.name}} uses available variables
@@ -48,7 +48,9 @@ module Kennel
48
48
  threshold =
49
49
  thresholds.detect { |t| t[:timeframe] == p } ||
50
50
  raise(ArgumentError, "#{tracking_id} unable to find threshold with timeframe #{p}")
51
- data[:warning_threshold] = threshold[:warning]
51
+ if (value = threshold[:warning]) # only set if needed to avoid permanent diff
52
+ data[:warning_threshold] = value
53
+ end
52
54
  data[:target_threshold] = threshold[:target]
53
55
  end
54
56
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "2.22.0"
3
+ VERSION = "2.22.1"
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: 2.22.0
4
+ version: 2.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser