Sha256: 5340231a6e309ab26041d9ba5b675d008328193e41eab6ab85063b86226d70a1

Contents?: true

Size: 1.38 KB

Versions: 21

Compression:

Stored size: 1.38 KB

Contents

class Fastly
  # A Papertrail endpoint to stream logs to
  class PapertrailLogging < BelongsToServiceAndVersion
    attr_accessor :service_id, :name, :address, :port, :hostname, :format, :format_version, :response_condition, :timestamp_format

    ##
    # :attr: service_id
    #
    # The id of the service this belongs to.

    ##
    # :attr: version
    #
    # The number of the version this belongs to.

    ##
    # :attr: name
    #
    # The name for this s3 rule

    ##
    # :attr: address
    #
    # Hostname of the papertrail server - located at the top of your Papertrail
    # Setup e.g. https://papertrailapp.com/account/t destinations

    ##
    # :attr: port
    #
    # Port of the Papertrail server from Papertrail account

    ##
    # :attr: hostname
    #
    # Source name of the Fastly logs in Papertrail

    ##
    # :attr: format
    #
    # Apache style log formatting

    ##
    # :attr: format_version
    #
    # The version of the custom logging format used for the configured endpoint.
    # Can be either 1 (the default, version 1 log format) or 2 (the version 2
    # log format).

    ##
    # :attr: response_condition
    #
    # When to execute the logging. If empty, always execute.

    ##
    # :attr: timestamp_format
    #
    # strftime specified timestamp formatting (default "%Y-%m-%dT%H:%M:%S.000").

    def self.path
      'logging/papertrail'
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
fastly-3.0.2 lib/fastly/papertrail_logging.rb
fastly-3.0.1 lib/fastly/papertrail_logging.rb
fastly-3.0.0 lib/fastly/papertrail_logging.rb
fastly-2.5.3 lib/fastly/papertrail_logging.rb
fastly-2.5.2 lib/fastly/papertrail_logging.rb
fastly-2.5.1 lib/fastly/papertrail_logging.rb
fastly-2.5.0 lib/fastly/papertrail_logging.rb
fastly-2.4.0 lib/fastly/papertrail_logging.rb
fastly-2.3.1 lib/fastly/papertrail_logging.rb
fastly-2.3.0 lib/fastly/papertrail_logging.rb
fastly-2.2.0 lib/fastly/papertrail_logging.rb
fastly-2.1.0 lib/fastly/papertrail_logging.rb
fastly-2.0.0 lib/fastly/papertrail_logging.rb
fastly-1.15.0 lib/fastly/papertrail_logging.rb
fastly-1.14.0 lib/fastly/papertrail_logging.rb
fastly-1.13.2 lib/fastly/papertrail_logging.rb
fastly-1.13.1 lib/fastly/papertrail_logging.rb
fastly-1.13.0 lib/fastly/papertrail_logging.rb
fastly-1.12.0 lib/fastly/papertrail_logging.rb
fastly-1.11.0 lib/fastly/papertrail_logging.rb