public class EventType extends Entity
EventType
class represents an event type.Modifier and Type | Method and Description |
---|---|
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.
|
actionPath, clear, containsKey, containsValue, disable, enable, entrySet, get, getContent, getMetadata, isDisabled, isEmpty, isNameChangeAllowed, keySet, put, putAll, refresh, remove, remove, size, validate, values
getName, getPath, getService, getTitle, invalidate
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)