Sha256: 2f09790ecf9224e8dbd7b2849a7a13923b746b8ecc4ffe66d1a48921a6ed631a
Contents?: true
Size: 669 Bytes
Versions: 39
Compression:
Stored size: 669 Bytes
Contents
require 'fog/core/collection' require 'fog/rackspace/models/monitoring/notification' module Fog module Rackspace class Monitoring class Notifications < Fog::Collection model Fog::Rackspace::Monitoring::Notification attribute :marker def all(options={}) data = service.list_notifications(options).body marker = data['metadata']['next_marker'] load(data['values']) end def get(notification_id) data = service.get_notification(notification_id).body new(data) rescue Fog::Rackspace::Monitoring::NotFound nil end end end end end
Version data entries
39 entries across 37 versions & 6 rubygems