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 expression. |
SavedSearch |
create(java.lang.String name,
java.lang.String search,
java.util.Map args)
Creates a saved search from a name, search expression, and
additional arguments. |
Methods inherited from class com.splunk.ResourceCollection |
clear, containsKey, containsKey, containsValue, createItem, createItem, entrySet, equals, get, get, hashCode, isEmpty, itemKey, itemPath, keySet, list, put, putAll, refresh, remove, size, validate, values, valueSize |
Methods inherited from class java.lang.Object |
clone, finalize, 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 expression.
- Parameters:
name
- The name for the search.search
- The search expression.
- 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 expression, and
additional arguments.
- Parameters:
name
- The name for the search.search
- The search expression.args
- Additional arguments.
- Returns:
- The new saved search.