Sha256: ae2443f8d0821aa91e6907dbf3adebc790acc2cd5fcdb397ca6980c00d8f2b3b

Contents?: true

Size: 614 Bytes

Versions: 20

Compression:

Stored size: 614 Bytes

Contents

class Fluentd
  module Setting
    class OutStdout
      include Common

      KEYS = [:match, :output_type].freeze

      attr_accessor(*KEYS)

      choice :output_type, %w(json hash)

      validates :match, presence: true
      validates :output_type, inclusion: { in: %w(json hash) }

      def self.initial_params
        {
          match: "debug.**",
          output_type: "json",
        }
      end

      def common_options
        [
          :match, :output_type
        ]
      end

      def advanced_options
        []
      end

      def plugin_name
        "stdout"
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
fluentd-ui-1.0.0.alpha.2 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-1.0.0.alpha.1 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.4.5 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.4.4 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.4.3 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.4.2 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.4.1 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.4.0 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.3.21 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.3.20 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.3.19 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.3.18 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.3.17 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.3.16 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.3.15 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.3.14 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.3.13 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.3.12 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.3.11 app/models/fluentd/setting/out_stdout.rb
fluentd-ui-0.3.10 app/models/fluentd/setting/out_stdout.rb