Sha256: ecd6f758c10c534b318ddfcacf0d0bc659bb24ced83152716578847d92731031

Contents?: true

Size: 900 Bytes

Versions: 20

Compression:

Stored size: 900 Bytes

Contents

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

      KEYS = [
        :bind, :port, :body_size_limit, :keepalive_timeout, :add_http_headers, :format, :log_level
      ].freeze

      attr_accessor(*KEYS)

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

      def self.initial_params
        {
          bind: "0.0.0.0",
          port: 8888,
          body_size_limit: "32m",
          keepalive_timeout: "10s",
          add_http_headers: false,
          format: "default",
          log_level: "info",
        }
      end

      def common_options
        [
          :bind, :port
        ]
      end

      def advanced_options
        [
          :body_size_limit, :keepalive_timeout, :add_http_headers, :format, :log_level
        ]
      end

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