public class LogOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LogOptions.SortOrder |
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_LEVEL |
static String |
PROPERTY_OFFSET |
static String |
PROPERTY_SEARCH |
static String |
PROPERTY_SIZE |
static String |
PROPERTY_SORT |
static String |
PROPERTY_START |
static String |
PROPERTY_UPTO |
Constructor and Description |
---|
LogOptions() |
Modifier and Type | Method and Description |
---|---|
LogLevel |
getLevel() |
Integer |
getOffset() |
String |
getSearch() |
Integer |
getSize() |
LogOptions.SortOrder |
getSort() |
Long |
getStart() |
LogLevel |
getUpto() |
LogOptions |
level(LogLevel level) |
LogOptions |
offset(Integer offset) |
LogOptions |
search(String search) |
LogOptions |
size(Integer size) |
LogOptions |
sort(LogOptions.SortOrder sort) |
LogOptions |
start(Long start) |
LogOptions |
upto(LogLevel upto) |
public static final String PROPERTY_UPTO
public static final String PROPERTY_LEVEL
public static final String PROPERTY_START
public static final String PROPERTY_SIZE
public static final String PROPERTY_OFFSET
public static final String PROPERTY_SEARCH
public static final String PROPERTY_SORT
public LogLevel getUpto()
public LogOptions upto(LogLevel upto)
upto
- Returns all log entries up to log level uptopublic LogLevel getLevel()
public LogOptions level(LogLevel level)
level
- Returns all log entries of log level level. Note that the query parameters upto and level are mutually
exclusivepublic Long getStart()
public LogOptions start(Long start)
start
- Returns all log entries such that their log entry identifier (lid value) is greater or equal to startpublic Integer getSize()
public LogOptions size(Integer size)
size
- Restricts the result to at most size log entriespublic Integer getOffset()
public LogOptions offset(Integer offset)
offset
- Starts to return log entries skipping the first offset log entries. offset and size can be used for
paginationpublic String getSearch()
public LogOptions search(String search)
search
- Only return the log entries containing the text specified in searchpublic LogOptions.SortOrder getSort()
public LogOptions sort(LogOptions.SortOrder sort)
sort
- Sort the log entries either ascending (if sort is asc) or descending (if sort is desc) according to
their lid values. Note that the lid imposes a chronological order. The default value is ascCopyright © 2016–2018 ArangoDB GmbH. All rights reserved.