Class: Fluent::Plugin::HttpClientInput
- Inherits:
-
Input
- Object
- Input
- Fluent::Plugin::HttpClientInput
- Defined in:
- lib/fluent/plugin/in_http_client.rb
Overview
HttpClientInput: a plugin to pull http server
Constant Summary collapse
- DEFAULT_INTERVAL =
60
- DEFAULT_HTTP_METHOD =
:get
- DEFAULT_USER_AGENT =
'fluent-plugin-http-client'
- DEFAULT_TIMEOUT =
5
Instance Method Summary collapse
Instance Method Details
#configure(conf) ⇒ Object
75 76 77 78 79 80 81 82 83 |
# File 'lib/fluent/plugin/in_http_client.rb', line 75 def configure(conf) compat_parameters_convert(conf, :parser) super check_mandatory_params configure_tag configure_client end |
#start ⇒ Object
85 86 87 88 89 |
# File 'lib/fluent/plugin/in_http_client.rb', line 85 def start super timer_execute(:in_http_client_timer, interval, &method(:request)) end |