Class: Fastly::PapertrailLogging

Inherits:
BelongsToServiceAndVersion show all
Defined in:
lib/fastly/papertrail_logging.rb

Overview

A Papertrail endpoint to stream logs to

Instance Attribute Summary collapse

Attributes inherited from BelongsToServiceAndVersion

#version

Attributes inherited from Base

#fetcher

Class Method Summary collapse

Methods inherited from BelongsToServiceAndVersion

#as_hash, delete_path, get_path, path_escape, post_path, put_path, #service, #version_number

Methods inherited from Base

#as_hash, #delete!, delete_path, get_path, #initialize, list_path, post_path, put_path, #require_api_key!, #save!

Constructor Details

This class inherits a constructor from Fastly::Base

Instance Attribute Details

#addressObject

Returns the value of attribute address.



4
5
6
# File 'lib/fastly/papertrail_logging.rb', line 4

def address
  @address
end

#formatObject

Returns the value of attribute format.



4
5
6
# File 'lib/fastly/papertrail_logging.rb', line 4

def format
  @format
end

#format_versionObject

Returns the value of attribute format_version.



4
5
6
# File 'lib/fastly/papertrail_logging.rb', line 4

def format_version
  @format_version
end

#hostnameObject

Returns the value of attribute hostname.



4
5
6
# File 'lib/fastly/papertrail_logging.rb', line 4

def hostname
  @hostname
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/fastly/papertrail_logging.rb', line 4

def name
  @name
end

#portObject

Returns the value of attribute port.



4
5
6
# File 'lib/fastly/papertrail_logging.rb', line 4

def port
  @port
end

#response_conditionObject

Returns the value of attribute response_condition.



4
5
6
# File 'lib/fastly/papertrail_logging.rb', line 4

def response_condition
  @response_condition
end

#service_idObject

Returns the value of attribute service_id.



4
5
6
# File 'lib/fastly/papertrail_logging.rb', line 4

def service_id
  @service_id
end

#timestamp_formatObject

Returns the value of attribute timestamp_format.



4
5
6
# File 'lib/fastly/papertrail_logging.rb', line 4

def timestamp_format
  @timestamp_format
end

Class Method Details

.pathObject

:attr: timestamp_format

strftime specified timestamp formatting (default “%Y-%m-%dT%H:%M:%S.000”).



59
60
61
# File 'lib/fastly/papertrail_logging.rb', line 59

def self.path
  'logging/papertrail'
end