rackspace-monitoring 0.2.14 → 0.2.15

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
1
- = Rackspace Cloud Monitoring Ruby Bindings
1
+ # Rackspace Cloud Monitoring Ruby Bindings
2
2
 
3
3
  This project contains the Ruby bindings for the Rackspace Cloud Monitoring product. It is based off the most awesome Fog cloud services library here - https://github.com/fog/fog. This library is used heavily in the https://github.com/racker/cookbook-cloudmonitoring chef cookbook.
4
4
 
5
- == Contributing
5
+ # Contributing
6
6
 
7
7
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
8
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
@@ -12,6 +12,12 @@ This project contains the Ruby bindings for the Rackspace Cloud Monitoring produ
12
12
  * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
13
  * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
14
 
15
- == Copyright
15
+ # Publish a New Version
16
16
 
17
- Copyright (c) 2012 Rackspace Hosting Inc See LICENSE.txt for further details.
17
+ * Run tests `rake test`
18
+ * Bump version `rake version:bump:{major,minor,patch}`
19
+ * Push GEM `gem push ./pkg/gem-foo.gem`
20
+
21
+ # Copyright
22
+
23
+ Copyright (c) 2012, 2013 Rackspace Hosting Inc See LICENSE.txt for further details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.14
1
+ 0.2.15
@@ -22,8 +22,14 @@ module Fog
22
22
  end
23
23
 
24
24
  def overview
25
- data = connection.list_overview.body['values']
26
- loadAll(data)
25
+ entities = []
26
+ opts = {}
27
+ begin
28
+ new_entities = connection.list_overview(opts)
29
+ entities.concat(new_entities.body['values'])
30
+ opts = {:marker => new_entities.body['metadata']['next_marker']}
31
+ end while(!opts[:marker].nil?)
32
+ loadAll(entities)
27
33
  end
28
34
 
29
35
  def loadAll(objects)
@@ -3,11 +3,15 @@ module Fog
3
3
  class Rackspace
4
4
  class Real
5
5
 
6
- def list_overview
6
+ def list_overview(opts={})
7
+ path = "views/overview"
8
+ opts.keys.each do |key|
9
+ path = path + "?#{key}=#{opts[key]}"
10
+ end
7
11
  request(
8
12
  :expects => [200, 203],
9
13
  :method => 'GET',
10
- :path => 'views/overview'
14
+ :path => path
11
15
  )
12
16
  end
13
17
 
@@ -0,0 +1,93 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "rackspace-monitoring"
8
+ s.version = "0.2.15"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Dan Di Spaltro"]
12
+ s.date = "2013-03-17"
13
+ s.description = "Rackspace Cloud Monitoring Ruby Bindings, built on top of fog."
14
+ s.email = "dan.dispaltro@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ "Gemfile",
22
+ "LICENSE.txt",
23
+ "README.md",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/rackspace-monitoring.rb",
27
+ "lib/rackspace-monitoring/monitoring/models/agent_token.rb",
28
+ "lib/rackspace-monitoring/monitoring/models/agent_tokens.rb",
29
+ "lib/rackspace-monitoring/monitoring/models/alarm.rb",
30
+ "lib/rackspace-monitoring/monitoring/models/alarm_example.rb",
31
+ "lib/rackspace-monitoring/monitoring/models/alarm_examples.rb",
32
+ "lib/rackspace-monitoring/monitoring/models/alarms.rb",
33
+ "lib/rackspace-monitoring/monitoring/models/base.rb",
34
+ "lib/rackspace-monitoring/monitoring/models/check.rb",
35
+ "lib/rackspace-monitoring/monitoring/models/checks.rb",
36
+ "lib/rackspace-monitoring/monitoring/models/entities.rb",
37
+ "lib/rackspace-monitoring/monitoring/models/entity.rb",
38
+ "lib/rackspace-monitoring/monitoring/requests/create_agent_token.rb",
39
+ "lib/rackspace-monitoring/monitoring/requests/create_alarm.rb",
40
+ "lib/rackspace-monitoring/monitoring/requests/create_check.rb",
41
+ "lib/rackspace-monitoring/monitoring/requests/create_entity.rb",
42
+ "lib/rackspace-monitoring/monitoring/requests/delete_check.rb",
43
+ "lib/rackspace-monitoring/monitoring/requests/delete_entity.rb",
44
+ "lib/rackspace-monitoring/monitoring/requests/evaluate_alarm_example.rb",
45
+ "lib/rackspace-monitoring/monitoring/requests/get_agent_token.rb",
46
+ "lib/rackspace-monitoring/monitoring/requests/get_alarm.rb",
47
+ "lib/rackspace-monitoring/monitoring/requests/get_alarm_example.rb",
48
+ "lib/rackspace-monitoring/monitoring/requests/get_check.rb",
49
+ "lib/rackspace-monitoring/monitoring/requests/get_entity.rb",
50
+ "lib/rackspace-monitoring/monitoring/requests/list_agent_tokens.rb",
51
+ "lib/rackspace-monitoring/monitoring/requests/list_alarm_examples.rb",
52
+ "lib/rackspace-monitoring/monitoring/requests/list_alarms.rb",
53
+ "lib/rackspace-monitoring/monitoring/requests/list_checks.rb",
54
+ "lib/rackspace-monitoring/monitoring/requests/list_entities.rb",
55
+ "lib/rackspace-monitoring/monitoring/requests/list_overview.rb",
56
+ "lib/rackspace-monitoring/monitoring/requests/update_alarm.rb",
57
+ "lib/rackspace-monitoring/monitoring/requests/update_check.rb",
58
+ "lib/rackspace-monitoring/monitoring/requests/update_entity.rb",
59
+ "rackspace-monitoring.gemspec",
60
+ "test/helper.rb",
61
+ "test/test_rackspace-monitoring.rb"
62
+ ]
63
+ s.homepage = "http://github.com/racker/rackspace-monitoring-rb"
64
+ s.licenses = ["APACHE"]
65
+ s.require_paths = ["lib"]
66
+ s.rubygems_version = "1.8.25"
67
+ s.summary = "Rackspace Cloud Monitoring Ruby Bindings"
68
+
69
+ if s.respond_to? :specification_version then
70
+ s.specification_version = 3
71
+
72
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
73
+ s.add_runtime_dependency(%q<rackspace-fog>, ["= 1.4.2"])
74
+ s.add_development_dependency(%q<shoulda>, [">= 0"])
75
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
76
+ s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
77
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
78
+ else
79
+ s.add_dependency(%q<rackspace-fog>, ["= 1.4.2"])
80
+ s.add_dependency(%q<shoulda>, [">= 0"])
81
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
82
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
83
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
84
+ end
85
+ else
86
+ s.add_dependency(%q<rackspace-fog>, ["= 1.4.2"])
87
+ s.add_dependency(%q<shoulda>, [">= 0"])
88
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
89
+ s.add_dependency(%q<bundler>, [">= 1.0.0"])
90
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
91
+ end
92
+ end
93
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rackspace-monitoring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
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: 2012-11-26 00:00:00.000000000 Z
12
+ date: 2013-03-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rackspace-fog
@@ -97,12 +97,12 @@ executables: []
97
97
  extensions: []
98
98
  extra_rdoc_files:
99
99
  - LICENSE.txt
100
- - README.rdoc
100
+ - README.md
101
101
  files:
102
102
  - .document
103
103
  - Gemfile
104
104
  - LICENSE.txt
105
- - README.rdoc
105
+ - README.md
106
106
  - Rakefile
107
107
  - VERSION
108
108
  - lib/rackspace-monitoring.rb
@@ -138,6 +138,7 @@ files:
138
138
  - lib/rackspace-monitoring/monitoring/requests/update_alarm.rb
139
139
  - lib/rackspace-monitoring/monitoring/requests/update_check.rb
140
140
  - lib/rackspace-monitoring/monitoring/requests/update_entity.rb
141
+ - rackspace-monitoring.gemspec
141
142
  - test/helper.rb
142
143
  - test/test_rackspace-monitoring.rb
143
144
  homepage: http://github.com/racker/rackspace-monitoring-rb
@@ -155,7 +156,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
155
156
  version: '0'
156
157
  segments:
157
158
  - 0
158
- hash: 3813873025037927318
159
+ hash: -2447514613286196878
159
160
  required_rubygems_version: !ruby/object:Gem::Requirement
160
161
  none: false
161
162
  requirements:
@@ -164,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
165
  version: '0'
165
166
  requirements: []
166
167
  rubyforge_project:
167
- rubygems_version: 1.8.24
168
+ rubygems_version: 1.8.25
168
169
  signing_key:
169
170
  specification_version: 3
170
171
  summary: Rackspace Cloud Monitoring Ruby Bindings