kennel 1.46.1 → 1.47.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/tasks.rb +13 -0
- 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: a93854917f3c33bf9384862c47699e239045a9f1e85ad97e5622b1ea83e4ad13
|
|
4
|
+
data.tar.gz: f570f7949f98046ca6bdf28e463ce50fcbd2759155805d8de8ab0ddc1cb21cf4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 07154d3128ef64dc3b3d4e0aa7971e071e9498a6d4784bede12c5588cac6dcd7b535a6dce7dfce6bbbbee30fe5edae2dc5ec5fc9236a5de725339af3aefd9cf4
|
|
7
|
+
data.tar.gz: ea83dad0e6d4b1a42877cf42958f410e29dc985677fc08ad61cbfce95804609df825a214c93c849b15cf7b18e3faf8278779ebf77c2b6cc46dc496cc8250d000
|
data/lib/kennel/tasks.rb
CHANGED
|
@@ -50,6 +50,19 @@ namespace :kennel do
|
|
|
50
50
|
Kennel::UnmutedAlerts.print(Kennel.send(:api), tag)
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
+
desc "show monitors with no data by TAG, for example TAG=team:foo"
|
|
54
|
+
task nodata: :environment do
|
|
55
|
+
tag = ENV["TAG"] || abort("Call with TAG=foo:bar")
|
|
56
|
+
monitors = Kennel.send(:api).list("monitor", monitor_tags: tag, group_states: "no data")
|
|
57
|
+
monitors.select! { |m| m[:overall_state] == "No Data" }
|
|
58
|
+
|
|
59
|
+
monitors.each do |m|
|
|
60
|
+
Kennel.out.puts m[:name]
|
|
61
|
+
Kennel.out.puts Kennel::Utils.path_to_url("/monitors/#{m[:id]}")
|
|
62
|
+
Kennel.out.puts
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
53
66
|
desc "Convert existing resources to copy-pastable definitions to import existing resources RESOURCE=dash ID=1234"
|
|
54
67
|
task import: :environment do
|
|
55
68
|
resource = ENV["RESOURCE"] || abort("Call with RESOURCE=dash") # TODO: add others
|
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.47.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: 2019-08-
|
|
11
|
+
date: 2019-08-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|