kennel 1.150.0 → 1.151.0

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: 29514740a2760f494ce7958c4156f5dd864635e61abdca7c5c805226bc56e255
4
- data.tar.gz: 58d17b770fa613029bd490d60aeb3131a1e3e036f82ef5d49b87ebe9e1151292
3
+ metadata.gz: cb3596164ed93f9fc95cd1fd986d70f106eaa6bcf5131411f878334a292b23aa
4
+ data.tar.gz: 87212f9093312ba1f824478ea96c521752aa570ba3bd8b0d717a292e5a9e314f
5
5
  SHA512:
6
- metadata.gz: d9a379ff67c951e8b8bb346272da47d420ba95cd9ac856dd592a94696b564dc4010db13945fbeaa42480f10288baf441886bea5f0e03981356231e210cfc1d6b
7
- data.tar.gz: 99d921199f21e237880ee6a38f51e62ab7ff2d94bdf886f3553a3102defea51b33cc7366a7775a6dcb9ccac869594bcb7bc653d1ed09fdd35a7771b418defb06
6
+ metadata.gz: 7edd9655e8ec4eed27ed7d0a8865195aed604e7bfddcef7cd7c48d2d681052d31058747ecbc2d516653fc352fec96f34ab6a16996443eaa8007613c32fe12b10
7
+ data.tar.gz: 993452d3c4dbe9b71b98b10bf0bb5e5cea9a30b88b90bf100eff1709fb706064aee9238cbc9e9fec674f9672526dc8bd82a986e935ad2219e2a030d9f3a85a76
data/Readme.md CHANGED
@@ -342,6 +342,7 @@ so they can be created in a single update and can be re-created if any of them i
342
342
  |Dashboard|uptime|`monitor: {id: "foo:bar"}`|
343
343
  |Dashboard|alert_graph|`alert_id: "foo:bar"`|
344
344
  |Dashboard|slo|`slo_id: "foo:bar"`|
345
+ |Dashboard|timeseries|`queries: [{ data_source: "slo", slo_id: "foo:bar" }]`|
345
346
  |Monitor|composite|`query: -> { "%{foo:bar} && %{foo:baz}" }`|
346
347
  |Monitor|slo alert|`query: -> { "error_budget(\"%{foo:bar}\").over(\"7d\") > 123.0" }`|
347
348
  |Slo|monitor|`monitor_ids: -> ["foo:bar"]`|
@@ -195,6 +195,14 @@ module Kennel
195
195
  if id = definition[:slo_id]
196
196
  definition[:slo_id] = resolve(id, :slo, id_map, **args) || id
197
197
  end
198
+ when "timeseries"
199
+ definition[:requests]&.each do |request|
200
+ request[:queries]&.each do |query|
201
+ if query[:data_source] == "slo" && (slo_id = query[:slo_id])
202
+ query[:slo_id] = resolve(slo_id, :slo, id_map, **args) || slo_id
203
+ end
204
+ end
205
+ end
198
206
  end
199
207
  end
200
208
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.150.0"
3
+ VERSION = "1.151.0"
4
4
  end
data/template/Readme.md CHANGED
@@ -324,6 +324,7 @@ so they can be created in a single update and can be re-created if any of them i
324
324
  |Dashboard|uptime|`monitor: {id: "foo:bar"}`|
325
325
  |Dashboard|alert_graph|`alert_id: "foo:bar"`|
326
326
  |Dashboard|slo|`slo_id: "foo:bar"`|
327
+ |Dashboard|timeseries|`queries: [{ data_source: "slo", slo_id: "foo:bar" }]`|
327
328
  |Monitor|composite|`query: -> { "%{foo:bar} && %{foo:baz}" }`|
328
329
  |Monitor|slo alert|`query: -> { "error_budget(\"%{foo:bar}\").over(\"7d\") > 123.0" }`|
329
330
  |Slo|monitor|`monitor_ids: -> ["foo:bar"]`|
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.150.0
4
+ version: 1.151.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: 2024-03-29 00:00:00.000000000 Z
11
+ date: 2024-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs