-
- All Implemented Interfaces:
-
com.amplitude.experiment.analytics.ExperimentAnalyticsEvent
@Deprecated(message = Use ExposureTrackingProvider instead) public final class ExposureEvent implements ExperimentAnalyticsEvent
Event for tracking a user's exposure to a variant. This event will not count towards your analytics event volume.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final Map<String, String>propertiesprivate final Map<String, Object>userPropertiesprivate final StringuserPropertyprivate final ExperimentUseruserprivate final Stringkeyprivate final Variantvariantprivate final VariantSourcesource
-
Constructor Summary
Constructors Constructor Description ExposureEvent(ExperimentUser user, String key, Variant variant, VariantSource source)
-
Method Summary
Modifier and Type Method Description StringgetName()The name of the event. Map<String, String>getProperties()Properties for the analytics event. Map<String, Object>getUserProperties()User properties to identify with the user prior to sending the event. StringgetUserProperty()The user property for the flag/experiment (auto-generated from the key) ExperimentUsergetUser()The user exposed to the flag/experiment variant. StringgetKey()The key of the flag/experiment that the user has been exposed to. VariantgetVariant()The variant of the flag/experiment that the user has been exposed to. final VariantSourcegetSource()The source of the determination of the variant. -
-
Constructor Detail
-
ExposureEvent
ExposureEvent(ExperimentUser user, String key, Variant variant, VariantSource source)
-
-
Method Detail
-
getName
String getName()
The name of the event. Should be passed as the event tracking name to the analytics implementation provided by the ExperimentAnalyticsProvider.
-
getProperties
Map<String, String> getProperties()
Properties for the analytics event. Should be passed as the event properties to the analytics implementation provided by the ExperimentAnalyticsProvider.
-
getUserProperties
Map<String, Object> getUserProperties()
User properties to identify with the user prior to sending the event.
-
getUserProperty
String getUserProperty()
The user property for the flag/experiment (auto-generated from the key)
-
getUser
ExperimentUser getUser()
The user exposed to the flag/experiment variant.
-
getVariant
Variant getVariant()
The variant of the flag/experiment that the user has been exposed to.
-
getSource
final VariantSource getSource()
The source of the determination of the variant.
-
-
-
-