kennel 1.4.0 → 1.5.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 +4 -4
- data/lib/kennel/models/monitor.rb +7 -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: 4507d1d7aaf3337291a14d4caa161d2b9c66bc1512a27d793c7b37342ac3a2f9
|
4
|
+
data.tar.gz: 6d85fbcc645f2069e6e5f00c03dab2984a61a1c0651560584bb0a02dbb6aef02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48f54e8ba4d1fabb07daf24d87cdccf9cff0a91001140473a83a6f8127d74e72a86b366d5f8442f93fa7074f8ec26e93d5857002bbd816048740368ece38f2b2
|
7
|
+
data.tar.gz: bb9a2db2f3e78e0573f01b478b5394c644179d7ef34bf7a3d93430bf80882347b09476414c9eec782406cb84ffc859b9f3b28ff756be175a66febbe98096427b
|
@@ -26,8 +26,7 @@ module Kennel
|
|
26
26
|
tags: -> { @project.tags },
|
27
27
|
multi: -> { type != "query alert" || query.include?(" by ") },
|
28
28
|
critical_recovery: -> { nil },
|
29
|
-
warning_recovery: -> { nil }
|
30
|
-
require_full_window: -> { true }
|
29
|
+
warning_recovery: -> { nil }
|
31
30
|
)
|
32
31
|
|
33
32
|
attr_reader :project
|
@@ -129,6 +128,12 @@ module Kennel
|
|
129
128
|
|
130
129
|
private
|
131
130
|
|
131
|
+
def require_full_window
|
132
|
+
# default 'on_average', 'at_all_times', 'in_total' aggregations to true, otherwise false
|
133
|
+
# https://docs.datadoghq.com/ap/#create-a-monitor
|
134
|
+
type != "query alert" || query.start_with?("avg", "min", "sum")
|
135
|
+
end
|
136
|
+
|
132
137
|
def validate_json(data)
|
133
138
|
type = data.fetch(:type)
|
134
139
|
|
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.
|
4
|
+
version: 1.5.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: 2018-
|
11
|
+
date: 2018-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|