kennel 1.18.1 → 1.18.2

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: a0f12ddf33a79e3990fa9c0c3acd35ed93da8c2e6c8474d7ef99fd27a5038f50
4
- data.tar.gz: 7e37bccbab376f4f13befdd33505b908c274099fc8ad42d2301260f10b8e80dc
3
+ metadata.gz: 734334b788520b60627349b1938a3ff689a7a7f70a73ea2ae89461c0e0ec36e8
4
+ data.tar.gz: 72996467fb2c1f1ca7a3af55e0e7a70f28c8db29173dedb5ccb0e9010137ec58
5
5
  SHA512:
6
- metadata.gz: 5f9ed0231f26e3b848cdbcde6806016be2294fe03c3dcd1829c699dfb82bf5083d3d71aa93eb1acec541007ce581de9847a37aca6ba896b2b658b6a90f9aa0d8
7
- data.tar.gz: f11bf2f9c7a0118e9d4181cee88025aed13c5d06800b2dc855301c13fb069c3c4e73085a1559efcdf30feec5c857af26dc3b476d8e6795abe42ed4e910b5fa93
6
+ metadata.gz: 2cf10e3bfa2a185ced7fcd831cff8fdac2405a99a053d9c6eb58507fcb06acdf7b73597cd10a77674ce3c57cdd4346ff9651f0b2f56428e690ee2546cbe4cae2
7
+ data.tar.gz: e9b6b44dbf0e83613ed4492e21cd521105777286e3e094e917baf02d9ada504971396ca176c22856ed8ac33501f7066c98917e8366752c0bfa0ae27e9a6ec05e
@@ -46,7 +46,7 @@ module Kennel
46
46
  def filtered_monitors(api, tag)
47
47
  # Download all monitors with given tag
48
48
  monitors = Progress.progress("Downloading") do
49
- api.list("monitor", monitor_tags: tag)
49
+ api.list("monitor", monitor_tags: tag, group_states: "all")
50
50
  end
51
51
 
52
52
  raise "No monitors for #{tag} found, check your spelling" if monitors.empty?
@@ -54,13 +54,6 @@ module Kennel
54
54
  # only keep monitors that are not completely silenced
55
55
  monitors.reject! { |m| m[:options][:silenced].key?(:*) }
56
56
 
57
- # get state details to romove silenced alerts
58
- Progress.progress("Getting monitor details") do
59
- monitors = Utils.parallel(monitors) do |m|
60
- api.show("monitor", m.fetch(:id), group_states: "all")
61
- end
62
- end
63
-
64
57
  # only keep groups that are alerting
65
58
  monitors.each { |m| m[:state][:groups].reject! { |_, g| g[:status] == "OK" } }
66
59
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.18.1"
3
+ VERSION = "1.18.2"
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.18.1
4
+ version: 1.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-11 00:00:00.000000000 Z
11
+ date: 2018-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday