aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/alert.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-23 18:35:48 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-23 18:35:48 +0100
commit1a636d2c97368bc4c4019f4ddcff991ec5eccbce (patch)
treeb8101b2739ddfed34f3f80b5c89fa15de5470739 /lib/mauve/alert.rb
parentf9bab2fc3dcef0b452782de662ee7739a547079a (diff)
Added events viewer
* Fixes #1286 * Version bump
Diffstat (limited to 'lib/mauve/alert.rb')
-rw-r--r--lib/mauve/alert.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb
index c294e8c..75aa35e 100644
--- a/lib/mauve/alert.rb
+++ b/lib/mauve/alert.rb
@@ -60,10 +60,10 @@ module Mauve
include DataMapper::Resource
property :id, Serial
- property :alert_id, String, :required => true, :unique_index => :alert_index, :length=>256
- property :source, String, :required => true, :unique_index => :alert_index, :length=>512
- property :subject, String, :length=>512
- property :summary, String, :length=>1024
+ property :alert_id, String, :required => true, :unique_index => :alert_index, :length=>256, :lazy => false
+ property :source, String, :required => true, :unique_index => :alert_index, :length=>512, :lazy => false
+ property :subject, String, :length=>512, :lazy => false
+ property :summary, String, :length=>1024, :lazy => false
property :detail, Text, :length=>65535
property :importance, Integer, :default => 50
@@ -71,8 +71,8 @@ module Mauve
property :cleared_at, Time
property :updated_at, Time
property :acknowledged_at, Time
- property :acknowledged_by, String
- property :update_type, String
+ property :acknowledged_by, String, :lazy => false
+ property :update_type, String, :lazy => false
property :will_clear_at, Time
property :will_raise_at, Time