lib/logstash/outputs/pagerduty.rb in logstash-output-pagerduty-3.0.8 vs lib/logstash/outputs/pagerduty.rb in logstash-output-pagerduty-3.0.9
- old
+ new
@@ -49,10 +49,10 @@
public
def receive(event)
pd_event = Hash.new
- pd_event[:service_key] = "#{@service_key}"
+ pd_event[:service_key] = event.sprintf(@service_key)
pd_event[:incident_key] = event.sprintf(@incident_key)
pd_event[:event_type] = "#{@event_type}"
pd_event[:description] = event.sprintf(@description)
pd_event[:details] = Hash.new
@details.each do |key, value|