Class: Fog::Monitoring::StormOnDemand::Real

Inherits:
Object
  • Object
show all
Includes:
StormOnDemand::RealShared
Defined in:
lib/fog/storm_on_demand/monitoring.rb,
lib/fog/storm_on_demand/requests/monitoring/get_service.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

Constant Summary

Constants included from StormOnDemand::RealShared

StormOnDemand::RealShared::API_URL, StormOnDemand::RealShared::API_VERSION

Instance Method Summary collapse

Methods included from StormOnDemand::RealShared

#initialize, #reload, #request

Instance Method Details

#get_bandwidth_graph(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/monitoring/get_bandwidth_graph.rb', line 6

def get_bandwidth_graph(options={})
  request(
    :path => '/Monitoring/Bandwidth/graph',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_bandwidth_stats(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/monitoring/get_bandwidth_stats.rb', line 6

def get_bandwidth_stats(options={})
  request(
    :path => '/Monitoring/Bandwidth/stats',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_load_graph(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/monitoring/get_load_graph.rb', line 6

def get_load_graph(options={})
  request(
    :path => '/Monitoring/Load/graph',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_load_stats(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/monitoring/get_load_stats.rb', line 6

def get_load_stats(options={})
  request(
    :path => '/Monitoring/Load/stats',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_service(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/monitoring/get_service.rb', line 6

def get_service(options={})
  request(
    :path => '/Monitoring/Services/get',
    :body => Fog::JSON.encode(:params => options)
  )
end

#get_service_status(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/monitoring/get_service_status.rb', line 6

def get_service_status(options={})
  request(
    :path => '/Monitoring/Services/status',
    :body => Fog::JSON.encode(:params => options)
  )
end

#monitoring_ips(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/monitoring/monitoring_ips.rb', line 6

def monitoring_ips(options={})
  request(
    :path => '/Monitoring/Services/monitoringIps',
    :body => Fog::JSON.encode(:params => options)
  )
end

#update_service(options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/fog/storm_on_demand/requests/monitoring/update_service.rb', line 6

def update_service(options={})
  request(
    :path => '/Monitoring/Services/update',
    :body => Fog::JSON.encode(:params => options)
  )
end