1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
require 'fog/openstack/models/collection'
require 'fog/openstack/monitoring/models/alarm_state'
module Fog
module OpenStack
class Monitoring
class AlarmStates < Fog::OpenStack::Collection
model Fog::OpenStack::Monitoring::AlarmState
def all(options = {})
load_response(service.list_alarm_state_history_for_all_alarms(options), 'elements')
end
def list_alarm_state_history(id, options = {})
load_response(service.list_alarm_state_history_for_specific_alarm(id, options), 'elements')
end
end
end
end
end
|