kennel 1.83.0 → 1.84.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: 5c3c766383bf7f533e74b935a6faf2272e552bb7c974fa15261c70aa9d31e800
4
- data.tar.gz: 339c1dcad92fc215d2a26b7091bbe57dc98d3f6ed5a01666e1ee683162bf20e0
3
+ metadata.gz: a509311992fd458bbe488f6959406fce4316725cf9b64e7211d981203a06ef3e
4
+ data.tar.gz: 393aa26717f935a15ec54ed1148e006d3f473e0358d9d46360a8a68e3e06aec8
5
5
  SHA512:
6
- metadata.gz: 97abfc77652ab1afb6192c97f038dc6caa33a2f8aa505c62c6782fef1359b431d93cf293c737d9f2ed03c9bb4d22d0474ac916586aa7ed15863900dc8eb1791d
7
- data.tar.gz: 13e247e4ab000410155b9f4835686168a2017c1ee2fd8b4e0f6619c54f0b055581b1acc855d12ac06b0ed3920782722fbffa1d303ea7aa04ed92104ab1ec6908
6
+ metadata.gz: 6ebf327e582af669842e318571f789de67fea7d2ac0635c50fe472b8032262145feda60ca7df263fe88288c3c9eb35479d0b63cab35988fdda2188a12be5d56a
7
+ data.tar.gz: 65d0177abfb5c8af812c66957201efad2f29efcbfa9c40f9335515d01a475a0153ef7fd90d192f89c6adcfe528789a6c96c3a8c6b2b972cc554b2befd12db072
@@ -5,8 +5,6 @@ module Kennel
5
5
  include OptionalValidations
6
6
 
7
7
  RENOTIFY_INTERVALS = [0, 10, 20, 30, 40, 50, 60, 90, 120, 180, 240, 300, 360, 720, 1440].freeze # minutes
8
- # 2d and 1w are valid timeframes for anomaly monitors
9
- QUERY_INTERVALS = ["1m", "5m", "10m", "15m", "30m", "1h", "2h", "4h", "1d", "2d", "1w"].freeze
10
8
  OPTIONAL_SERVICE_CHECK_THRESHOLDS = [:ok, :warning].freeze
11
9
  READONLY_ATTRIBUTES = superclass::READONLY_ATTRIBUTES + [
12
10
  :multi, :matching_downtimes, :overall_state_modified, :overall_state, :restricted_roles
@@ -202,14 +200,6 @@ module Kennel
202
200
  invalid! "renotify_interval must be one of #{RENOTIFY_INTERVALS.join(", ")}"
203
201
  end
204
202
 
205
- if type == "query alert"
206
- # verify interval is valid
207
- interval = data.fetch(:query)[/\(last_(\S+?)\)/, 1]
208
- if interval && !QUERY_INTERVALS.include?(interval)
209
- invalid! "query interval was #{interval}, but must be one of #{QUERY_INTERVALS.join(", ")}"
210
- end
211
- end
212
-
213
203
  if ["query alert", "service check"].include?(type) # TODO: most likely more types need this
214
204
  # verify is_match/is_exact_match uses available variables
215
205
  message = data.fetch(:message)
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.83.0"
3
+ VERSION = "1.84.0"
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.83.0
4
+ version: 1.84.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-02 00:00:00.000000000 Z
11
+ date: 2021-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday