kennel 1.37.2 → 1.37.3
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 +4 -2
- data/lib/kennel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebcab578e988e97aa6d53ad570f6b8be214adb64f844d3afd6c5273c4382acfc
|
4
|
+
data.tar.gz: f4467892f25a81d61ea87cddadf3aba60fc7539f6257885d3505907f23b4c31d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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:
|
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,
|
data/lib/kennel/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|