mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Merge pull request #467 from electrical/change_notify_hipchat
rename 'notify' to 'trigger_notify'
This commit is contained in:
commit
78b95ca834
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ class LogStash::Outputs::HipChat < LogStash::Outputs::Base
|
|||
config :from, :validate => :string, :default => "logstash"
|
||||
|
||||
# Whether or not this message should trigger a notification for people in the room.
|
||||
config :notify, :validate => :boolean, :default => false
|
||||
config :trigger_notify, :validate => :boolean, :default => false
|
||||
|
||||
# Background color for message.
|
||||
# HipChat currently supports one of "yellow", "red", "green", "purple",
|
||||
|
@ -47,7 +47,7 @@ class LogStash::Outputs::HipChat < LogStash::Outputs::Base
|
|||
hipchat_data['room_id'] = @room_id
|
||||
hipchat_data['from'] = @from
|
||||
hipchat_data['color'] = @color
|
||||
hipchat_data['notify'] = @notify ? "1" : "0"
|
||||
hipchat_data['notify'] = @trigger_notify ? "1" : "0"
|
||||
hipchat_data['message'] = event.sprintf(@format)
|
||||
|
||||
@logger.debug("HipChat data", :hipchat_data => hipchat_data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue