kennel 1.143.1 → 1.144.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: 352765b10b857aa4e8d8a4fa27de59a8be5800208bcebbf76b78b6321fff48cd
4
- data.tar.gz: 83428c482b87caca3dacc21645c493cfc8d6002e881ca792e4cb75281c51249d
3
+ metadata.gz: 5bf4216bfa5c2ae40c29b50d3891a8fe7c08d6a2f75229a923c28991d4537d39
4
+ data.tar.gz: 2a36e4b94db5a0c41ed1d1b1986f52938b564a80cc887e5cd7fbe76bbb480185
5
5
  SHA512:
6
- metadata.gz: 79fd182dc92c9f9dd4fbdf04000c16cd0e01a613935c552780de02ff0a512a31d87cfe3a0c3e4551d3d6245ce3ea5859b293a0547dcbd66a826e6fc8e2afbbeb
7
- data.tar.gz: b3ea7f3c6f1c883aa64da4a5a56615caaffd5179ea45fac5aa17584d44017ae454318e28fd783c323fbe363372ded94b58f7e6ea7098aa0e58f0706ba15a26e7
6
+ metadata.gz: 71d0cde39adf53dcd3d77460be78c6cb08ea3f9bb4f44d08e7a50d86fba3058f9fc47fdc51574262de3357dce9e81d8d7b8d102f139683dae76b0bc04547262a
7
+ data.tar.gz: 6fd4919a07e88a14eca5c14931f77ee08ec0bdfc3be6f446707c9e29aca4aad9b68ca9bbad3cc550e410c89bfaec51d2b9929de720ce9aab7a21a732339b5fa9
data/Readme.md CHANGED
@@ -199,7 +199,6 @@ end
199
199
  ### Updating an existing monitor
200
200
  - use [datadog monitor UI](https://app.datadoghq.com/monitors/manage) to find a monitor
201
201
  - run `URL='https://app.datadoghq.com/monitors/123' bundle exec rake kennel:import` and copy the output
202
- - import task also works with SLO alerts, e.g. `URL='https://app.datadoghq.com/slo/edit/123abc456def123/alerts/789' bundle exec rake kennel:import`
203
202
  - find or create a project in `projects/`
204
203
  - add the monitor to `parts: [` list, for example:
205
204
  ```Ruby
@@ -430,7 +429,7 @@ rake plan
430
429
 
431
430
  Then make changes to play around, do not commit changes and make sure to revert with a `rake kennel:update_datadog` after deleting everything.
432
431
 
433
- To make changes via the UI, make a new free datadog account and use it's credentaisl instead.
432
+ To make changes via the UI, make a new free datadog account and use it's credentials instead.
434
433
 
435
434
  Author
436
435
  ======
@@ -55,7 +55,7 @@ module Kennel
55
55
  end
56
56
 
57
57
  def self.parse_url(url)
58
- url[/\/slo(\?.*slo_id=|\/edit\/)([a-z\d]{10,})(&|$)/, 2]
58
+ url[/[?&]slo_id=([a-z\d]{10,})/, 1] || url[/\/slo\/([a-z\d]{10,})\/edit(\?|$)/, 1]
59
59
  end
60
60
 
61
61
  def resolve_linked_tracking_ids!(id_map, **args)
@@ -4,7 +4,7 @@ module Kennel
4
4
  class Team < Base
5
5
  settings :mention, :tags, :renotify_interval, :kennel_id
6
6
  defaults(
7
- tags: -> { ["team:#{kennel_id.sub(/^teams_/, "")}"] },
7
+ tags: -> { ["team:#{kennel_id.sub(/^teams_/, "").tr("_", "-")}"] },
8
8
  renotify_interval: -> { 0 }
9
9
  )
10
10
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.143.1"
3
+ VERSION = "1.144.1"
4
4
  end
data/template/Readme.md CHANGED
@@ -181,7 +181,6 @@ end
181
181
  ### Updating an existing monitor
182
182
  - use [datadog monitor UI](https://app.datadoghq.com/monitors/manage) to find a monitor
183
183
  - run `URL='https://app.datadoghq.com/monitors/123' bundle exec rake kennel:import` and copy the output
184
- - import task also works with SLO alerts, e.g. `URL='https://app.datadoghq.com/slo/edit/123abc456def123/alerts/789' bundle exec rake kennel:import`
185
184
  - find or create a project in `projects/`
186
185
  - add the monitor to `parts: [` list, for example:
187
186
  ```Ruby
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.143.1
4
+ version: 1.144.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-08-21 00:00:00.000000000 Z
11
+ date: 2023-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs