Class: Fluent::Plugin::HttpClientInput

Inherits:
Input
  • Object
show all
Defined in:
lib/fluent/plugin/in_http_client.rb

Overview

HttpClientInput: a plugin to pull http server

Constant Summary collapse

DEFAULT_USER_AGENT =
'fluent-plugin-http-client'

Instance Method Summary collapse

Instance Method Details

#configure(conf) ⇒ Object



53
54
55
56
57
58
59
# File 'lib/fluent/plugin/in_http_client.rb', line 53

def configure(conf)
  compat_parameters_convert(conf, :parser)

  super

  configure_client
end

#startObject



61
62
63
64
65
# File 'lib/fluent/plugin/in_http_client.rb', line 61

def start
  super

  timer_execute(:in_http_client_timer, @interval, &method(:on_timer_request))
end