Class: Fog::Monitoring::StormOnDemand::MonitorServices

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/storm_on_demand/models/monitoring/monitor_services.rb

Instance Method Summary collapse

Instance Method Details

#get(uniq_id) ⇒ Object



10
11
12
13
# File 'lib/fog/storm_on_demand/models/monitoring/monitor_services.rb', line 10

def get(uniq_id)
  status = service.get_service(:uniq_id => uniq_id).body
  new(status)
end

#monitoring_ipsObject



15
16
17
# File 'lib/fog/storm_on_demand/models/monitoring/monitor_services.rb', line 15

def monitoring_ips
  service.monitoring_ips.body['ips']
end

#status(uniq_id) ⇒ Object



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

def status(uniq_id)
  service.get_service_status(:uniq_id => uniq_id).body
end

#update(options) ⇒ Object



23
24
25
26
# File 'lib/fog/storm_on_demand/models/monitoring/monitor_services.rb', line 23

def update(options)
  status = service.update_service(options).body
  new(status)
end