summaryrefslogtreecommitdiff
path: root/bin/custodian-dequeue
diff options
context:
space:
mode:
Diffstat (limited to 'bin/custodian-dequeue')
-rwxr-xr-xbin/custodian-dequeue9
1 files changed, 2 insertions, 7 deletions
diff --git a/bin/custodian-dequeue b/bin/custodian-dequeue
index 99ea63f..3408f2d 100755
--- a/bin/custodian-dequeue
+++ b/bin/custodian-dequeue
@@ -92,16 +92,13 @@ class Alert
#
def raise( detail )
- puts "RAISE: #{detail}"
- return
-
update = Mauve::Proto::AlertUpdate.new
update.alert = []
update.source = "custodian"
update.replace = true
alert = Mauve::Proto::Alert.new
- alert.id = @details['test_type']
+ alert.id = "#{@details['test_type']}-low"
alert.summary = "#{@details['test_host']} #{@details['test_alert']}"
alert.detail = "The #{@details['test_type']} test failed against #{@details['test_host']}: #{detail}"
alert.raise_time = Time.now.to_i
@@ -115,8 +112,6 @@ class Alert
# Clear the alert.
#
def clear
- puts "CLEAR"
- return
update = Mauve::Proto::AlertUpdate.new
update.alert = []
@@ -124,7 +119,7 @@ class Alert
update.replace = true
alert = Mauve::Proto::Alert.new
- alert.id = @details['test_type']
+ alert.id = "#{@details['test_type']}-low"
alert.summary = "#{@details['test_host']} #{@details['test_alert']}"
alert.detail = "The #{@details['test_type']} test succeeded against #{@details['test_host']}"
alert.clear_time = Time.now.to_i