Add sprintf ability to room_id field in hipchat output

This commit is contained in:
Kyle House 2014-08-11 16:19:20 -05:00
parent 6b20d179aa
commit cf9844dcbd

View file

@ -45,7 +45,7 @@ class LogStash::Outputs::HipChat < LogStash::Outputs::Base
return unless output?(event) return unless output?(event)
hipchat_data = Hash.new hipchat_data = Hash.new
hipchat_data['room_id'] = @room_id hipchat_data['room_id'] = event.sprintf(@room_id)
hipchat_data['from'] = @from hipchat_data['from'] = @from
hipchat_data['color'] = @color hipchat_data['color'] = @color
hipchat_data['notify'] = @trigger_notify ? "1" : "0" hipchat_data['notify'] = @trigger_notify ? "1" : "0"