Sha256: 84120c4bbc85552b4d3d2995143f06b8874de100285f1aa225f9d2405d5e98bd
Contents?: true
Size: 1.01 KB
Versions: 15
Compression:
Stored size: 1.01 KB
Contents
class Fluentd module Setting class OutTd include ActiveModel::Model include Common KEYS = [ :match, :apikey, :auto_create_table, :database, :table, :flush_interval, :buffer_type, :buffer_path, ].freeze attr_accessor(*KEYS) flags :auto_create_table validates :match, presence: true validates :apikey, presence: true validates :auto_create_table, presence: true validates :buffer_path, presence: true, if: ->{ buffer_type == "file" } def plugin_name "tdlog" end def self.initial_params { buffer_type: "file", buffer_path: "/var/log/td-agent/buffer/td", auto_create_table: true, match: "td.*.*", } end def common_options [ :match, :apikey, :auto_create_table, :database, :table, ] end def advanced_options [ :flush_interval, :buffer_type, :buffer_path, ] end end end end
Version data entries
15 entries across 15 versions & 1 rubygems