Module: Fog::Monitoring

Defined in:
lib/fog/monitoring.rb,
lib/fog/storm_on_demand/monitoring.rb,
lib/fog/storm_on_demand/models/monitoring/load.rb,
lib/fog/storm_on_demand/models/monitoring/loads.rb,
lib/fog/storm_on_demand/models/monitoring/bandwidth.rb,
lib/fog/storm_on_demand/models/monitoring/bandwidths.rb,
lib/fog/storm_on_demand/requests/monitoring/get_service.rb,
lib/fog/storm_on_demand/models/monitoring/monitor_service.rb,
lib/fog/storm_on_demand/models/monitoring/monitor_services.rb,
lib/fog/storm_on_demand/requests/monitoring/get_load_graph.rb,
lib/fog/storm_on_demand/requests/monitoring/get_load_stats.rb,
lib/fog/storm_on_demand/requests/monitoring/monitoring_ips.rb,
lib/fog/storm_on_demand/requests/monitoring/update_service.rb,
lib/fog/storm_on_demand/requests/monitoring/get_service_status.rb,
lib/fog/storm_on_demand/requests/monitoring/get_bandwidth_graph.rb,
lib/fog/storm_on_demand/requests/monitoring/get_bandwidth_stats.rb

Defined Under Namespace

Classes: StormOnDemand

Class Method Summary collapse

Class Method Details

.[](provider) ⇒ Object



4
5
6
# File 'lib/fog/monitoring.rb', line 4

def self.[](provider)
  self.new(:provider => provider)
end

.new(attributes) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/fog/monitoring.rb', line 8

def self.new(attributes)
  attributes = attributes.dup
  provider = attributes.delete(:provider).to_s.downcase.to_sym
  if provider == :stormondemand
    require 'fog/storm_on_demand/billing'
    Fog::Monitoring::StormOnDemand.new(attributes)
  else
    raise ArgumentError.new("#{provider} has no monitoring service")
  end
end

.providersObject



19
20
21
# File 'lib/fog/monitoring.rb', line 19

def self.providers
  Fog.services[:monitoring]
end