Sha256: 4770930bdccec900aa4d26b91a080f95c4cb9f886c49c6da787b535295a51421
Contents?: true
Size: 766 Bytes
Versions: 8
Compression:
Stored size: 766 Bytes
Contents
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
Version data entries
8 entries across 8 versions & 1 rubygems