circonus 3.4.0 → 3.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/circonus-delete-host +6 -6
  2. metadata +2 -2
@@ -15,22 +15,22 @@ cu = CirconusUtil.new() { |opts,options|
15
15
  }
16
16
 
17
17
  print "Deleting monitoring for host #{host}\n"
18
- cbs = @c.list_check_bundle({'tags_has'=>"fqdn:#{host.downcase}"})
18
+ cbs = cu.circonus.list_check_bundle({'tags_has'=>"fqdn:#{host.downcase}"})
19
19
  checks = cbs.map { |m| m['_checks'] }.flatten
20
- graphs = @c.list_graph({'tags_has'=>"fqdn:#{host.downcase}"})
20
+ graphs = cu.circonus.list_graph({'tags_has'=>"fqdn:#{host.downcase}"})
21
21
  checks.each do |check|
22
- rule_sets = @c.list_rule_set({'check'=>check})
22
+ rule_sets = cu.circonus.list_rule_set({'check'=>check})
23
23
  rule_sets.each do |rs|
24
- @c.delete_rule_set(rs['_cid'])
24
+ cu.circonus.delete_rule_set(rs['_cid'])
25
25
  puts "Deleting rule set id: #{rs['_cid']}"
26
26
  end
27
27
  end
28
28
  graphs.each do |graph|
29
- @c.delete_graph(graph['_cid'])
29
+ cu.circonus.delete_graph(graph['_cid'])
30
30
  puts "Deleting graph id: #{graph['_cid']}"
31
31
  end
32
32
  cbs.each do |cb|
33
- @c.delete_check_bundle(cb['_cid'])
33
+ cu.circonus.delete_check_bundle(cb['_cid'])
34
34
  puts "Deleting check bundle id: #{cb['_cid']}"
35
35
  end
36
36
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: circonus
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.0
4
+ version: 3.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-17 00:00:00.000000000 Z
12
+ date: 2014-06-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client