|
||||||||||
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.EventType
public class EventType
The EventType
class represents an event type.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Returns the description of this event type. |
int |
getPriority()
Returns the priority of this event type. |
java.lang.String |
getSearch()
Returns the search terms for this event type. |
java.lang.String[] |
getTags()
Deprecated. Use tags.conf.spec file to assign tags to groups of events with related field values. Returns the list of tags for this event type. |
void |
setDescription(java.lang.String description)
Sets the description of the event type. |
void |
setDisabled(boolean disabled)
Sets whether the event type is enabled or disabled. |
void |
setPriority(int priority)
Sets the priority of the event type. |
void |
setSearch(java.lang.String search)
Sets the search string. |
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 java.lang.String getDescription()
public int getPriority()
public java.lang.String getSearch()
public java.lang.String[] getTags()
public void setDescription(java.lang.String description)
description
- The description of the event type.public void setDisabled(boolean disabled)
Note: Using this method requires you to restart Splunk before this
setting takes effect. To avoid restarting Splunk, use the
Entity.disable
and Entity.enable
methods instead, which
take effect immediately.
Entity.disable()
,
Entity.enable()
public void setPriority(int priority)
priority
- The priority of the event type.public void setSearch(java.lang.String search)
search
- The search string.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 |