lib/fluent/plugin/out_azureeventhubs_buffered.rb in fluent-plugin-azureeventhubs-0.0.1 vs lib/fluent/plugin/out_azureeventhubs_buffered.rb in fluent-plugin-azureeventhubs-0.0.2
- old
+ new
@@ -6,20 +6,20 @@
config_param :connection_string, :string
config_param :hub_name, :string
config_param :include_tag, :bool, :default => false
config_param :include_time, :bool, :default => false
config_param :tag_time_name, :string, :default => 'time'
- config_param :expires_mins, :integer, :default => 3600 # 60min
+ config_param :expiry_interval, :integer, :default => 3600 # 60min
config_param :type, :string, :default => 'https' # https / amqps (Not Implemented)
def configure(conf)
super
case @type
when 'amqps'
raise NotImplementedError
else
require_relative 'azureeventhubs/http'
- @sender = AzureEventHubsHttpSender.new(@connection_string, @hub_name)
+ @sender = AzureEventHubsHttpSender.new(@connection_string, @hub_name, @expiry_interval)
end
end
def format(tag, time, record)
[tag, time, record].to_msgpack