lib/fastly/syslog.rb in fastly-1.13.2 vs lib/fastly/syslog.rb in fastly-1.14.0
- old
+ new
@@ -1,9 +1,9 @@
class Fastly
# An endpoint to stream syslogs to
class Syslog < BelongsToServiceAndVersion
- attr_accessor :service_id, :name, :comment, :ipv4, :ipv6, :hostname, :port, :token, :format, :format_version, :message_type, :response_condition, :use_tls, :tls_hostname, :tls_ca_cert
+ attr_accessor :service_id, :name, :comment, :ipv4, :ipv6, :hostname, :port, :placement, :token, :format, :format_version, :message_type, :response_condition, :use_tls, :tls_hostname, :tls_ca_cert
##
# :attr: service_id
#
# The id of the service this belongs to.
@@ -50,10 +50,15 @@
##
# :attr: port
#
# the port to stream logs to (defaults to 514)
+
+ ##
+ # :attr: placement
+ #
+ # Where in the generated VCL the logging call should be placed
##
# :attr: token
#
# Whether to prepend each message with a specific token.
@@ -97,7 +102,10 @@
##
# :attr: tls_ca_cert
#
# Use this pem formatted certificate as the CA cert to verify the syslog
# server's certificate
+ def self.path
+ 'logging/syslog'
+ end
end
end