Class: Fluent::InDatadogEvent
- Inherits:
-
Input
- Object
- Input
- Fluent::InDatadogEvent
- Includes:
- HandleTagNameMixin, Mixin::RewriteTagName
- Defined in:
- lib/fluent/plugin/in_datadog_event.rb
Instance Method Summary collapse
-
#initialize ⇒ InDatadogEvent
constructor
A new instance of InDatadogEvent.
- #shutdown ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize ⇒ InDatadogEvent
Returns a new instance of InDatadogEvent.
25 26 27 28 29 |
# File 'lib/fluent/plugin/in_datadog_event.rb', line 25 def initialize super # require "dogapi" end |
Instance Method Details
#shutdown ⇒ Object
37 38 39 40 |
# File 'lib/fluent/plugin/in_datadog_event.rb', line 37 def shutdown @finished = true @thread.join end |
#start ⇒ Object
31 32 33 34 35 |
# File 'lib/fluent/plugin/in_datadog_event.rb', line 31 def start @dog = Dogapi::Client.new(@api_key, @app_key) @finished = false @thread = Thread.new(&method(:run)) end |