kennel 1.37.2 → 1.37.3

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: b610f10a03eec53d88d2579e4fd594593b6d14a98ea91296af29ec8610aa0068
4
- data.tar.gz: 22f03d70597da67fa8e66bab0b703592464e4b62e544de71bea44073590c7b82
3
+ metadata.gz: ebcab578e988e97aa6d53ad570f6b8be214adb64f844d3afd6c5273c4382acfc
4
+ data.tar.gz: f4467892f25a81d61ea87cddadf3aba60fc7539f6257885d3505907f23b4c31d
5
5
  SHA512:
6
- metadata.gz: 94cca0ff87e252e324548b31dbe05bcabad433799690bbfd3ea187ddf0167cf2e6e1ef3cb841ca0ab99a61d2fa58960a3e57347ef0bd24c585eed2aa0c045925
7
- data.tar.gz: 9cac8589b30887aafd21d5b3b60d2d3552f869a1708e5270186ff54473b49e41b1617cced918991c0769ad79c70e4f46c8d34adaa142f7b161f6cf7665df6010
6
+ metadata.gz: e3d90b3142907d5206379ab0826f40d36e7afdca45fe624ac5e13376da899951664a51948a48754d0dfb8325aa4ed0e8ee0cb050a92f716fecb7f5afe3b34360
7
+ data.tar.gz: 4175e0c4c7846d263ba47c09e1f730cc4376f5d6bb75084df88928ec33ada8d5a00248a2a41278271d942f174d14bdd4966831a0edb18222904e02cbb99a102e
@@ -13,6 +13,7 @@ module Kennel
13
13
  # defaults that datadog uses when options are not sent, so safe to leave out if our values match their defaults
14
14
  MONITOR_OPTION_DEFAULTS = {
15
15
  evaluation_delay: nil,
16
+ new_host_delay: 300,
16
17
  timeout_h: 0,
17
18
  renotify_interval: 120,
18
19
  no_data_timeframe: nil # this works out ok since if notify_no_data is on, it would never be nil
@@ -22,7 +23,7 @@ module Kennel
22
23
  settings(
23
24
  :query, :name, :message, :escalation_message, :critical, :kennel_id, :type, :renotify_interval, :warning, :timeout_h, :evaluation_delay,
24
25
  :ok, :id, :no_data_timeframe, :notify_no_data, :notify_audit, :tags, :critical_recovery, :warning_recovery, :require_full_window,
25
- :threshold_windows
26
+ :threshold_windows, :new_host_delay
26
27
  )
27
28
 
28
29
  defaults(
@@ -35,6 +36,7 @@ module Kennel
35
36
  notify_no_data: -> { true },
36
37
  no_data_timeframe: -> { notify_no_data ? 60 : nil },
37
38
  notify_audit: -> { true },
39
+ new_host_delay: -> { MONITOR_OPTION_DEFAULTS.fetch(:new_host_delay) },
38
40
  tags: -> { @project.tags },
39
41
  timeout_h: -> { MONITOR_OPTION_DEFAULTS.fetch(:timeout_h) },
40
42
  evaluation_delay: -> { MONITOR_OPTION_DEFAULTS.fetch(:evaluation_delay) },
@@ -64,7 +66,7 @@ module Kennel
64
66
  no_data_timeframe: no_data_timeframe,
65
67
  notify_audit: notify_audit,
66
68
  require_full_window: require_full_window,
67
- new_host_delay: 300,
69
+ new_host_delay: new_host_delay,
68
70
  include_tags: true,
69
71
  escalation_message: Utils.presence(escalation_message.strip),
70
72
  evaluation_delay: evaluation_delay,
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.37.2"
3
+ VERSION = "1.37.3"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kennel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.37.2
4
+ version: 1.37.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-01 00:00:00.000000000 Z
11
+ date: 2019-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday