Module: Web::Master

Defined in:
lib/poolparty/monitors/web.rb

Instance Method Summary collapse

Instance Method Details

#webObject

Get the average web request capabilities over the cloud



9
10
11
# File 'lib/poolparty/monitors/web.rb', line 9

def web
  nodes.size > 0 ? nodes.inject(0) {|i,a| i += a.web } / nodes.size : 0.0
end