lib/fog/rackspace/models/load_balancers/load_balancer.rb in fog-maestrodev-1.14.0.20130806165225 vs lib/fog/rackspace/models/load_balancers/load_balancer.rb in fog-maestrodev-1.15.0.20130829165835
- old
+ new
@@ -89,23 +89,23 @@
virtual_ips.load(new_virtual_ips)
end
def enable_content_caching
requires :identity
- connection.set_content_caching identity, true
+ service.set_content_caching identity, true
true
end
def disable_content_caching
requires :identity
- connection.set_content_caching identity, false
+ service.set_content_caching identity, false
true
end
def content_caching
requires :identity
- connection.get_content_caching(identity).body['contentCaching']['enabled']
+ service.get_content_caching(identity).body['contentCaching']['enabled']
end
def enable_connection_logging
requires :identity
service.set_connection_logging identity, true
@@ -192,9 +192,14 @@
end
def usage(options = {})
requires :identity
service.get_load_balancer_usage(identity, options).body
+ end
+
+ def stats
+ requires :identity
+ service.get_stats(identity).body
end
def error_page
requires :identity
service.get_error_page(identity).body['errorpage']['content']