com.splunk
Class SavedSearchCollection
java.lang.Object
com.splunk.Resource
com.splunk.ResourceCollection<T>
com.splunk.EntityCollection<SavedSearch>
com.splunk.SavedSearchCollection
- All Implemented Interfaces:
- java.util.Map<java.lang.String,SavedSearch>
public class SavedSearchCollection
- extends EntityCollection<SavedSearch>
The SavedSearchCollection
class represents a collection of saved
searches.
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Method Summary |
SavedSearch |
create(java.lang.String name)
Creates an entity in this collection. |
SavedSearch |
create(java.lang.String name,
java.lang.String search)
Creates a saved search from a name and search query. |
SavedSearch |
create(java.lang.String name,
java.lang.String search,
java.util.Map args)
Creates a saved search from a name, search query, and
additional arguments. |
Methods inherited from class com.splunk.ResourceCollection |
clear, containsKey, containsKey, containsValue, entrySet, equals, get, get, hashCode, isEmpty, keySet, list, put, putAll, refresh, remove, size, validate, values, valueSize |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
create
public SavedSearch create(java.lang.String name)
- Creates an entity in this collection.
- Overrides:
create
in class EntityCollection<SavedSearch>
- Parameters:
name
- The name of the entity.
- Returns:
- The entity.
create
public SavedSearch create(java.lang.String name,
java.lang.String search)
- Creates a saved search from a name and search query.
- Parameters:
name
- The name for the search.search
- The search query.
- Returns:
- The new saved search.
create
public SavedSearch create(java.lang.String name,
java.lang.String search,
java.util.Map args)
- Creates a saved search from a name, search query, and
additional arguments.
- Parameters:
name
- The name for the search.search
- The search query.args
- Additional arguments. For a list of possible parameters, see
Saved search parameters on
dev.splunk.com.
- Returns:
- The new saved search.