kennel 1.143.0 → 1.144.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: 9ab445d9dd8e549520dd2e46d36ccfe47034788d73cae66f8515fd4c0220379f
4
- data.tar.gz: 87738e50cb08c6b1653d1553d130b2ff8cb780e1bc33bda8de7326e9a3c16b1b
3
+ metadata.gz: cbe42470ccefd609c694baedef17ec3ddb4fe2ac954c0a881019092a9c3537a6
4
+ data.tar.gz: c395cb4abfa8d9c81673883501478d99344e68de66a0424c714c648b4b4f26f1
5
5
  SHA512:
6
- metadata.gz: 2b063a1e29ca81eaf2868359f7389fe92eb91a8d3cac7389bf8b21fc4cda640a0716b987366741bbcb90530f588e18214f5720ce757fb66e23b10b49bffdce9f
7
- data.tar.gz: 450eaa3a67d63da9cf51f7ec96f69a29e746dc70fc7cf639905e21348db432f550ded7bd6c40b93e5a8a37b424856efd48802ec69dc500e033db75dbba047e2d
6
+ metadata.gz: c8b5b3f45ded5dc8995dcc143c6ff82c0aa64da8445a3c18edce7668b519cb0afa91e4c920f8c9820523237a785ffdbac1694f92621c1ff3137bf71c7c7b44f7
7
+ data.tar.gz: 734d02fce4549ce4bb4ad15ce8d821d54fbbb042647f66a5445e26e36f5bc944538531206fbb6abe238d4ab79ed63eeeeecaea02bb0e98a55ef03254b7f637d5
data/Readme.md CHANGED
@@ -198,7 +198,6 @@ end
198
198
 
199
199
  ### Updating an existing monitor
200
200
  - use [datadog monitor UI](https://app.datadoghq.com/monitors/manage) to find a monitor
201
- - get the `id` from the url
202
201
  - run `URL='https://app.datadoghq.com/monitors/123' bundle exec rake kennel:import` and copy the output
203
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`
204
203
  - find or create a project in `projects/`
@@ -249,7 +248,6 @@ Remove the code that created the resource. The next update will delete it (see a
249
248
 
250
249
  ### Updating an existing dashboard
251
250
  - go to [datadog dashboard UI](https://app.datadoghq.com/dashboard/lists) and click on _New Dashboard_ to find a dashboard
252
- - get the `id` from the url
253
251
  - run `URL='https://app.datadoghq.com/dashboard/bet-foo-bar' bundle exec rake kennel:import` and copy the output
254
252
  - find or create a project in `projects/`
255
253
  - add a dashboard to `parts: [` list, for example:
@@ -432,7 +430,7 @@ rake plan
432
430
 
433
431
  Then make changes to play around, do not commit changes and make sure to revert with a `rake kennel:update_datadog` after deleting everything.
434
432
 
435
- To make changes via the UI, make a new free datadog account and use it's credentaisl instead.
433
+ To make changes via the UI, make a new free datadog account and use it's credentials instead.
436
434
 
437
435
  Author
438
436
  ======
data/lib/kennel/api.rb CHANGED
@@ -129,7 +129,7 @@ module Kennel
129
129
  if !response.success? && (response.status != 404 || !ignore_404)
130
130
  message = +"Error #{response.status} during #{method.upcase} #{path}\n"
131
131
  message << "request:\n#{JSON.pretty_generate(body)}\nresponse:\n" if body
132
- message << response.body
132
+ message << response.body.encode(message.encoding, invalid: :replace, undef: :replace)
133
133
  raise message
134
134
  end
135
135
 
@@ -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.0"
3
+ VERSION = "1.144.0"
4
4
  end
data/template/Readme.md CHANGED
@@ -180,7 +180,6 @@ end
180
180
 
181
181
  ### Updating an existing monitor
182
182
  - use [datadog monitor UI](https://app.datadoghq.com/monitors/manage) to find a monitor
183
- - get the `id` from the url
184
183
  - run `URL='https://app.datadoghq.com/monitors/123' bundle exec rake kennel:import` and copy the output
185
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`
186
185
  - find or create a project in `projects/`
@@ -231,7 +230,6 @@ Remove the code that created the resource. The next update will delete it (see a
231
230
 
232
231
  ### Updating an existing dashboard
233
232
  - go to [datadog dashboard UI](https://app.datadoghq.com/dashboard/lists) and click on _New Dashboard_ to find a dashboard
234
- - get the `id` from the url
235
233
  - run `URL='https://app.datadoghq.com/dashboard/bet-foo-bar' bundle exec rake kennel:import` and copy the output
236
234
  - find or create a project in `projects/`
237
235
  - add a dashboard to `parts: [` list, for example:
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.0
4
+ version: 1.144.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: 2023-06-08 00:00:00.000000000 Z
11
+ date: 2023-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: diff-lcs
@@ -135,14 +135,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: 3.1.0
138
+ version: 3.2.0
139
139
  required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - - ">="
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
- rubygems_version: 3.3.26
145
+ rubygems_version: 3.4.10
146
146
  signing_key:
147
147
  specification_version: 4
148
148
  summary: Keep datadog monitors/dashboards/etc in version control, avoid chaotic management