Class: Fog::Monitoring::OpenStack::AlarmStates

Inherits:
OpenStack::Collection show all
Defined in:
lib/fog/monitoring/openstack/models/alarm_states.rb

Instance Attribute Summary

Attributes inherited from OpenStack::Collection

#response

Instance Method Summary collapse

Methods inherited from OpenStack::Collection

#destroy, #find_by_id, #get, #load_response, #summary

Instance Method Details

#all(options = {}) ⇒ Object



10
11
12
# File 'lib/fog/monitoring/openstack/models/alarm_states.rb', line 10

def all(options = {})
  load_response(service.list_alarm_state_history_for_all_alarms(options), 'elements')
end

#list_alarm_state_history(id, options = {}) ⇒ Object



14
15
16
# File 'lib/fog/monitoring/openstack/models/alarm_states.rb', line 14

def list_alarm_state_history(id, options = {})
  load_response(service.list_alarm_state_history_for_specific_alarm(id, options), 'elements')
end