summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-13 10:11:37 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-13 10:11:37 +0000
commitb4d4b75982c39ab1f63698176fbfd68defebcc8e (patch)
treee0e6508b847ac1644f396149c070016b28dccabc
parent2bcccfc4abd3ba15a9854b93ca40de1b4f715cc6 (diff)
Use summary not subject
-rwxr-xr-xworker/worker8
1 files changed, 4 insertions, 4 deletions
diff --git a/worker/worker b/worker/worker
index 6e4c9df..c27b860 100755
--- a/worker/worker
+++ b/worker/worker
@@ -65,8 +65,8 @@ class Alert
alert = Mauve::Proto::Alert.new
alert.id = @details['test_type']
- alert.subject = "#{@details['test_host']} #{@details['test_alert']]"
- alert.detail = "The test of type #{@details['test_type']} failed"
+ alert.summary = "#{@details['test_host']} #{@details['test_alert']]"
+ alert.detail = "The #{@details['test_type']} test failed against #{@details['test_host']}"
alert.raise_time = Time.now.to_i
update.alert << alert
@@ -85,8 +85,8 @@ class Alert
alert = Mauve::Proto::Alert.new
alert.id = @details['test_type']
- alert.subject = "#{@details['test_host']} #{@details['test_alert']]"
- alert.detail = "The test of type #{@details['test_type']} failed"
+ alert.summary = "#{@details['test_host']} #{@details['test_alert']]"
+ alert.detail = "The #{@details['test_type']} test failed against #{@details['test_host']}"
alert.clear_time = Time.now.to_i
update.alert << alert