|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap<K,V> java.util.HashMap<K,V> java.util.LinkedHashMap<java.lang.String,java.lang.Object> com.splunk.Args com.splunk.JobEventsArgs
public class JobEventsArgs
The JobEventsArgs
class contains arguments for getting events using
the Job.getEvents()
method.
Nested Class Summary | |
---|---|
static class |
JobEventsArgs.OutputMode
Specifies the format for the returned output. |
static class |
JobEventsArgs.TruncationMode
Specifies how to truncate lines to achieve the value in setMaximumLines(int) . |
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary | |
---|---|
JobEventsArgs()
Class constructor. |
Method Summary | |
---|---|
void |
setCount(int count)
Sets the maximum number of results to return. |
void |
setEarliestTime(java.lang.String earliestTime)
Specifies the earliest time in the time range to search. |
void |
setFieldList(java.lang.String[] fieldList)
Sets a list of fields to return for the event set. |
void |
setLatestTime(java.lang.String latestTime)
Specifies the latest time in the time range to search. |
void |
setMaximumLines(int maximumLines)
Sets the maximum number of lines that any single event's _raw field should contain. |
void |
setOffset(int offset)
Specifies the index of the first result (inclusive) from which to begin returning data. |
void |
setOutputMode(JobEventsArgs.OutputMode outputMode)
Sets the format of the output. |
void |
setOutputTimeFormat(java.lang.String outputTimeFormat)
Sets a UTC time format. |
void |
setSearch(java.lang.String search)
Sets the post-processing search to apply to results. |
void |
setSegmentation(java.lang.String segmentation)
Sets the type of segmentation to perform on the data, including an option to perform k/v segmentation. |
void |
setTimeFormat(java.lang.String timeFormat)
Specifies an expression to convert a formatted time string from {start,end}_time into UTC seconds. |
void |
setTruncationMode(JobEventsArgs.TruncationMode truncationMode)
Specifies how to truncate lines to achieve the value in setMaximumLines(int) . |
Methods inherited from class com.splunk.Args |
---|
add, create, create, create, encode, encode, encode, get |
Methods inherited from class java.util.LinkedHashMap |
---|
clear, containsValue, get, removeEldestEntry |
Methods inherited from class java.util.HashMap |
---|
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Constructor Detail |
---|
public JobEventsArgs()
Method Detail |
---|
public void setCount(int count)
count
- The maximum number of results.public void setEarliestTime(java.lang.String earliestTime)
earliestTime
- The earliest time.public void setFieldList(java.lang.String[] fieldList)
fieldList
- A list of fields.public void setLatestTime(java.lang.String latestTime)
latestTime
- The latest time.public void setMaximumLines(int maximumLines)
maximumLines
- The maximum number of lines. For no limit, specify 0.public void setOffset(int offset)
In Splunk 4.1+, negative offsets are allowed and are added to the count to compute the absolute offset (for example, offset=-1 is the last available offset). Offsets in the results are always absolute and never negative. The default value is 0.
offset
- The index of the first result to return.public void setOutputMode(JobEventsArgs.OutputMode outputMode)
outputMode
- The output format.public void setOutputTimeFormat(java.lang.String outputTimeFormat)
outputTimeFormat
- A UTC time format.public void setSearch(java.lang.String search)
search
- The post-processing search query.public void setSegmentation(java.lang.String segmentation)
segmentation
- The segmentation type.public void setTimeFormat(java.lang.String timeFormat)
timeFormat
- The time format.public void setTruncationMode(JobEventsArgs.TruncationMode truncationMode)
setMaximumLines(int)
.
truncationMode
- The truncation mode.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |