@DefaultCoder(value=SplunkEventCoder.class) public abstract class SplunkEvent extends java.lang.Object
SplunkEvent
describes a single payload sent to Splunk's Http Event Collector (HEC)
endpoint.
Each object represents a single event and related metadata elements such as:
Modifier and Type | Class and Description |
---|---|
static class |
SplunkEvent.Builder
A builder class for creating a
SplunkEvent . |
Constructor and Description |
---|
SplunkEvent() |
Modifier and Type | Method and Description |
---|---|
abstract @Nullable java.lang.String |
event() |
abstract @Nullable com.google.gson.JsonObject |
fields() |
abstract @Nullable java.lang.String |
host() |
abstract @Nullable java.lang.String |
index() |
static SplunkEvent.Builder |
newBuilder()
Provides a builder for creating
SplunkEvent objects. |
abstract @Nullable java.lang.String |
source() |
abstract @Nullable java.lang.String |
sourceType() |
abstract @Nullable java.lang.Long |
time() |
public static SplunkEvent.Builder newBuilder()
SplunkEvent
objects.public abstract @Nullable java.lang.Long time()
public abstract @Nullable java.lang.String host()
public abstract @Nullable java.lang.String source()
@SerializedName(value="sourcetype") public abstract @Nullable java.lang.String sourceType()
public abstract @Nullable java.lang.String index()
public abstract @Nullable com.google.gson.JsonObject fields()
public abstract @Nullable java.lang.String event()