Class: Fluentd::Setting::OutTd

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model, Common
Defined in:
app/models/fluentd/setting/out_td.rb

Constant Summary collapse

KEYS =
[
  :match,
  :apikey, :auto_create_table, :database, :table,
  :flush_interval, :buffer_type, :buffer_path,
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Common

#boolenan, #child_class, #children_of, #column_type, #conf, #empty_value?, #flag, #input_plugin?, #output_plugin?, #plugin_type_name, #print_if_present, #to_config, #values_of

Class Method Details

.initial_paramsObject



26
27
28
29
30
31
32
33
# File 'app/models/fluentd/setting/out_td.rb', line 26

def self.initial_params
  {
    buffer_type: "file",
    buffer_path: "/var/log/td-agent/buffer/td",
    auto_create_table: true,
    match: "td.*.*",
  }
end

Instance Method Details

#advanced_optionsObject



41
42
43
44
45
# File 'app/models/fluentd/setting/out_td.rb', line 41

def advanced_options
  [
    :flush_interval, :buffer_type, :buffer_path,
  ]
end

#common_optionsObject



35
36
37
38
39
# File 'app/models/fluentd/setting/out_td.rb', line 35

def common_options
  [
    :match, :apikey, :auto_create_table, :database, :table,
  ]
end

#plugin_nameObject



22
23
24
# File 'app/models/fluentd/setting/out_td.rb', line 22

def plugin_name
  "tdlog"
end