public static final class Event.Custom extends Event
LDClientInterface.track(String, LDUser)
or one of its overloads.Event.Custom, Event.FeatureRequest, Event.Identify, Event.Index
Constructor and Description |
---|
Custom(long timestamp,
java.lang.String key,
LDUser user,
LDValue data,
java.lang.Double metricValue)
Constructs a custom event.
|
Modifier and Type | Method and Description |
---|---|
LDValue |
getData()
The custom data associated with the event, if any.
|
java.lang.String |
getKey()
The custom event key.
|
java.lang.Double |
getMetricValue()
The numeric metric value associated with the event, if any.
|
getCreationDate, getUser
public Custom(long timestamp, java.lang.String key, LDUser user, LDValue data, java.lang.Double metricValue)
timestamp
- the timestamp in millisecondskey
- the event keyuser
- the user associated with the eventdata
- custom data if any (null is the same as LDValue.ofNull()
)metricValue
- custom metric value if anypublic java.lang.String getKey()
public LDValue getData()
LDValue.ofNull()
)public java.lang.Double getMetricValue()