|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.splunk.Resource
com.splunk.Entity
com.splunk.SavedSearch
public class SavedSearch
The SavedSearch
class represents a saved search.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class com.splunk.Resource |
---|
actions, path, service, title |
Method Summary | |
---|---|
void |
acknowledge()
Acknowledges the suppression of alerts from this saved search and resumes alerting. |
protected java.lang.String |
actionPath(java.lang.String action)
Returns the path that corresponds to the requested action. |
Job |
dispatch()
Runs the saved search. |
Job |
dispatch(java.util.Map args)
Runs the saved search using dispatch arguments. |
java.lang.String |
getActionEmailSendResults()
Indicates whether search results are attached to an email. |
java.lang.String |
getActionEmailTo()
Returns a list of email recipients. |
java.lang.String |
getAlertComparator()
Returns the alert comparator. |
java.lang.String |
getAlertCondition()
Returns a conditional search that is evaluated against the results of the saved search. |
java.lang.String |
getAlertExpires()
Returns the amount of time to show the alert in the dashboard. |
int |
getAlertSeverity()
Returns the alert severity level. |
java.lang.String |
getAlertSuppress()
Indicates whether alert suppression is enabled for this search. |
java.lang.String |
getAlertSuppressPeriod()
Returns the alert suppression period, which is only valid if AlertSuppress is enabled. |
java.lang.String |
getAlertThreshold()
Returns the value to compare to before triggering the alert action. |
java.lang.String |
getAlertTrack()
Returns a value that indicates how to track the actions triggered by this saved search. |
java.lang.String |
getAlertType()
Returns a value that indicates what to base the alert on. |
java.lang.String |
getCronSchedule()
Returns the cron schedule for running this saved search. |
java.lang.String |
getDescription()
Returns a human-readable description of this saved search. |
int |
getDispatchBuckets()
Returns the maximum number of timeline buckets. |
java.lang.String |
getDispatchEarliestTime()
Returns the earliest time for this search. |
java.lang.String |
getDispatchLatestTime()
Returns the latest time for this search. |
boolean |
getDispatchLookups()
Indicates whether look-ups are enabled for this search. |
int |
getDispatchMaxCount()
Returns the maximum number of results before finalizing the search. |
java.lang.String |
getDispatchMaxTime()
Returns the maximum amount of time before finalizing the search. |
int |
getDispatchReduceFreq()
Returns how frequently Splunk should run the MapReduce reduce phase on accumulated map values. |
boolean |
getDispatchSpawnProcess()
Indicates whether Splunk spawns a new search process when this saved search is executed. |
java.lang.String |
getDispatchTimeFormat()
Returns the time format used to specify the earliest and latest times for this search. |
java.lang.String |
getDispatchTtl()
Returns the time to live for artifacts of the scheduled search (the time before the search job expires and artifacts are still available), if no alerts are triggered. |
java.lang.String |
getDisplayView()
Returns the default UI view in which to load results. |
int |
getMaxConcurrent()
Returns the maximum number of concurrent instances of this search the scheduler is allowed to run. |
boolean |
getRealtimeSchedule()
Indicates whether the scheduler computes the next run time of a scheduled search based on the current time or on the last search run time (for continuous scheduling). |
java.lang.String |
getRequestUiDispatchApp()
Returns the app this search should be dispatched in. |
java.lang.String |
getRequestUiDispatchView()
Returns the view this search should be displayed in. |
boolean |
getRestartOnSearchPeerAdd()
Indicates whether a real-time search managed by the scheduler is restarted when a search peer becomes available for this saved search. |
boolean |
getRunOnStartup()
Indicates whether this search is run when Splunk starts. |
java.lang.String |
getSearch()
Returns the search expression for this saved search. |
java.lang.String |
getVsid()
Returns the view state ID that is associated with the view specified in the DisplayView property. |
Job[] |
history()
Returns an array of search jobs created from this saved search. |
boolean |
isActioncScript()
Indicates whether the script action is enabled. |
boolean |
isActionEmail()
Indicates whether the email action is enabled. |
boolean |
isActionPopulateLookup()
Indicates whether the populate-lookup action is enabled. |
boolean |
isActionRss()
Indicates whether the RSS action is enabled. |
boolean |
isActionSummaryIndex()
Indicates whether the summary-index action is enabled. |
boolean |
isDigestMode()
Indicates whether Splunk applies the alert actions to the entire result set (digest) or to each individual search result (per result). |
boolean |
isScheduled()
Indicates whether this search is run on a schedule. |
boolean |
isVisible()
Indicates whether the search should be visible in the saved search list. |
void |
update(java.util.Map<java.lang.String,java.lang.Object> args)
Updates the entity with the specified arguments. |
Methods inherited from class com.splunk.Entity |
---|
clear, containsKey, containsValue, disable, enable, entrySet, get, getMetadata, isDisabled, isEmpty, keySet, put, putAll, refresh, reload, remove, remove, size, validate, values |
Methods inherited from class com.splunk.Resource |
---|
getActions, getName, getPath, getService, getTitle, invalidate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Method Detail |
---|
public void acknowledge()
protected java.lang.String actionPath(java.lang.String action)
actionPath
in class Entity
action
- The requested action.
public Job dispatch()
public Job dispatch(java.util.Map args)
args
- Dispatch arguments.
public Job[] history()
public java.lang.String getActionEmailSendResults()
true
if search results are attached to an email,
false
if not.public java.lang.String getActionEmailTo()
public java.lang.String getAlertExpires()
public int getAlertSeverity()
public java.lang.String getAlertSuppress()
true
if alert suppression is enabled for this
search, false
if not.public java.lang.String getAlertSuppressPeriod()
AlertSuppress
is enabled.
getAlertSuppress()
public java.lang.String getAlertTrack()
true
(force tracking),
false
(disable tracking), and auto
(tracking is based on
the setting of each action).
public java.lang.String getAlertComparator()
greater than
, less than
, equal to
, rises by
,
drops by
, rises by perc
, and drops by perc
.
public java.lang.String getAlertCondition()
public java.lang.String getAlertThreshold()
public java.lang.String getAlertType()
always
, custom
, number of events
,
number of hosts
, and number of sources
. This value is
overridden by AlertCondition
if specified.
getAlertCondition()
public java.lang.String getCronSchedule()
public java.lang.String getDescription()
public int getDispatchBuckets()
public java.lang.String getDispatchEarliestTime()
DispatchTimeFormat
).
getDispatchTimeFormat()
public java.lang.String getDispatchLatestTime()
DispatchTimeFormat
).
getDispatchTimeFormat()
public boolean getDispatchLookups()
true
if look-ups are enabled, false
if not.public int getDispatchMaxCount()
public java.lang.String getDispatchMaxTime()
public int getDispatchReduceFreq()
public boolean getDispatchSpawnProcess()
true
if Splunk spawns a new process when this saved search
is executed, false
if not.public java.lang.String getDispatchTimeFormat()
public java.lang.String getDispatchTtl()
public java.lang.String getDisplayView()
public int getMaxConcurrent()
public boolean getRealtimeSchedule()
true
if the run time is based on current time, false
if based on the previous search time.public java.lang.String getRequestUiDispatchApp()
public java.lang.String getRequestUiDispatchView()
public boolean getRestartOnSearchPeerAdd()
true
if a real-time search is restarted, false
if not.public boolean getRunOnStartup()
true
if this search is run when Splunk starts, false
if not.public java.lang.String getSearch()
public java.lang.String getVsid()
DisplayView
property. This ID corresponds to a stanza in the
viewstates.conf configuration file.
getDisplayView()
public boolean isActionEmail()
true
if the email action is enabled, false
if not.public boolean isActionPopulateLookup()
true
if the populate-lookup action is enabled, false
if not.public boolean isActionRss()
true
if the RSS action is enabled, false
if not.public boolean isActioncScript()
true
if the script action is enabled, false
if not.public boolean isActionSummaryIndex()
true
if the summary-index action is enabled, false
if not.public boolean isDigestMode()
true
if actions are applied per digest,
false
if per result.public boolean isScheduled()
true
if this search is run on a schedule, false
if not.public boolean isVisible()
true
if the search should be listed, false
if not.public void update(java.util.Map<java.lang.String,java.lang.Object> args)
update
in class Entity
args
- The arguments to update.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |