rackspace-monitoring 0.2.12 → 0.2.13

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.12
1
+ 0.2.13
@@ -44,6 +44,7 @@ module Fog
44
44
 
45
45
  request :update_check
46
46
  request :update_entity
47
+ request :update_alarm
47
48
 
48
49
  request :delete_check
49
50
  request :delete_entity
@@ -0,0 +1,18 @@
1
+ module Fog
2
+ module Monitoring
3
+ class Rackspace
4
+ class Real
5
+
6
+ def update_alarm(entity_id, id, options)
7
+ request(
8
+ :body => JSON.encode(options),
9
+ :expects => [204],
10
+ :method => 'PUT',
11
+ :path => "entities/#{entity_id}/alarms/#{id}"
12
+ )
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rackspace-monitoring
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 12
10
- version: 0.2.12
9
+ - 13
10
+ version: 0.2.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dan Di Spaltro
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-07-23 00:00:00 Z
18
+ date: 2012-10-04 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  type: :runtime
@@ -140,6 +140,7 @@ files:
140
140
  - lib/rackspace-monitoring/monitoring/requests/list_checks.rb
141
141
  - lib/rackspace-monitoring/monitoring/requests/list_entities.rb
142
142
  - lib/rackspace-monitoring/monitoring/requests/list_overview.rb
143
+ - lib/rackspace-monitoring/monitoring/requests/update_alarm.rb
143
144
  - lib/rackspace-monitoring/monitoring/requests/update_check.rb
144
145
  - lib/rackspace-monitoring/monitoring/requests/update_entity.rb
145
146
  - test/helper.rb