Sha256: befe125eadd073bd3b5c665347063acc9e57e0670720cbdc9268259383cd7265

Contents?: true

Size: 861 Bytes

Versions: 20

Compression:

Stored size: 861 Bytes

Contents

class Fluentd
  module Setting
    class InForward
      include ActiveModel::Model
      include Common

      KEYS = [
        :bind, :port, :linger_timeout, :chunk_size_limit, :chunk_size_warn_limit, :log_level
      ].freeze

      attr_accessor(*KEYS)

      validates :bind, presence: true
      validates :port, presence: true

      def self.initial_params
        {
          bind: "0.0.0.0",
          port: 24224,
          linger_timeout: 0,
          chunk_size_limit: nil,
          chunk_size_warn_limit: nil,
          log_level: "info",
        }
      end

      def common_options
        [
          :bind, :port
        ]
      end

      def advanced_options
        [
          :linger_timeout, :chunk_size_limit, :chunk_size_warn_limit, :log_level
        ]
      end

      def plugin_name
        "forward"
      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/in_forward.rb
fluentd-ui-1.0.0.alpha.1 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.4.5 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.4.4 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.4.3 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.4.2 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.4.1 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.4.0 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.3.21 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.3.20 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.3.19 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.3.18 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.3.17 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.3.16 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.3.15 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.3.14 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.3.13 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.3.12 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.3.11 app/models/fluentd/setting/in_forward.rb
fluentd-ui-0.3.10 app/models/fluentd/setting/in_forward.rb