Sha256: d774a0cf03a1e31172b92170cf6eaa8506b400840d3db6e5a1e6def7fcde08a2

Contents?: true

Size: 258 Bytes

Versions: 5

Compression:

Stored size: 258 Bytes

Contents

module FluentECS
  module Configurable
    class Config
      attr_accessor :cache_size, :cache_ttl, :fields
    end

    def config
      @config ||= Config.new
    end

    def configure(&_block)
      yield config
    end
  end

  extend Configurable
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
fluent-plugin-ecs-metadata-filter-v2-0.2.0 lib/fluent_ecs/configurable.rb
serafini010-ecs-metadata-filter-0.2.0 lib/fluent_ecs/configurable.rb
fluent-plugin-ecs-metadata-filter-0.2.0 lib/fluent_ecs/configurable.rb
fluent-plugin-ecs-metadata-filter-0.1.1 lib/fluent_ecs/configurable.rb
fluent-plugin-ecs-metadata-filter-0.1.0 lib/fluent_ecs/configurable.rb