mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Add sprintf ability to room_id field in hipchat output
This commit is contained in:
parent
6b20d179aa
commit
cf9844dcbd
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue