Class Event.Custom
- java.lang.Object
-
- com.launchdarkly.sdk.internal.events.Event
-
- com.launchdarkly.sdk.internal.events.Event.Custom
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.launchdarkly.sdk.internal.events.Event
Event.Custom, Event.FeatureRequest, Event.Identify, Event.Index
-
-
Constructor Summary
Constructors Constructor Description Custom(long timestamp, java.lang.String key, com.launchdarkly.sdk.LDContext context, com.launchdarkly.sdk.LDValue data, java.lang.Double metricValue)
Constructs a custom event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.launchdarkly.sdk.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.-
Methods inherited from class com.launchdarkly.sdk.internal.events.Event
getContext, getCreationDate
-
-
-
-
Constructor Detail
-
Custom
public Custom(long timestamp, java.lang.String key, com.launchdarkly.sdk.LDContext context, com.launchdarkly.sdk.LDValue data, java.lang.Double metricValue)
Constructs a custom event.- Parameters:
timestamp
- the timestamp in millisecondskey
- the event keycontext
- the context associated with the eventdata
- custom data if any (null is the same asLDValue.ofNull()
)metricValue
- custom metric value if any
-
-
Method Detail
-
getKey
public java.lang.String getKey()
The custom event key.- Returns:
- the event key
-
getData
public com.launchdarkly.sdk.LDValue getData()
The custom data associated with the event, if any.- Returns:
- the event data (null is equivalent to
LDValue.ofNull()
)
-
getMetricValue
public java.lang.Double getMetricValue()
The numeric metric value associated with the event, if any.- Returns:
- the metric value or null
-
-