kennel 2.18.2 → 2.19.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: 3a3078b16009b136fcbc16ea73f8840db57aeb16e63c38faf3778207865693ea
4
- data.tar.gz: 7f12c25f2388e145dd66fe59c808a97371248ad3848760152562b7637c07bb14
3
+ metadata.gz: 310e71677ad8a948d4518ddd49216ac0ca3a9f6e81be46b1f5ad890deb5cf262
4
+ data.tar.gz: b4e2efe18a029b6cc2340728da6993c53e74b2d84c689805726deeaa4822d7ba
5
5
  SHA512:
6
- metadata.gz: 391adb884ea9df702d30af303787e4ec9a674ed37b4f4ff968f4e3fec286410d48cca6b12e45a25c493a63b22153628ac2c0233adf59f3f3c66323fe08e62a5e
7
- data.tar.gz: 968dd89cc955d25bf46ce53310331ce280e7a24f98f100c51cc1b0d20607ab3884733d091c0b9865f7f3208e44a4e4290fdfc006a59b8f2be4c7898af628d409
6
+ metadata.gz: e86edb395863a4e8d6a0a5ccbb0cb1acf514326a0168def890a184d32ca834273256dd4f2cf38112eaecd49d4373d97fa575c067ddd6d9d9addab50a7694fa72
7
+ data.tar.gz: 15f6cc720bd886aa477b24d3bc70d0327696e6c0a3e6727cd609a78681a65907dbab89b743e455076e91c6a1ad8d5115f090a3a6e277438693f24f8538b03164
@@ -28,7 +28,8 @@ module Kennel
28
28
  variables: nil,
29
29
  on_missing_data: nil,
30
30
  notification_preset_name: nil,
31
- notify_by: nil
31
+ notify_by: nil,
32
+ include_tags: true
32
33
  }.freeze
33
34
  DEFAULT_ESCALATION_MESSAGE = ["", nil].freeze
34
35
  ALLOWED_PRIORITY_CLASSES = [NilClass, Integer].freeze
@@ -45,7 +46,7 @@ module Kennel
45
46
  :query, :name, :message, :escalation_message, :critical, :type, :renotify_interval, :warning, :timeout_h, :evaluation_delay,
46
47
  :ok, :no_data_timeframe, :notify_no_data, :notify_audit, :tags, :critical_recovery, :warning_recovery, :require_full_window,
47
48
  :threshold_windows, :scheduling_options, :new_host_delay, :new_group_delay, :group_retention_duration, :priority,
48
- :variables, :on_missing_data, :notification_preset_name, :notify_by
49
+ :variables, :on_missing_data, :notification_preset_name, :notify_by, :include_tags
49
50
  )
50
51
 
51
52
  defaults(
@@ -73,7 +74,8 @@ module Kennel
73
74
  on_missing_data: -> { MONITOR_OPTION_DEFAULTS.fetch(:on_missing_data) },
74
75
  notification_preset_name: -> { MONITOR_OPTION_DEFAULTS.fetch(:notification_preset_name) },
75
76
  notify_by: -> { MONITOR_OPTION_DEFAULTS.fetch(:notify_by) },
76
- require_full_window: -> { false }
77
+ require_full_window: -> { false },
78
+ include_tags: -> { MONITOR_OPTION_DEFAULTS.fetch(:include_tags) }
77
79
  )
78
80
 
79
81
  def build_json
@@ -93,7 +95,7 @@ module Kennel
93
95
  require_full_window: require_full_window,
94
96
  new_host_delay: new_host_delay,
95
97
  new_group_delay: new_group_delay,
96
- include_tags: true,
98
+ include_tags: include_tags,
97
99
  escalation_message: Utils.presence(escalation_message.strip),
98
100
  evaluation_delay: evaluation_delay,
99
101
  renotify_interval: renotify_interval || 0,
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "2.18.2"
3
+ VERSION = "2.19.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: 2.18.2
4
+ version: 2.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser