public class JobEventsArgs extends Args
JobEventsArgs
class contains arguments for getting events using
the Job.getEvents()
method.Modifier and Type | Class and Description |
---|---|
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) . |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
JobEventsArgs()
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
setCount(int count)
Sets the maximum number of results to return.
|
void |
setEarliestTime(String earliestTime)
Specifies the earliest time in the time range to search.
|
void |
setFieldList(String[] fieldList)
Sets a list of fields to return for the event set.
|
void |
setLatestTime(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(String outputTimeFormat)
Sets a UTC time format.
|
void |
setSearch(String search)
Sets the post-processing search to apply to results.
|
void |
setSegmentation(String segmentation)
Sets the type of segmentation to perform on the data, including an option to perform k/v segmentation.
|
void |
setTimeFormat(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) . |
add, create, create, create, encode, encode, encode, get
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
equals, hashCode, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
public void setCount(int count)
count
- The maximum number of results.public void setEarliestTime(String earliestTime)
earliestTime
- The earliest time.public void setFieldList(String[] fieldList)
fieldList
- A list of fields.public void setLatestTime(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(String outputTimeFormat)
outputTimeFormat
- A UTC time format.public void setSearch(String search)
search
- The post-processing search query.public void setSegmentation(String segmentation)
segmentation
- The segmentation type.public void setTimeFormat(String timeFormat)
timeFormat
- The time format.public void setTruncationMode(JobEventsArgs.TruncationMode truncationMode)
setMaximumLines(int)
.truncationMode
- The truncation mode.Copyright © 2022 Splunk, Inc.. All rights reserved.