App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.api.logservice.logservice.RequestLog Class Reference
Inheritance diagram for google.appengine.api.logservice.logservice.RequestLog:

Public Member Functions

def __init__
 
def __repr__
 
def __str__
 
def app_id
 
def module_id
 
def version_id
 
def request_id
 
def offset
 
def ip
 
def nickname
 
def start_time
 
def end_time
 
def latency
 
def mcycles
 
def method
 
def resource
 
def http_version
 
def status
 
def response_size
 
def referrer
 
def user_agent
 
def url_map_entry
 
def combined
 
def api_mcycles
 
def host
 
def cost
 
def task_queue_name
 
def task_name
 
def was_loading_request
 
def pending_time
 
def replica_index
 
def finished
 
def instance_key
 
def app_logs
 
def app_engine_release
 

Public Attributes

 module_id
 

Detailed Description

Complete log information about a single request to an application.

Member Function Documentation

def google.appengine.api.logservice.logservice.RequestLog.api_mcycles (   self)
Number of machine cycles spent in API calls while processing request.

Deprecated. This value is no longer meaningful.

Returns:
   Number of API machine cycles used as a long, or None if not available.
def google.appengine.api.logservice.logservice.RequestLog.app_engine_release (   self)
App Engine Infrastructure release that served this request.

Returns:
   A string containing App Engine version that served this request, or None
   if not available.
def google.appengine.api.logservice.logservice.RequestLog.app_id (   self)
Application id that handled this request, as a string.
def google.appengine.api.logservice.logservice.RequestLog.app_logs (   self)
Logs emitted by the application while serving this request.

Returns:
   A list of AppLog objects representing the log lines for this request, or
   an empty list if none were emitted or the query did not request them.
def google.appengine.api.logservice.logservice.RequestLog.combined (   self)
Apache combined log entry for request.

The information in this field can be constructed from the rest of
this message, however, this field is included for convenience.

Returns:
A string containing an Apache-style log line in the form documented at
http://httpd.apache.org/docs/1.3/logs.html.
def google.appengine.api.logservice.logservice.RequestLog.cost (   self)
The estimated cost of this request, in fractional dollars.

Returns:
A float representing an estimated fractional dollar cost of this
request, or None if not available.
def google.appengine.api.logservice.logservice.RequestLog.end_time (   self)
Time at which request was known to have completed.

Returns:
A float representing the request completion time in seconds since the
Unix epoch.
def google.appengine.api.logservice.logservice.RequestLog.finished (   self)
Whether or not this log represents a finished request, as a bool.
def google.appengine.api.logservice.logservice.RequestLog.host (   self)
The Internet host and port number of the resource being requested.

Returns:
A string representing the host and port receiving the request, or None
if not available.
def google.appengine.api.logservice.logservice.RequestLog.http_version (   self)
HTTP version of request, as a string.
def google.appengine.api.logservice.logservice.RequestLog.instance_key (   self)
Mostly-unique identifier for the instance that handled the request.

Returns:
A string encoding of an instance key if available, or None.
def google.appengine.api.logservice.logservice.RequestLog.ip (   self)
The origin IP address of the request, as a string.
def google.appengine.api.logservice.logservice.RequestLog.latency (   self)
Time required to process request in seconds, as a float.
def google.appengine.api.logservice.logservice.RequestLog.mcycles (   self)
Number of machine cycles used to process request, as an integer.
def google.appengine.api.logservice.logservice.RequestLog.method (   self)
Request method (GET, PUT, POST, etc), as a string.
def google.appengine.api.logservice.logservice.RequestLog.module_id (   self)
Module id that handled this request, as a string.
def google.appengine.api.logservice.logservice.RequestLog.nickname (   self)
Nickname of the user that made the request if known and logged in.

Returns:
A string representation of the logged in user's nickname, or None.
def google.appengine.api.logservice.logservice.RequestLog.offset (   self)
Binary offset indicating current position in the result stream.

May be submitted to future Log read requests to continue immediately after
this request.

Returns:
A byte string representing an offset into the active result stream.
def google.appengine.api.logservice.logservice.RequestLog.pending_time (   self)
Time this request spent in the pending request queue.

Returns:
A float representing the time in seconds that this request was pending.
def google.appengine.api.logservice.logservice.RequestLog.referrer (   self)
Referrer URL of request as a string, or None.
def google.appengine.api.logservice.logservice.RequestLog.replica_index (   self)
The module replica that handled the request as an integer, or None.
def google.appengine.api.logservice.logservice.RequestLog.request_id (   self)
Globally unique identifier for a request, based on request start time.

Request ids for requests which started later will compare greater as
binary strings than those for requests which started earlier.

Returns:
A byte string containing a unique identifier for this request.
def google.appengine.api.logservice.logservice.RequestLog.resource (   self)
Resource path on server requested by client.

For example, http://nowhere.com/app would have a resource string of '/app'.

Returns:
A string containing the path component of the request URL.
def google.appengine.api.logservice.logservice.RequestLog.response_size (   self)
Size in bytes sent back to client by request, as a long.
def google.appengine.api.logservice.logservice.RequestLog.start_time (   self)
Time at which request was known to have begun processing.

Returns:
A float representing the time this request began processing in seconds
since the Unix epoch.
def google.appengine.api.logservice.logservice.RequestLog.status (   self)
Response status of request, as an int.
def google.appengine.api.logservice.logservice.RequestLog.task_name (   self)
The request's task name, if generated via the Task Queue API.

Returns:
   A string containing the request's task name if relevant, or None.
def google.appengine.api.logservice.logservice.RequestLog.task_queue_name (   self)
The request's queue name, if generated via the Task Queue API.

Returns:
A string containing the request's queue name if relevant, or None.
def google.appengine.api.logservice.logservice.RequestLog.url_map_entry (   self)
File or class within URL mapping used for request.

Useful for tracking down the source code which was responsible for managing
request, especially for multiply mapped handlers.

Returns:
A string containing a file or class name.
def google.appengine.api.logservice.logservice.RequestLog.user_agent (   self)
User agent used to make the request as a string, or None.
def google.appengine.api.logservice.logservice.RequestLog.version_id (   self)
Version of the application that handled this request, as a string.
def google.appengine.api.logservice.logservice.RequestLog.was_loading_request (   self)
Returns whether this request was a loading request for an instance.

Returns:
A bool indicating whether this request was a loading request.

The documentation for this class was generated from the following file: