|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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> |
Method Summary | |
---|---|
void |
acknowledge()
Acknowledges the suppression of alerts from this saved search and resumes alerting. |
Job |
dispatch()
Runs the saved search. |
Job |
dispatch(java.util.Map args)
Runs the saved search using dispatch arguments. |
Job |
dispatch(SavedSearchDispatchArgs args)
Runs the saved search using dispatch arguments. |
java.lang.String |
getActionEmailAuthPassword()
Returns the email password. |
java.lang.String |
getActionEmailAuthUsername()
Returns the email username. |
java.lang.String |
getActionEmailBcc()
Returns the blind carbon copy (BCC) email address. |
java.lang.String |
getActionEmailCc()
Returns the carbon copy (CC) email address. |
java.lang.String |
getActionEmailCommand()
Returns the search command (or pipeline) that runs the action. |
java.lang.String |
getActionEmailFormat()
Returns the format of text in the email. |
java.lang.String |
getActionEmailFrom()
Returns the email sender's name. |
java.lang.String |
getActionEmailHostname()
Returns the host name used in the web link (URL) that is sent in email alerts. |
boolean |
getActionEmailInline()
Indicates whether the search results are contained in the body of the email. |
java.lang.String |
getActionEmailMailServer()
Returns the address of the MTA server that is used to send the emails. |
int |
getActionEmailMaxResults()
Returns the maximum number of search results to send in email alerts. |
java.lang.String |
getActionEmailMaxTime()
Returns the maximum amount of time an email action takes before the action is canceled. |
java.lang.String |
getActionEmailPdfView()
Returns the name of the view to deliver if ActionEmailSendPdf is
enabled. |
java.lang.String |
getActionEmailPreProcessResults()
Returns the search string for pre-processing results before emailing them. |
java.lang.String |
getActionEmailReportPaperOrientation()
Returns the paper orientation. |
java.lang.String |
getActionEmailReportPaperSize()
Returns the paper size for PDFs. |
boolean |
getActionEmailReportServerEnabled()
Indicates whether the PDF server is enabled. |
java.lang.String |
getActionEmailReportServerUrl()
Returns the URL of the PDF report server, if one is set up and available on the network. |
boolean |
getActionEmailSendPdf()
Indicates whether to create and send the results in PDF format. |
boolean |
getActionEmailSendResults()
Indicates whether search results are attached to an email. |
java.lang.String |
getActionEmailSubject()
Returns the subject line of the email. |
java.lang.String |
getActionEmailTo()
Returns a list of email recipients. |
boolean |
getActionEmailTrackAlert()
Indicates whether running this email action results in a trackable alert. |
java.lang.String |
getActionEmailTtl()
Returns the minimum time-to-live (ttl) of search artifacts if this email action is triggered. |
boolean |
getActionEmailUseSsl()
Indicates whether to use secure socket layer (SSL) when communicating with the SMTP server. |
boolean |
getActionEmailUseTls()
Indicates whether to use transport layer security (TLS) when communicating with the SMTP server. |
boolean |
getActionEmailWidthSortColumns()
Indicates whether columns should be sorted from least wide to most wide, left to right. |
java.lang.String |
getActionPopulateLookupCommand()
Returns the search command (or pipeline) that runs the action. |
java.lang.String |
getActionPopulateLookupDest()
Returns the name of the lookup table or lookup path to populate. |
java.lang.String |
getActionPopulateLookupHostname()
Returns the host name used in the web link (URL) that is sent in populate-lookup alerts. |
int |
getActionPopulateLookupMaxResults()
Returns the maximum number of search results to send in populate-lookup alerts. |
java.lang.String |
getActionPopulateLookupMaxTime()
Returns the maximum amount of time an alert action takes before the action is canceled. |
boolean |
getActionPopulateLookupTrackAlert()
Indicates whether running this populate-lookup action results in a trackable alert. |
java.lang.String |
getActionPopulateLookupTtl()
Returns the minimum time-to-live (ttl) of search artifacts if this populate-lookup action is triggered. |
java.lang.String |
getActionRssCommand()
Returns the search command (or pipeline) that runs the action. |
java.lang.String |
getActionRssHostname()
Returns the host name used in the web link (URL) that is sent in RSS alerts. |
int |
getActionRssMaxResults()
Returns the maximum number of search results to send in RSS alerts. |
java.lang.String |
getActionRssMaxTime()
Returns the maximum amount of time an RSS alert action takes before the action is canceled. |
boolean |
getActionRssTrackAlert()
Indicates whether running this RSS action results in a trackable alert. |
java.lang.String |
getActionRssTtl()
Returns the minimum time-to-live (ttl) of search artifacts if this RSS action is triggered. |
java.lang.String |
getActionScriptCommand()
Returns the search command (or pipeline) that runs the action. |
java.lang.String |
getActionScriptFilename()
Returns the filename of the script to call. |
java.lang.String |
getActionScriptHostname()
Returns the host name used in the web link (URL) that is sent in script alerts. |
int |
getActionScriptMaxResults()
Returns the maximum number of search results to send in script alerts. |
java.lang.String |
getActionScriptMaxTime()
Returns the maximum amount of time a script action takes before the action is canceled. |
boolean |
getActionScriptTrackAlert()
Indicates whether running this script action results in a trackable alert. |
java.lang.String |
getActionScriptTtl()
Returns the minimum time-to-live (ttl) of search artifacts if this script action is triggered. |
java.lang.String |
getActionSummaryIndexCommand()
Returns the search command (or pipeline) that runs the action. |
java.lang.String |
getActionSummaryIndexHostname()
Returns the host name used in the web link (URL) that is sent in summary-index alerts. |
boolean |
getActionSummaryIndexInline()
Indicates whether to run the summary indexing action as part of the scheduled search. |
int |
getActionSummaryIndexMaxResults()
Returns the maximum number of search results to send in summary-index alerts. |
java.lang.String |
getActionSummaryIndexMaxTime()
Returns the maximum amount of time a summary action takes before the action is canceled. |
java.lang.String |
getActionSummaryIndexName()
Returns the name of the summary index where the results of the scheduled search are saved. |
boolean |
getActionSummaryIndexTrackAlert()
Indicates whether running this summary-index action results in a trackable alert. |
java.lang.String |
getActionSummaryIndexTtl()
Returns the minimum time-to-live (ttl) of search artifacts if a summary-index action is triggered. |
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. |
boolean |
getAlertDigestMode()
Indicates whether Splunk applies the alert actions to the entire result set (digest) or to each individual search result (per result). |
java.lang.String |
getAlertExpires()
Returns the amount of time to show the alert in the dashboard. |
int |
getAlertSeverity()
Returns the alert severity level. |
boolean |
getAlertSuppress()
Indicates whether alert suppression is enabled for this search. |
java.lang.String |
getAlertSuppressFields()
Returns a list of fields to use for alert suppression. |
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-style schedule for running this saved search. |
java.lang.String |
getDescription()
Returns a 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 lookups are enabled for this search. |
int |
getDispatchMaxCount()
Returns the maximum number of results before finalizing the search. |
int |
getDispatchMaxTime()
Returns the maximum amount of time before finalizing the search. |
boolean |
getDispatchRealTimeBackfill()
Indicates whether to back fill the real-time window for this search. |
int |
getDispatchReduceFrequency()
Returns how frequently Splunk runs the MapReduce reduce phase on accumulated map values. |
boolean |
getDispatchRtBackfill()
Deprecated. Use getDispatchRealTimeBackfill() instead. |
boolean |
getDispatchSpawnProcess()
Indicates whether Splunk spawns a new search process when running this saved search. |
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 (ttl) 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 view in which to load results. |
int |
getMaxConcurrent()
Returns the maximum number of concurrent instances of this search the scheduler is allowed to run. |
java.util.Date |
getNextScheduledTime()
Returns the next scheduled time. |
java.lang.String |
getQualifiedSearch()
Returns the qualified search. |
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 in which Splunk Web dispatches this search. |
java.lang.String |
getRequestUiDispatchView()
Returns the view in which Splunk Web displays this search. |
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 query for this saved search. |
java.lang.String |
getVsid()
Returns the view state ID that is associated with the view specified in the DisplayView attribute. |
Job[] |
history()
Returns an array of search jobs created from this saved search. |
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 |
isActionScript()
Indicates whether the script 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 |
setActionEmailAuthPassword(java.lang.String password)
Sets the password to use when authenticating with the SMTP server. |
void |
setActionEmailAuthUsername(java.lang.String username)
Sets the username to use when authenticating the SMTP server. |
void |
setActionEmailBcc(java.lang.String bcc)
Sets the blind carbon copy (BCC) email address to use for email alerts. |
void |
setActionEmailCc(java.lang.String cc)
Sets the carbon copy (CC) email address to use for email alerts. |
void |
setActionEmailCommand(java.lang.String command)
Returns the search command (or pipeline) that runs the action. |
void |
setActionEmailFormat(java.lang.String format)
Sets the format of text in the email. |
void |
setActionEmailFrom(java.lang.String from)
Sets the email sender's name. |
void |
setActionEmailHostname(java.lang.String hostname)
Sets the host name used in the web link (URL) to send in email alerts. |
void |
setActionEmailInline(boolean inline)
Sets whether the search results are contained in the body of the email. |
void |
setActionEmailMailServer(java.lang.String mailServer)
Sets the address of the MTA server that is used to send the emails. |
void |
setActionEmailMaxResults(int maxResults)
Sets the maximum number of search results to send in email alerts. |
void |
setActionEmailMaxTime(java.lang.String maxTime)
Sets the maximum amount of time an email action takes before the action is canceled. |
void |
setActionEmailPdfView(java.lang.String name)
Sets the name of the view to deliver if ActionEmailSendPdf is
enabled. |
void |
setActionEmailPreProcessResults(java.lang.String preprocess)
Sets the search string for pre-processing results before emailing them. |
void |
setActionEmailReportPaperOrientation(java.lang.String orientation)
Sets the paper orientation. |
void |
setActionEmailReportPaperSize(java.lang.String size)
Sets the paper size for PDFs. |
void |
setActionEmailReportServerEnabled(boolean pdfServerEnabled)
Sets whether the PDF server is enabled. |
void |
setActionEmailReportServerUrl(java.lang.String pdfServerUrl)
Sets the URL of the PDF report server. |
void |
setActionEmailSendPdf(boolean sendPdf)
Sets whether to create and send the results in PDF format. |
void |
setActionEmailSendResults(boolean sendResults)
Sets whether to attach the search results to an email. |
void |
setActionEmailSubject(java.lang.String subject)
Sets the subject line of the email. |
void |
setActionEmailTo(java.lang.String to)
Sets a list of email recipients. |
void |
setActionEmailTrackAlert(boolean trackAlert)
Sets whether running this email action results in a trackable alert. |
void |
setActionEmailTtl(java.lang.String ttl)
Sets the minimum time-to-live in seconds of the search artifacts if an email action is triggered. |
void |
setActionEmailUseSsl(boolean useSsl)
Sets whether to use secure socket layer (SSL) when communicating with the SMTP server. |
void |
setActionEmailUseTls(boolean useTls)
Sets whether to use transport layer security (TLS) when communicating with the SMTP server. |
void |
setActionEmailWidthSortColumns(boolean widthSortColumns)
Sets whether columns should be sorted from least wide to most wide, left to right. |
void |
setActionPopulateLookupCommand(java.lang.String command)
Sets the search command (or pipeline) that runs the action. |
void |
setActionPopulateLookupDest(java.lang.String dest)
Sets the name of the lookup table or lookup path to populate. |
void |
setActionPopulateLookupHostname(java.lang.String hostname)
Sets the host name used in the web link (URL) to send in populate-lookup alerts. |
void |
setActionPopulateLookupMaxResults(int maxResults)
Sets the maximum number of search results to send in populate-lookup alerts. |
void |
setActionPopulateLookupMaxTime(java.lang.String maxTime)
Sets the maximum amount of time an alert action takes before the action is canceled. |
void |
setActionPopulateLookupTrackAlert(boolean trackAlert)
Sets whether running this populate-lookup action results in a trackable alert. |
void |
setActionPopulateLookupTtl(java.lang.String ttl)
Sets the minimum time-to-live (ttl) of the search artifacts if this populate-lookup action is triggered. |
void |
setActionRssCommand(java.lang.String command)
Sets the search command (or pipeline) that runs the action. |
void |
setActionRssHostname(java.lang.String hostname)
Sets the host name to use in the web link (URL) to send in RSS alerts. |
void |
setActionRssMaxResults(int maxResults)
Sets the maximum number of search results to send in RSS alerts. |
void |
setActionRssMaxTime(java.lang.String maxTime)
Sets the maximum amount of time an RSS action takes before the action is canceled. |
void |
setActionRssTrackAlert(boolean trackAlert)
Sets whether running this RSS action results in a trackable alert. |
void |
setActionRssTtl(java.lang.String ttl)
Sets the minimum time-to-live in seconds of the search artifacts if an RSS action is triggered. |
void |
setActions(java.lang.String actions)
Sets whichs actions to enable. |
void |
setActionScriptCommand(java.lang.String command)
Sets the search command (or pipeline) that runs the action. |
void |
setActionScriptFilename(java.lang.String filename)
Sets the file name of the script to call. |
void |
setActionScriptHostname(java.lang.String hostname)
Sets the host name used in the web link (URL) to send in script alerts. |
void |
setActionScriptMaxResults(int maxResults)
Sets the maximum number of search results to send in script alerts. |
void |
setActionScriptMaxTime(java.lang.String maxTime)
Sets the maximum amount of time a script action takes before the action is canceled. |
void |
setActionScriptTrackAlert(boolean trackAlert)
Sets whether running this script action results in a trackable alert. |
void |
setActionScriptTtl(java.lang.String ttl)
Sets the minimum time-to-live in seconds of the search artifacts if a script action is triggered. |
void |
setActionSummaryIndexCommand(java.lang.String command)
Sets the search command (or pipeline) that runs the action. |
void |
setActionSummaryIndexHostname(java.lang.String hostname)
Sets the host name used in the web link (URL) to send in summary-index alerts. |
void |
setActionSummaryIndexInline(boolean inline)
Sets whether to run the summary indexing action as part of the scheduled search. |
void |
setActionSummaryIndexMaxResults(int maxResults)
Sets the maximum number of search results to send in summary-index alerts. |
void |
setActionSummaryIndexMaxTime(java.lang.String maxTime)
Sets the maximum amount of time a summary-index action takes before the action is canceled. |
void |
setActionSummaryIndexName(java.lang.String name)
Sets the name of the summary index where the results of the scheduled search are saved. |
void |
setActionSummaryIndexTrackAlert(boolean trackAlert)
Sets whether running summary-index action results in a trackable alert. |
void |
setActionSummaryIndexTtl(java.lang.String ttl)
Sets the minimum time-to-live in seconds of the search artifacts if a summary-index action is triggered. |
void |
setAlertComparator(java.lang.String comparator)
Sets the alert comparator. |
void |
setAlertCondition(java.lang.String conditional)
Sets a conditional search that is evaluated against the results of the saved search. |
void |
setAlertDigestMode(boolean digest)
Sets whether Splunk applies the alert actions to the entire result set or on each individual result. |
void |
setAlertExpires(java.lang.String period)
Sets the period of time to show the alert in the dashboard. |
void |
setAlertSeverity(int severity)
Sets the alert severity level, which is an integer from 1-6 (1=DEBUG, 2=INFO, 3=WARN, 4=ERROR, 5=SEVERE, 6=FATAL). |
void |
setAlertSuppress(boolean suppress)
Sets whether to enable alert suppression for this scheduled search. |
void |
setAlertSuppressFields(java.lang.String fields)
Specifies a list of fields to use for alert suppression. |
void |
setAlertSuppressPeriod(java.lang.String period)
Sets the period for alert suppression. |
void |
setAlertThreshold(java.lang.String threshold)
Sets the value to compare to before triggering the alert action. |
void |
setAlertTrack(java.lang.String track)
Sets how to track the actions triggered by this saved search. |
void |
setAlertType(java.lang.String type)
Sets a value that indicates what to base the alert on. |
void |
setCronSchedule(java.lang.String cronSchedule)
Sets the cron schedule for running this saved search. |
void |
setDescription(java.lang.String description)
Sets the description of this saved search. |
void |
setDisabled(boolean disabled)
Sets whether the saved search is disabled. |
void |
setDispatchBuckets(int buckets)
Sets the maximum number of timeline buckets. |
void |
setDispatchBuckets(java.lang.String buckets)
Deprecated. Use setDispatchBuckets(int) instead. |
void |
setDispatchEarliestTime(java.lang.String earliestTime)
Sets the earliest time for this search. |
void |
setDispatchLatestTime(java.lang.String latestTime)
Sets the latest time for this search. |
void |
setDispatchLookups(boolean lookups)
Sets whether to enable lookups for this search. |
void |
setDispatchMaxCount(int max)
Sets the maximum number of results before finalizing the search. |
void |
setDispatchMaxTime(int max)
Sets the maximum time before finalizing the search. |
void |
setDispatchRealTimeBackfill(boolean backfill)
Sets whether to back fill the real-time window for this search. |
void |
setDispatchReduceFrequency(int seconds)
Sets how frequently Splunk should run the MapReduce reduce phase on accumulated map values. |
void |
setDispatchSpawnProcess(boolean spawn)
Sets whether Splunk spawns a new search process when running this saved search. |
void |
setDispatchTimeFormat(java.lang.String format)
Sets the time format used to specify the earliest and latest times for this search. |
void |
setDispatchTtl(java.lang.String format)
Sets the minimum time-to-live in seconds of the search artifacts if no actions are triggered. |
void |
setDisplayView(java.lang.String view)
Sets the default view in which to load the results. |
void |
setIsScheduled(boolean value)
Sets whether this search runs on a schedule. |
void |
setIsVisible(boolean value)
Sets whether this search appears in the visible list of saved searches. |
void |
setMaxConcurrent(int max)
Sets the maximum number of concurrent instances of this search the scheduler is allowed to run. |
void |
setRealtimeSchedule(boolean value)
Sets how the scheduler computes the next time a scheduled search is run. |
void |
setRequestUiDispatchApp(java.lang.String app)
Sets the app in which Splunk Web dispatches this search. |
void |
setRequestUiDispatchView(java.lang.String view)
Sets the view in which Splunk Web displays this search. |
void |
setRestartOnSearchpeerAdd(boolean restart)
Deprecated. Use setRestartOnSearchPeerAdd(boolean) instead. |
void |
setRestartOnSearchPeerAdd(boolean restart)
Sets whether a real-time search managed by the scheduler is restarted when a search peer becomes available for this saved search. |
void |
setRunOnStartup(boolean startup)
Sets whether this search is run when Splunk starts. |
void |
setSearch(java.lang.String search)
Sets the search query for this saved search. |
void |
setVsid(java.lang.String vsid)
Sets the view state ID that is associated with the view specified in the DisplayView attribute. |
void |
update()
Updates the entity with the accumulated arguments, established by the individual setter methods for each specific entity class. |
void |
update(java.util.Map<java.lang.String,java.lang.Object> args)
Updates the entity with the values you previously set using the setter methods, and any additional specified arguments. |
Methods inherited from class com.splunk.Entity |
---|
clear, containsKey, containsValue, disable, enable, entrySet, get, getMetadata, isDisabled, isEmpty, keySet, put, putAll, refresh, remove, remove, size, validate, values |
Methods inherited from class com.splunk.Resource |
---|
getName, getPath, getService, getTitle, invalidate |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Method Detail |
---|
public void acknowledge()
public Job dispatch() throws java.lang.InterruptedException
java.lang.InterruptedException
public Job dispatch(java.util.Map args) throws java.lang.InterruptedException
args
- Dispatch arguments: java.lang.InterruptedException
public Job dispatch(SavedSearchDispatchArgs args) throws java.lang.InterruptedException
args
- Dispatch arguments (see SavedSearchDispatchArgs
).
java.lang.InterruptedException
public Job[] history()
public java.lang.String getActionEmailAuthPassword()
public java.lang.String getActionEmailAuthUsername()
public java.lang.String getActionEmailBcc()
public java.lang.String getActionEmailCc()
public java.lang.String getActionEmailCommand()
Generally, this command is a template search pipeline that is realized with values from the saved search. To reference saved search field values, wrap them in "$". For example, use "$name$" to reference the saved search name, or use "$search$" to reference the search query.
public java.lang.String getActionEmailFormat()
public java.lang.String getActionEmailFrom()
public java.lang.String getActionEmailHostname()
public boolean getActionEmailInline()
true
if search results are contained in the body of the
email, false
if not.public java.lang.String getActionEmailMailServer()
public int getActionEmailMaxResults()
public java.lang.String getActionEmailMaxTime()
public java.lang.String getActionEmailPdfView()
ActionEmailSendPdf
is
enabled.
getActionEmailSendPdf()
public java.lang.String getActionEmailPreProcessResults()
public java.lang.String getActionEmailReportPaperOrientation()
public java.lang.String getActionEmailReportPaperSize()
public boolean getActionEmailReportServerEnabled()
true
if the PDF server is enabled, false
if not.public java.lang.String getActionEmailReportServerUrl()
public boolean getActionEmailSendPdf()
true
if results are sent in PDF format, false
if
not.public boolean getActionEmailSendResults()
true
if search results are attached to an email,
false
if not.public java.lang.String getActionEmailSubject()
public java.lang.String getActionEmailTo()
public boolean getActionEmailTrackAlert()
true
for a trackable alert, false
if not.public java.lang.String getActionEmailTtl()
public boolean getActionEmailUseSsl()
true
if SSL is used, false
if not.public boolean getActionEmailUseTls()
true
if TLS is used, false
if not.public boolean getActionEmailWidthSortColumns()
ActionEmailFormat
is "plain".
true
if columns are sorted from least wide to most wide,
false
if not.getActionEmailFormat()
public java.lang.String getActionPopulateLookupCommand()
public java.lang.String getActionPopulateLookupDest()
public java.lang.String getActionPopulateLookupHostname()
public int getActionPopulateLookupMaxResults()
public java.lang.String getActionPopulateLookupMaxTime()
public boolean getActionPopulateLookupTrackAlert()
true
for a trackable alert, false
if not.public java.lang.String getActionPopulateLookupTtl()
public java.lang.String getActionRssCommand()
public java.lang.String getActionRssHostname()
public int getActionRssMaxResults()
public java.lang.String getActionRssMaxTime()
public boolean getActionRssTrackAlert()
true
for a trackable alert, false
if not.public java.lang.String getActionRssTtl()
public java.lang.String getActionScriptCommand()
public java.lang.String getActionScriptFilename()
public java.lang.String getActionScriptHostname()
public int getActionScriptMaxResults()
public java.lang.String getActionScriptMaxTime()
public boolean getActionScriptTrackAlert()
true
for a trackable alert, false
if not.public java.lang.String getActionScriptTtl()
public java.lang.String getActionSummaryIndexName()
public java.lang.String getActionSummaryIndexCommand()
Generally, this command is a template search pipeline that is realized with values from the saved search. To reference saved search field values, wrap them in "$". For example, use "$name$" to reference the saved search name, or use "$search$" to reference the search query.
public java.lang.String getActionSummaryIndexHostname()
public boolean getActionSummaryIndexInline()
true
if the summary indexing action runs with the
scheduled search, false
if not.public int getActionSummaryIndexMaxResults()
public java.lang.String getActionSummaryIndexMaxTime()
public boolean getActionSummaryIndexTrackAlert()
true
for a trackable alert, false
if not.public java.lang.String getActionSummaryIndexTtl()
public boolean getAlertDigestMode()
true
if Splunk applies the alert actions to the entire
result set (digest), false
if actions are applied to individual
search results (per result).public java.lang.String getAlertExpires()
public int getAlertSeverity()
1=DEBUG, 2=INFO, 3=WARN, 4=ERROR, 5=SEVERE, 6=FATAL
.
public boolean getAlertSuppress()
true
if alert suppression is enabled for this
search, false
if not.public java.lang.String getAlertSuppressFields()
public java.lang.String getAlertSuppressPeriod()
AlertSuppress
is enabled.
The valid format is number followed by a time unit ("s", "m", "h",
or "d").
getAlertSuppress()
public java.lang.String getAlertTrack()
public java.lang.String getAlertComparator()
public java.lang.String getAlertCondition()
public java.lang.String getAlertThreshold()
AlertComparator
is set to "rises by perc" or "drops by
perc."
getAlertComparator()
public java.lang.String getAlertType()
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 lookups are enabled, false
if not.public int getDispatchMaxCount()
public int getDispatchMaxTime()
public int getDispatchReduceFrequency()
public boolean getDispatchRtBackfill()
getDispatchRealTimeBackfill()
instead.
true
if Splunk back fills the real-time window,
false
if not.public boolean getDispatchRealTimeBackfill()
true
if Splunk back fills the real-time window,
false
if not.public boolean getDispatchSpawnProcess()
true
if Splunk spawns a new search process, false
if not.public java.lang.String getDispatchTimeFormat()
public java.lang.String getDispatchTtl()
public java.lang.String getDisplayView()
public int getMaxConcurrent()
public java.util.Date getNextScheduledTime()
public java.lang.String getQualifiedSearch()
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
attribute. 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 isActionScript()
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 setActionEmailAuthPassword(java.lang.String password)
password
- The password.public void setActionEmailAuthUsername(java.lang.String username)
username
- The username for authentication.public void setActionEmailBcc(java.lang.String bcc)
bcc
- The BCC email address.isActionEmail()
public void setActionEmailCc(java.lang.String cc)
cc
- The CC email address.isActionEmail()
public void setActionEmailCommand(java.lang.String command)
Generally, this command is a template search pipeline that is realized with values from the saved search. To reference saved search field values, wrap them in "$". For example, use "$name$" to reference the saved search name, or use "$search$" to reference the search query.
command
- The search command (or pipeline).public void setActionEmailFormat(java.lang.String format)
format
- The email format.public void setActionEmailFrom(java.lang.String from)
from
- The sender's name.public void setActionEmailHostname(java.lang.String hostname)
hostname
- The host name to use in the URL.public void setActionEmailInline(boolean inline)
inline
- true
to include search results in the body of the
email, false
if not.public void setActionEmailMailServer(java.lang.String mailServer)
mailServer
- The address of the MTA server.public void setActionEmailMaxResults(int maxResults)
maxResults
- The maximum number of search results per alert.public void setActionEmailMaxTime(java.lang.String maxTime)
maxTime
- The maximum amount of time.public void setActionEmailPdfView(java.lang.String name)
ActionEmailSendPdf
is
enabled.
name
- The name of the PDF view.getActionEmailSendPdf()
public void setActionEmailPreProcessResults(java.lang.String preprocess)
preprocess
- The search string for pre-processing results.public void setActionEmailReportPaperOrientation(java.lang.String orientation)
orientation
- The paper orientation.public void setActionEmailReportPaperSize(java.lang.String size)
size
- The paper size.public void setActionEmailReportServerEnabled(boolean pdfServerEnabled)
pdfServerEnabled
- true
if the PDF server is enabled,
false
if not.public void setActionEmailReportServerUrl(java.lang.String pdfServerUrl)
pdfServerUrl
- The URL of the PDF report server.public void setActionEmailSendPdf(boolean sendPdf)
sendPdf
- true
to send results in PDF format, false
if not.public void setActionEmailSendResults(boolean sendResults)
sendResults
- true
to attach search results to an email,
false
if not.public void setActionEmailSubject(java.lang.String subject)
subject
- The subject line of the email.public void setActionEmailTo(java.lang.String to)
to
- A comma- or semicolon-delimited list of email recipients.public void setActionEmailTrackAlert(boolean trackAlert)
trackAlert
- true
for a trackable alert, false
if
not.public void setActionEmailTtl(java.lang.String ttl)
ttl
- The minimum time-to-live in seconds, or the number of
scheduled periods.public void setActionEmailUseSsl(boolean useSsl)
useSsl
- true
to use SSL, false
if not.public void setActionEmailUseTls(boolean useTls)
useTls
- true
to use TLS, false
if not.public void setActionEmailWidthSortColumns(boolean widthSortColumns)
ActionEmailFormat
is "plain".
widthSortColumns
- true
to sort columns from least wide to
most wide, false
if not.getActionEmailFormat()
public void setActionPopulateLookupCommand(java.lang.String command)
command
- The search command (or pipeline).public void setActionPopulateLookupDest(java.lang.String dest)
dest
- The lookup name or path.public void setActionPopulateLookupHostname(java.lang.String hostname)
hostname
- The host name to use in the URL.public void setActionPopulateLookupMaxResults(int maxResults)
maxResults
- The maximum number of search results per alert.public void setActionPopulateLookupMaxTime(java.lang.String maxTime)
maxTime
- The maximum amount of time.public void setActionPopulateLookupTrackAlert(boolean trackAlert)
trackAlert
- true
for a trackable alert, false
if
not.public void setActionPopulateLookupTtl(java.lang.String ttl)
ttl
- The minimum time-to-live in seconds, or the number of
scheduled periods.public void setActionRssCommand(java.lang.String command)
Generally, this command is a template search pipeline that is realized with values from the saved search. To reference saved search field values, wrap them in "$". For example, use "$name$" to reference the saved search name, or use "$search$" to reference the search query.
command
- The search command (or pipeline).public void setActionRssHostname(java.lang.String hostname)
hostname
- The host name to use in the URL.public void setActionRssMaxResults(int maxResults)
maxResults
- The maximum number of search results per alert.public void setActionRssMaxTime(java.lang.String maxTime)
maxTime
- The maximum amount of time.public void setActionRssTrackAlert(boolean trackAlert)
trackAlert
- true
for a trackable alert, false
if
not.public void setActionRssTtl(java.lang.String ttl)
ttl
- The minimum time-to-live in seconds, or the number of
scheduled periods.public void setActionScriptCommand(java.lang.String command)
Generally, this command is a template search pipeline that is realized with values from the saved search. To reference saved search field values, wrap them in "$". For example, use "$name$" to reference the saved search name, or use "$search$" to reference the search query.
command
- The search command (or pipeline).public void setActionScriptFilename(java.lang.String filename)
ActionScript
is enabled.
filename
- The file name of the script.isActionScript()
public void setActionScriptHostname(java.lang.String hostname)
hostname
- The host name to use in the URL.public void setActionScriptMaxResults(int maxResults)
maxResults
- The maximum number of search results per alert.public void setActionScriptMaxTime(java.lang.String maxTime)
maxTime
- The maximum amount of time.public void setActionScriptTrackAlert(boolean trackAlert)
trackAlert
- true
for a trackable alert, false
if
not.public void setActionScriptTtl(java.lang.String ttl)
ttl
- The minimum time-to-live in seconds, or the number of
scheduled periods.public void setActionSummaryIndexName(java.lang.String name)
name
- The name of the summary index.public void setActionSummaryIndexCommand(java.lang.String command)
Generally, this command is a template search pipeline that is realized with values from the saved search. To reference saved search field values, wrap them in "$". For example, use "$name$" to reference the saved search name, or use "$search$" to reference the search query.
command
- The search command (or pipeline).public void setActionSummaryIndexHostname(java.lang.String hostname)
hostname
- The host name to use in the URL.public void setActionSummaryIndexInline(boolean inline)
inline
- true
to run the summary indexing action with the
scheduled search, false
if not.public void setActionSummaryIndexMaxResults(int maxResults)
maxResults
- The maximum number of search results per alert.public void setActionSummaryIndexMaxTime(java.lang.String maxTime)
maxTime
- The maximum amount of time.public void setActionSummaryIndexTrackAlert(boolean trackAlert)
trackAlert
- true
for a trackable alert, false
if
not.public void setActionSummaryIndexTtl(java.lang.String ttl)
ttl
- The minimum time-to-live in seconds, or the number of
scheduled periods.public void setActions(java.lang.String actions)
actions
- A comma-separated list of actions.public void setAlertDigestMode(boolean digest)
digest
- true
if Splunk applies the alert actions to the
entire result set (digest), false
if actions are applied to
individual search results (per result).public void setAlertExpires(java.lang.String period)
period
- The amount of time.public void setAlertSeverity(int severity)
severity
- The alert severity level.public void setAlertSuppress(boolean suppress)
suppress
- true
to enable alert suppression, false
if not.public void setAlertSuppressFields(java.lang.String fields)
fields
- A comma-delimited list of fields.setAlertSuppress(boolean)
,
isDigestMode()
public void setAlertSuppressPeriod(java.lang.String period)
AlertSuppress
is enabled.
The valid format is number followed by a time unit ("s", "m", "h",
or "d").
period
- The suppression period.setAlertSuppress(boolean)
public void setAlertTrack(java.lang.String track)
track
- The alert tracking setting.public void setAlertComparator(java.lang.String comparator)
comparator
- The alert comparator.public void setAlertCondition(java.lang.String conditional)
Note: If you specify an alert_condition, do not set
counttype
, relation
, or quantity
.
conditional
- A conditional search.public void setAlertThreshold(java.lang.String threshold)
AlertComparator
is set to "rises by perc" or "drops by
perc."
threshold
- The threshold as a number or percentage (a number
followed by "%").getAlertComparator()
public void setAlertType(java.lang.String type)
AlertCondition
if specified.
type
- The alert trigger type.public void setCronSchedule(java.lang.String cronSchedule)
cronSchedule
- The schedule, as a valid cron-style string.public void setDescription(java.lang.String description)
description
- The description.public void setDisabled(boolean disabled)
disabled
- true
to disable the saved search, false
to enable it.public void setDispatchBuckets(java.lang.String buckets)
setDispatchBuckets(int)
instead.
buckets
- The maximum number of timeline buckets.public void setDispatchBuckets(int buckets)
buckets
- The maximum number of timeline buckets.public void setDispatchEarliestTime(java.lang.String earliestTime)
DispatchTimeFormat
.
earliestTime
- The earliest time for this search.getDispatchTimeFormat()
public void setDispatchLatestTime(java.lang.String latestTime)
DispatchTimeFormat
.
latestTime
- The latest time for this search.getDispatchTimeFormat()
public void setDispatchLookups(boolean lookups)
lookups
- true
to enable lookups, false
if not.public void setDispatchMaxCount(int max)
max
- The maximum number of results.public void setDispatchMaxTime(int max)
max
- The maximum time, in seconds.public void setDispatchReduceFrequency(int seconds)
seconds
- The reduce frequency.public void setDispatchRealTimeBackfill(boolean backfill)
backfill
- true
if Splunk back fills the real-time window,
false
if not.public void setDispatchSpawnProcess(boolean spawn)
spawn
- true
if Splunk spawns a new search process,
false
if not.public void setDispatchTimeFormat(java.lang.String format)
format
- The time format.public void setDispatchTtl(java.lang.String format)
format
- The time to live, in seconds or as a multiple of the
scheduled search period.public void setDisplayView(java.lang.String view)
view
- The view name (not label).public void setIsScheduled(boolean value)
value
- true
to run this search on a schedule, false
if not.public void setIsVisible(boolean value)
value
- true
to display this in the visible list,
false
if not.public void setMaxConcurrent(int max)
max
- The maximum number of concurrent instances.public void setRealtimeSchedule(boolean value)
true
: The schedule is based on the current time.
The scheduler might skip some scheduled periods to make
sure that searches over the most recent time range are run.false
: The schedule is based on the last search run time
(referred to as "continuous scheduling") and the scheduler never skips
scheduled periods. However, the scheduler might fall behind depending on
its load. Use continuous scheduling whenever you enable the summary index
option (ActionSummaryIndex
).
value
- true
to enable a real-time schedule for this search,
false
to enable continuous scheduling for this search.isActionSummaryIndex()
public void setRequestUiDispatchApp(java.lang.String app)
app
- The app name.public void setRequestUiDispatchView(java.lang.String view)
view
- The view name.public void setRestartOnSearchpeerAdd(boolean restart)
setRestartOnSearchPeerAdd(boolean)
instead.
Note: The peer can be one that is newly added or one that has become available after being down.
restart
- true
to restart a real-time search, false
if not.public void setRestartOnSearchPeerAdd(boolean restart)
Note: The peer can be one that is newly added or one that has become available after being down.
restart
- true
to restart a real-time search, false
if not.public void setRunOnStartup(boolean startup)
It is recommended that you set this value to true
for scheduled
searches that populate lookup tables.
startup
- true
to run this search when Splunk starts,
false
if not.public void setSearch(java.lang.String search)
search
- The search query.public void setVsid(java.lang.String vsid)
DisplayView
attribute.
Note: This ID must match a stanza in the from the viewstates.conf configuration file.
vsid
- The view state ID.getDisplayView()
public void update(java.util.Map<java.lang.String,java.lang.Object> args)
update
in class Entity
args
- The arguments to update.public void update()
update
in class Entity
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |