public class RestEventData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RECEIVERS_SIMPLE_ARG_HOST |
static java.lang.String |
RECEIVERS_SIMPLE_ARG_HOSTREGEX |
static java.lang.String |
RECEIVERS_SIMPLE_ARG_INDEX |
static java.lang.String |
RECEIVERS_SIMPLE_ARG_SOURCE |
static java.lang.String |
RECEIVERS_SIMPLE_ARG_SOURCETYPE |
Constructor and Description |
---|
RestEventData()
Default constructor
|
RestEventData(java.lang.String source,
java.lang.String sourcetype,
java.lang.String index,
java.lang.String host,
java.lang.String hostRegex)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getHost()
The value to populate in the host field for events from this data input.
|
java.lang.String |
getHostRegex()
A regular expression used to extract the host value from each event.
|
java.lang.String |
getIndex()
The index to send events from this input to.
|
java.lang.String |
getSource()
The source value to fill in the metadata for this input's events.
|
java.lang.String |
getSourcetype()
The sourcetype to apply to events from this input.
|
void |
setHost(java.lang.String host)
The value to populate in the host field for events from this data input.
|
void |
setHostRegex(java.lang.String hostRegex)
A regular expression used to extract the host value from each event.
|
void |
setIndex(java.lang.String index)
The index to send events from this input to.
|
void |
setSource(java.lang.String source)
The source value to fill in the metadata for this input's events.
|
void |
setSourcetype(java.lang.String sourcetype)
The sourcetype to apply to events from this input.
|
public static java.lang.String RECEIVERS_SIMPLE_ARG_INDEX
public static java.lang.String RECEIVERS_SIMPLE_ARG_SOURCE
public static java.lang.String RECEIVERS_SIMPLE_ARG_SOURCETYPE
public static java.lang.String RECEIVERS_SIMPLE_ARG_HOST
public static java.lang.String RECEIVERS_SIMPLE_ARG_HOSTREGEX
public RestEventData()
public RestEventData(java.lang.String source, java.lang.String sourcetype, java.lang.String index, java.lang.String host, java.lang.String hostRegex)
source
- The source value to fill in the metadata for this input's
events.sourcetype
- The sourcetype to apply to events from this input.index
- The index to send events from this input to.host
- The value to populate in the host field for events from this
data input.hostRegex
- A regular expression used to extract the host value from each
event.public java.lang.String getSource()
public void setSource(java.lang.String source)
source
- public java.lang.String getSourcetype()
public void setSourcetype(java.lang.String sourcetype)
sourcetype
- public java.lang.String getIndex()
public void setIndex(java.lang.String index)
index
- public java.lang.String getHost()
public void setHost(java.lang.String host)
host
- public java.lang.String getHostRegex()
public void setHostRegex(java.lang.String hostRegex)
hostRegex
-