lib/fastly/s3_logging.rb in fastly-1.8.0 vs lib/fastly/s3_logging.rb in fastly-1.9.0
- old
+ new
@@ -1,9 +1,9 @@
class Fastly
# An s3 endpoint to stream logs to
class S3Logging < BelongsToServiceAndVersion
- attr_accessor :service_id, :name, :bucket_name, :access_key, :secret_key, :path, :period, :gzip_level, :format, :format_version, :response_condition, :timestamp_format, :domain, :redundancy
+ attr_accessor :service_id, :name, :bucket_name, :access_key, :secret_key, :path, :period, :gzip_level, :format, :format_version, :message_type, :response_condition, :timestamp_format, :domain, :redundancy
##
# :attr: service_id
#
# The id of the service this belongs to.
@@ -58,9 +58,17 @@
# :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: message_type
+ #
+ # How the message should be formatted. Can be either classic (RFC 3164
+ # syslog prefix), loggly (RFC 5424 structured syslog), logplex (Heroku-style
+ # length prefixed syslog), or blank (No prefix. Useful for writing JSON and
+ # CSV).
##
# :attr: response_condition
#
# When to execute the s3 logging. If empty, always execute.