require 'rackspace-fog/core/collection' require 'rackspace-monitoring/monitoring/models/alarm_example' module Fog module Monitoring class Rackspace class AlarmExamples < Fog::Collection model Fog::Monitoring::Rackspace::AlarmExample def all data = connection.list_alarm_examples.body['values'] load(data) end def get(alarm_example_id) data = connection.get_alarm_example(alarm_example_id).body new(data) rescue Fog::Monitoring::Rackspace::NotFound nil end def evaluate(alarm_example_id, options={}) data = connection.evaluate_alarm_example(alarm_example_id, options).body new(data) end end end end end