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

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

Instance Method Summary collapse

Instance Method Details

#get(uniq_id) ⇒ Object



7
8
9
10
# File 'lib/fog/monitoring/storm_on_demand/models/monitor_services.rb', line 7

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

#monitoring_ipsObject



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

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

#status(uniq_id) ⇒ Object



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

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

#update(options) ⇒ Object



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

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