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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e553a58a0234a8f08b53c9a00003df0fb4473f6de8b784a398bfd6dde56af721
4
- data.tar.gz: 37e35dcd8c26bc0581316218bb269f78a33c451bb7c7183decc8983e07c4ada6
3
+ metadata.gz: a93854917f3c33bf9384862c47699e239045a9f1e85ad97e5622b1ea83e4ad13
4
+ data.tar.gz: f570f7949f98046ca6bdf28e463ce50fcbd2759155805d8de8ab0ddc1cb21cf4
5
5
  SHA512:
6
- metadata.gz: 59acd5f9e89c4fb361f123eb3c335506a5504568230da791213700c2db1e943e58fecb82b89654f1dce9cc4cfbe6c0e1d45e9203f65c4f333105b2be9858ba8f
7
- data.tar.gz: 724611c9c2854ea9f8eef7842dbee85340b2d784e51820ccacfb5b589b24418f2c6a2a41abb68dd02d5ecd9c15e9bd17681b110baafd717f3885a6604d71e33d
6
+ metadata.gz: 07154d3128ef64dc3b3d4e0aa7971e071e9498a6d4784bede12c5588cac6dcd7b535a6dce7dfce6bbbbee30fe5edae2dc5ec5fc9236a5de725339af3aefd9cf4
7
+ data.tar.gz: ea83dad0e6d4b1a42877cf42958f410e29dc985677fc08ad61cbfce95804609df825a214c93c849b15cf7b18e3faf8278779ebf77c2b6cc46dc496cc8250d000
@@ -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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.46.1"
3
+ VERSION = "1.47.0"
4
4
  end
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.46.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-14 00:00:00.000000000 Z
11
+ date: 2019-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday