Module: LogStash::CompatibilityLayerApiV1
- Included in:
- Inputs::Beats
- Defined in:
- lib/logstash/compatibility_layer_api_v1.rb
Overview
This module allow this plugin to work with the v1 API.
Defined Under Namespace
Modules: InstanceMethods
Constant Summary collapse
- LOGSTASH_CORE_VERSION =
Gem::Version.new(LOGSTASH_VERSION)
- V2_VERSION =
Gem::Version.new("2.0.0.beta2")
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
10 11 12 |
# File 'lib/logstash/compatibility_layer_api_v1.rb', line 10 def self.included(base) base.send(:include, InstanceMethods) if self.is_v1? end |
.is_v1? ⇒ Boolean
14 15 16 |
# File 'lib/logstash/compatibility_layer_api_v1.rb', line 14 def self.is_v1? LOGSTASH_CORE_VERSION < V2_VERSION end |