Browse files

fix call to publisher.publish

  • Loading branch information...
1 parent 9f3e658 commit 7abae01ead732e3dc26921c39a4c6fa68c301b06 @obfuscurity committed Apr 5, 2013
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/backstop/web.rb
View
4 lib/backstop/web.rb
@@ -82,9 +82,7 @@ def publisher
puts "UNKNOWN ALERT: #{incident.to_json}"
halt 400, 'unknown alert'
end
- data = incident
- data['source'] = 'pagerduty'
- publisher.publish("alerts.#{metric} 1 #{Time.parse(incident['created_on']).to_i}")
+ publisher.publish("alerts.#{metric}", 1, Time.parse(incident['created_on']).to_i)
'ok'
end

0 comments on commit 7abae01

Please sign in to comment.