From 0dcced1ef1cfe66a1f428696baa8ab7c9f944e29 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Wed, 14 Nov 2012 09:03:54 +0000 Subject: Actually raise & clear alerts now - wire priority to be "low" --- bin/custodian-dequeue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'bin/custodian-dequeue') 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 -- cgit v1.2.1