2013-05-23 22:29:42 +08:00
|
|
|
require 'fog/core/model'
|
|
|
|
|
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class StormOnDemand
|
|
|
|
|
|
|
|
class Notification < Fog::Model
|
|
|
|
identity :id
|
|
|
|
attribute :category
|
|
|
|
attribute :description
|
|
|
|
attribute :enddate
|
|
|
|
attribute :last_alert
|
|
|
|
attribute :modifieddate
|
|
|
|
attribute :resolved
|
|
|
|
attribute :severity
|
|
|
|
attribute :startdate
|
|
|
|
attribute :system
|
|
|
|
attribute :system_identifier
|
|
|
|
attribute :uniq_id
|
|
|
|
|
|
|
|
def initialize(attributes={})
|
|
|
|
super
|
|
|
|
end
|
|
|
|
|
|
|
|
def resolve
|
|
|
|
requires :identity
|
2013-05-25 22:48:24 +08:00
|
|
|
service.resolve_notification(:id => identity).body
|
2013-05-23 22:29:42 +08:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|