@Generated(value="software.amazon.awssdk:codegen") public final class Event extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Event.Builder,Event>
A structure that contains the information about one evaluation event or custom event sent to Evidently. This is a JSON payload. If this event specifies a pre-defined event type, the payload must follow the defined event schema.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Event.Builder |
| Modifier and Type | Method and Description |
|---|---|
static Event.Builder |
builder() |
String |
data()
The event data.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Event.Builder> |
serializableBuilderClass() |
Instant |
timestamp()
The timestamp of the event.
|
Event.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
EventType |
type()
aws.evidently.evaluation specifies an evaluation event, which determines which feature variation
that a user sees. |
String |
typeAsString()
aws.evidently.evaluation specifies an evaluation event, which determines which feature variation
that a user sees. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String data()
The event data.
public final Instant timestamp()
The timestamp of the event.
public final EventType type()
aws.evidently.evaluation specifies an evaluation event, which determines which feature variation
that a user sees. aws.evidently.custom specifies a custom event, which generates metrics from user
actions such as clicks and checkouts.
If the service returns an enum value that is not available in the current SDK version, type will return
EventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
aws.evidently.evaluation specifies an evaluation event, which determines which feature
variation that a user sees. aws.evidently.custom specifies a custom event, which generates
metrics from user actions such as clicks and checkouts.EventTypepublic final String typeAsString()
aws.evidently.evaluation specifies an evaluation event, which determines which feature variation
that a user sees. aws.evidently.custom specifies a custom event, which generates metrics from user
actions such as clicks and checkouts.
If the service returns an enum value that is not available in the current SDK version, type will return
EventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
aws.evidently.evaluation specifies an evaluation event, which determines which feature
variation that a user sees. aws.evidently.custom specifies a custom event, which generates
metrics from user actions such as clicks and checkouts.EventTypepublic Event.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Event.Builder,Event>public static Event.Builder builder()
public static Class<? extends Event.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.