|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.appengine.api.log.LogQuery
public final class LogQuery
An object that contains the various query parameters that the user wishes
to use for their call to LogService.fetch(LogQuery)
. Users are
expected to use the LogQuery.Builder
class provided here to construct a default
query and then use the with* methods to modify it as they need to when
building their query.
Nested Class Summary | |
---|---|
static class |
LogQuery.Builder
An object that builds LogQuery objects based on the possible query parameters for calls to LogService.fetch(LogQuery) , or its
asynchronous counterpart LogService#fetchAsync(LogQuery) . |
Constructor Summary | |
---|---|
LogQuery()
|
Method Summary | |
---|---|
LogQuery |
batchSize(int batchSize)
A setter that allows for user-specified batch sizes. |
LogQuery |
endTimeUsec(long endTimeUsec)
A setter that allows for user-specified query ending times. |
java.lang.Integer |
getBatchSize()
|
java.lang.Long |
getEndTimeUsec()
|
java.lang.Boolean |
getIncludeAppLogs()
|
java.lang.Boolean |
getIncludeIncomplete()
|
java.util.List<java.lang.String> |
getMajorVersionIds()
|
LogService.LogLevel |
getMinLogLevel()
|
java.lang.String |
getOffset()
|
java.lang.Long |
getStartTimeUsec()
|
LogQuery |
includeAppLogs(boolean includeAppLogs)
A setter that allows the user to specify whether or not they want application-level logs in their results. |
LogQuery |
includeIncomplete(boolean includeIncomplete)
A setter that allows the user to specify whether or not they want incomplete request data returned in their results. |
LogQuery |
majorVersionIds(java.util.List<java.lang.String> versionIds)
A setter that allows the user to specify the major app versions whose log data should be read. |
LogQuery |
minLogLevel(LogService.LogLevel minLogLevel)
A setter that allows the user to specify the minimum logging level desired when searching the application's request logs. |
LogQuery |
offset(java.lang.String offset)
A setter that allows for user-specified query continuation offsets. |
LogQuery |
startTimeUsec(long startTimeUsec)
A setter that allows for user-specified query starting times. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogQuery()
Method Detail |
---|
public LogQuery offset(java.lang.String offset)
offset
- A String retrieved from RequestLogs.getOffset()
providing a starting point for this query immediately after the object
the offset was retrieved from.
public LogQuery startTimeUsec(long startTimeUsec)
startTimeUsec
- The earliest time for returned results (inclusive), in
microseconds since the Unix epoch.
public LogQuery endTimeUsec(long endTimeUsec)
endTimeUsec
- The latest time for returned results (exclusive), in
microseconds since the Unix epoch.
public LogQuery batchSize(int batchSize)
batchSize
- The number of results to retrieve from the logs
storage mechanism at a time. Regardless of this setting, a call to
LogService.fetch(LogQuery)
will continue to yield results until
the query is exhausted.
public LogQuery minLogLevel(LogService.LogLevel minLogLevel)
minLogLevel
- The minimum application log level to search for in the
application's request logs.
public LogQuery includeIncomplete(boolean includeIncomplete)
includeIncomplete
- Whether or not incomplete request log info should
be included in the resulting log data.
public LogQuery includeAppLogs(boolean includeAppLogs)
includeAppLogs
- Whether or not application-level logs should be
returned in the resulting log data.
public LogQuery majorVersionIds(java.util.List<java.lang.String> versionIds)
versionIds
- The major app versions whose log data should be read.
public java.lang.String getOffset()
public java.lang.Integer getBatchSize()
LogService.fetch(LogQuery)
can return.public java.lang.Long getEndTimeUsec()
public java.lang.Boolean getIncludeAppLogs()
public java.lang.Boolean getIncludeIncomplete()
public LogService.LogLevel getMinLogLevel()
public java.lang.Long getStartTimeUsec()
public java.util.List<java.lang.String> getMajorVersionIds()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |