Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products. If you have feedback or questions as you navigate the site, click Send Feedback.

RequestLogs (Google App Engine API for Java)

Stay organized with collections Save and categorize content based on your preferences.

Class RequestLogs

  • java.lang.Object
  • All Implemented Interfaces:

    public final class RequestLogs
    extends java.lang.Object
    RequestLogs contain all the log information for a single request. This includes the request log as well as any application logs (which may correspond to logging statements in the user's code or messages we have inserted to alert them to certain conditions we have noticed). Additionally, we include information about this request outside of those logs, such as how long the request took, the IP of the user performing the request, and so on.
    See Also:
    Serialized Form
    • Constructor Detail

      • RequestLogs

        public RequestLogs()
        Default, zero-argument constructor for RequestLogs.
    • Method Detail

      • getApiMcycles

        public long getApiMcycles()
        Deprecated. This value is no longer meaningful.
        The number of machine cycles spent in API calls while processing this request.
      • getAppId

        public java.lang.String getAppId()
        The application ID that handled this request.
      • getAppLogLines

        public java.util.List<AppLogLine> getAppLogLines()
        A list of application logs associated with this request.
      • getCombined

        public java.lang.String getCombined()
        The Apache-format combined log entry for this request. While the information in this field can be constructed from the rest of this message, we include this method for convenience.
      • getCost

        public double getCost()
        The estimated cost of this request, in dollars.
      • getEndTimeUsec

        public long getEndTimeUsec()
        The time at which the request was known to end processing, in microseconds since the Unix epoch.
      • getHost

        public java.lang.String getHost()
        The Internet host and port number of the resource being requested.
      • getHttpVersion

        public java.lang.String getHttpVersion()
        The HTTP version of this request.
      • getInstanceKey

        public java.lang.String getInstanceKey()
        Mostly-unique identifier for the instance that handled the request, or the empty string.
      • getIp

        public java.lang.String getIp()
        The origin IP address of this request. App Engine uses an origin IP address from the range when the request is to a web hook. Some examples of web hooks are task queues, cron jobs and warming requests.
      • getLatencyUsec

        public long getLatencyUsec()
        The time required to process this request in microseconds.
      • getMcycles

        public long getMcycles()
        The number of machine cycles used to process this request.
      • getMethod

        public java.lang.String getMethod()
        The request's method (e.g., GET, PUT, POST).
      • getNickname

        public java.lang.String getNickname()
        The nickname of the user that made the request. An empty string is returned if the user is not logged in.
      • getOffset

        public java.lang.String getOffset()
        A Base64-encoded offset that may be used with a subsequent LogQuery to continue reading logs at the point in time immediately following this request.
      • getPendingTimeUsec

        public long getPendingTimeUsec()
        The time, in microseconds, that this request spent in the pending request queue, if it was pending at all.
      • getReferrer

        public java.lang.String getReferrer()
        The referrer URL of this request.
      • getReplicaIndex

        public int getReplicaIndex()
        The backend replica that handled the request, or -1 if not serviced by a backend.
      • getRequestId

        public java.lang.String getRequestId()
        A globally unique identifier for a request, based on the request's starting time.
      • getResource

        public java.lang.String getResource()
        The resource path on the server requested by the client. Contains only the path component of the request URL.
      • getResponseSize

        public long getResponseSize()
        The size (in bytes) sent back to the client by this request.
      • getStartTimeUsec

        public long getStartTimeUsec()
        The time at which this request was known to have begun processing, in microseconds since the Unix epoch.
      • getStatus

        public int getStatus()
        The HTTP response status of this request.
      • getTaskName

        public java.lang.String getTaskName()
        The request's task name, if this request was generated via the Task Queue API.
      • getTaskQueueName

        public java.lang.String getTaskQueueName()
        The request's queue name, if this request was generated via the Task Queue API.
      • getUrlMapEntry

        public java.lang.String getUrlMapEntry()
        The file or class within the URL mapping used for this request. Useful for tracking down the source code which was responsible for managing the request, especially for multiply mapped handlers.
      • getUserAgent

        public java.lang.String getUserAgent()
        The user agent used to make this request.
      • getModuleId

        public java.lang.String getModuleId()
        The module of the application that handled this request.
      • getVersionId

        public java.lang.String getVersionId()
        The version of the application that handled this request.
      • isFinished

        public boolean isFinished()
        Whether or not this request has been finished. If not, this request is still active.
      • isLoadingRequest

        public boolean isLoadingRequest()
        Whether or not this request was a loading request.
      • getAppEngineRelease

        public java.lang.String getAppEngineRelease()
        App Engine Release, e.g. "1.7.5", or the empty string.
      • setApiMcycles

        public void setApiMcycles(long apiMcycles)
      • setAppId

        public void setAppId(java.lang.String appId)
      • setAppLogLines

        public void setAppLogLines(java.util.List<AppLogLine> appLogLines)
      • setCombined

        public void setCombined(java.lang.String combined)
      • setCost

        public void setCost(double cost)
      • setEndTimeUsec

        public void setEndTimeUsec(long endTimeUsec)
      • setFinished

        public void setFinished(boolean finished)
      • setHost

        public void setHost(java.lang.String host)
      • setHttpVersion

        public void setHttpVersion(java.lang.String httpVersion)
      • setInstanceKey

        public void setInstanceKey(java.lang.String instanceKey)
      • setIp

        public void setIp(java.lang.String ip)
      • setLatency

        public void setLatency(long latency)
      • setMcycles

        public void setMcycles(long mcycles)
      • setMethod

        public void setMethod(java.lang.String method)
      • setNickname

        public void setNickname(java.lang.String nickname)
      • setOffset

        public void setOffset(java.lang.String offset)
      • setPendingTime

        public void setPendingTime(long pendingTime)
      • setReferrer

        public void setReferrer(java.lang.String referrer)
      • setReplicaIndex

        public void setReplicaIndex(int replicaIndex)
      • setRequestId

        public void setRequestId(java.lang.String requestId)
      • setResource

        public void setResource(java.lang.String resource)
      • setResponseSize

        public void setResponseSize(long responseSize)
      • setStartTimeUsec

        public void setStartTimeUsec(long startTimeUsec)
      • setStatus

        public void setStatus(int status)
      • setTaskName

        public void setTaskName(java.lang.String taskName)
      • setTaskQueueName

        public void setTaskQueueName(java.lang.String taskQueueName)
      • setUrlMapEntry

        public void setUrlMapEntry(java.lang.String urlMapEntry)
      • setUserAgent

        public void setUserAgent(java.lang.String userAgent)
      • setModuleId

        public void setModuleId(java.lang.String moduleId)
      • setVersionId

        public void setVersionId(java.lang.String versionId)
      • setWasLoadingRequest

        public void setWasLoadingRequest(boolean wasLoadingRequest)
      • setAppEngineRelease

        public void setAppEngineRelease(java.lang.String appEngineRelease)
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        equals in class java.lang.Object