kennel 1.144.2 → 1.145.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d1cc43aa92bfd88e9cc7c7f33f1c91aaafc0c5a936e2c8dc0d153c20f7bfc85
4
- data.tar.gz: e1f75c40c4c9a9d38438a2563241193172bc56e020f6ff3b3295dc8485ae415d
3
+ metadata.gz: e3043dcfb11f7d16c0ac340a1dc5d94488f801f52a75ed5946c7ec514a116f8d
4
+ data.tar.gz: 98b4a64f1b659bde487a5d18a5674b9b3c0022e45bbe48bf9150963fcf289e68
5
5
  SHA512:
6
- metadata.gz: 1715277a99ad67ec234522351420712d3c69b617f8ca8cb05118a5d5207ff236177d08183c1315284f4219afd269051745fe6231c771bda943194b0ea2ce6724
7
- data.tar.gz: cbf498bd57f5668806fab7142048e8e4864ebc745f094189ecc9993bd75a288dc994bac582bbc00ce2eaa704a36916066247ce9fd460d4e861733dc5df7b5843
6
+ metadata.gz: e5fee59bdac78be8f4797f3a6ff12117f19cbddf709fb9c1a4d66cc7b39f199ef451d0b014b4556ddedcf5f30285448c554c6bf5168d9bdb54a53beb2d1bf139
7
+ data.tar.gz: b0fba5079b184ed126d23a61d6b30daf3d9190665582f56e332a60909f832efa883a078d68f3cee3879ceaf9a2e461b729fc25d2fbada563e9f283c2456eab4a
data/Readme.md CHANGED
@@ -171,7 +171,7 @@ for simple constants you may prefer to use the plain syntax (`critical: 5.0`).
171
171
  - `cp .env.example .env`
172
172
  - open [Datadog API Settings](https://app.datadoghq.com/account/settings#api)
173
173
  - create a `API Key` or get an existing one from an admin, then add it to `.env` as `DATADOG_API_KEY`
174
- - open [Datadog API Settings](https://app.datadoghq.com/access/application-keys) and create a new key, then add it to `.env` as `DATADOG_APP_KEY=`
174
+ - open [Datadog API Settings](https://app.datadoghq.com/personal-settings/application-keys) and create a new key, then add it to `.env` as `DATADOG_APP_KEY=`
175
175
  - if you have a custom subdomain, change the `DATADOG_SUBDOMAIN=app` in `.env`
176
176
  - verify it works by running `rake plan`, it might show some diff, but should not crash
177
177
  -->
@@ -60,7 +60,8 @@ module Kennel
60
60
  variables: -> { MONITOR_OPTION_DEFAULTS.fetch(:variables) },
61
61
  on_missing_data: -> { MONITOR_OPTION_DEFAULTS.fetch(:on_missing_data) },
62
62
  notification_preset_name: -> { MONITOR_OPTION_DEFAULTS.fetch(:notification_preset_name) },
63
- notify_by: -> { MONITOR_OPTION_DEFAULTS.fetch(:notify_by) }
63
+ notify_by: -> { MONITOR_OPTION_DEFAULTS.fetch(:notify_by) },
64
+ require_full_window: -> { false }
64
65
  )
65
66
 
66
67
  def build_json
@@ -205,7 +206,7 @@ module Kennel
205
206
  # fields are not returned when set to true
206
207
  if ["service check", "event alert"].include?(actual[:type])
207
208
  options[:include_tags] = true unless options.key?(:include_tags)
208
- options[:require_full_window] = true unless options.key?(:require_full_window)
209
+ options[:require_full_window] = false unless options.key?(:require_full_window)
209
210
  end
210
211
 
211
212
  case actual[:type]
@@ -218,6 +219,7 @@ module Kennel
218
219
  OPTIONAL_SERVICE_CHECK_THRESHOLDS.each do |t|
219
220
  options[:thresholds][t] ||= 1
220
221
  end
222
+ else # do nothing
221
223
  end
222
224
 
223
225
  # nil / "" / 0 are not returned from the api when set via the UI
@@ -233,12 +235,6 @@ module Kennel
233
235
 
234
236
  private
235
237
 
236
- def require_full_window
237
- # default 'on_average', 'at_all_times', 'in_total' aggregations to true, otherwise false
238
- # https://docs.datadoghq.com/ap/#create-a-monitor
239
- type != "query alert" || query.start_with?("avg", "min", "sum")
240
- end
241
-
242
238
  def validate_json(data)
243
239
  super
244
240
 
@@ -358,6 +354,7 @@ module Kennel
358
354
  "Warning threshold (#{warning}) must be less than the alert threshold (#{critical}) with > comparison"
359
355
  )
360
356
  end
357
+ else # do nothing
361
358
  end
362
359
  end
363
360
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.144.2"
3
+ VERSION = "1.145.1"
4
4
  end
data/template/Readme.md CHANGED
@@ -154,7 +154,7 @@ for simple constants you may prefer to use the plain syntax (`critical: 5.0`).
154
154
  - `cp .env.example .env`
155
155
  - open [Datadog API Settings](https://app.datadoghq.com/account/settings#api)
156
156
  - create a `API Key` or get an existing one from an admin, then add it to `.env` as `DATADOG_API_KEY`
157
- - open [Datadog API Settings](https://app.datadoghq.com/access/application-keys) and create a new key, then add it to `.env` as `DATADOG_APP_KEY=`
157
+ - open [Datadog API Settings](https://app.datadoghq.com/personal-settings/application-keys) and create a new key, then add it to `.env` as `DATADOG_APP_KEY=`
158
158
  - if you have a custom subdomain, change the `DATADOG_SUBDOMAIN=app` in `.env`
159
159
  - verify it works by running `rake plan`, it might show some diff, but should not crash
160
160
 
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.144.2
4
+ version: 1.145.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-28 00:00:00.000000000 Z
11
+ date: 2023-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs