public class SavedSearchDispatchArgs extends Args
SavedSearchDispatchArgs
class contains arguments for dispatching
a saved search using the SavedSearch.dispatch()
method.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
SavedSearchDispatchArgs()
Class constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
setDispatchBuckets(int dispatchBuckets)
Sets the maximum number of timeline buckets.
|
void |
setDispatchEarliestTime(Date dispatchEarliestTime)
Sets the earliest time for this search.
|
void |
setDispatchEarliestTime(String dispatchEarliestTime)
Specifies the earliest time for this search.
|
void |
setDispatchLatestTime(Date dispatchLatestTime)
Sets the latest time for this search.
|
void |
setDispatchLatestTime(String dispatchLatestTime)
Specifies the latest time for this search.
|
void |
setDispatchLookups(boolean dispatchLookups)
Indicates whether to enable lookups for this search.
|
void |
setDispatchMaximumCount(int dispatchMaximumCount)
Sets the maximum number of results before finalizing the search.
|
void |
setDispatchMaximumTime(int dispatchMaximumTime)
Sets the the maximum amount of time before finalizing the search.
|
void |
setDispatchNow(String dispatchNow)
Sets a time that dispatches the search as though the specified time were the current time.
|
void |
setDispatchRealTimeBackfill(boolean dispatchRealTimeBackfill)
Indicates whether to back fill the real-time window for this search.
|
void |
setDispatchReduceFrequency(int dispatchReduceFrequency)
Set the frequency for how often Splunk should run the MapReduce reduce phase on accumulated map values.
|
void |
setDispatchSpawnProcess(boolean dispatchSpawnProcess)
Indicates whether the search should run in a separate spawned process.
|
void |
setDispatchTimeFormat(String dispatchTimeFormat)
Sets a time format for Splunk to use to specify the earliest and latest times.
|
void |
setDispatchTtl(String dispatchTtl)
Indicates the time to live (TTL) for the artifacts of the scheduled search, if no actions are triggered.
|
void |
setForceDispatch(boolean forceDispatch)
Indicates whether to start a new search, even if another instance of this search is already running.
|
void |
setTriggerActions(boolean triggerActions)
Indicates whether to trigger alert actions.
|
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 setDispatchNow(String dispatchNow)
dispatchNow
- A string with the specified time.public void setDispatchBuckets(int dispatchBuckets)
dispatchBuckets
- The maximum number of timeline buckets.public void setDispatchEarliestTime(String dispatchEarliestTime)
setDispatchTimeFormat(java.lang.String)
to format the value.dispatchEarliestTime
- A time string that specifies the earliest time for this search.public void setDispatchEarliestTime(Date dispatchEarliestTime)
dispatchEarliestTime
- A date that specifies the earliest time for this search.public void setDispatchLatestTime(String dispatchLatestTime)
setDispatchTimeFormat(java.lang.String)
to format the value.dispatchLatestTime
- A time string that specifies the latest time for this search.public void setDispatchLatestTime(Date dispatchLatestTime)
dispatchLatestTime
- A date that specifies the latest time for this saved search.public void setDispatchLookups(boolean dispatchLookups)
dispatchLookups
- true
to enable lookups, false
if not.public void setDispatchMaximumCount(int dispatchMaximumCount)
dispatchMaximumCount
- The maximum number of results.public void setDispatchMaximumTime(int dispatchMaximumTime)
dispatchMaximumTime
- The maximum amount of time, in seconds.public void setDispatchReduceFrequency(int dispatchReduceFrequency)
dispatchReduceFrequency
- The frequency, in seconds.public void setDispatchRealTimeBackfill(boolean dispatchRealTimeBackfill)
dispatchRealTimeBackfill
- true
to back fill the real-time window, false
if not.public void setDispatchSpawnProcess(boolean dispatchSpawnProcess)
dispatchSpawnProcess
- true
to run the search in a separate process, false
if not.public void setDispatchTimeFormat(String dispatchTimeFormat)
dispatchTimeFormat
- A time format string.public void setDispatchTtl(String dispatchTtl)
dispatchTtl
- The time to live, in seconds. If the value is a number followed by "p", it is the number of scheduled search periods.public void setTriggerActions(boolean triggerActions)
triggerActions
- true
to trigger alert actions, false
if not.public void setForceDispatch(boolean forceDispatch)
forceDispatch
- true
to start a new search, false
if not.Copyright © 2022 Splunk, Inc.. All rights reserved.