Method: CloudLB::Balancer#usage
- Defined in:
- lib/cloudlb/balancer.rb
#usage ⇒ Object
TODO: Figure out formats for startTime and endTime
133 134 135 136 137 |
# File 'lib/cloudlb/balancer.rb', line 133 def usage response = @connection.lbreq("GET",@lbmgmthost,"#{@lbmgmtpath}/loadbalancers/#{CloudLB.escape(@id.to_s)}/usage",@lbmgmtport,@lbmgmtscheme,{}) CloudLB::Exception.raise_exception(response) unless response.code.to_s.match(/^20.$/) CloudLB.symbolize_keys(JSON.parse(response.body)["loadBalancerUsageRecords"]) end |