-
public final class ExposureEventSchema of all properties of a Feature Flag Exposure event
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classExposureEvent.Companionpublic final classExposureEvent.IdentifierIdentifier with a key property
public final classExposureEvent.SubjectSubject information for the exposure
public final classExposureEvent.AttributesAdditional attributes for the subject
-
Field Summary
Fields Modifier and Type Field Description private final Longtimestampprivate final ExposureEvent.Identifierallocationprivate final ExposureEvent.Identifierflagprivate final ExposureEvent.Identifiervariantprivate final ExposureEvent.Subjectsubject
-
Constructor Summary
Constructors Constructor Description ExposureEvent(Long timestamp, ExposureEvent.Identifier allocation, ExposureEvent.Identifier flag, ExposureEvent.Identifier variant, ExposureEvent.Subject subject)
-
Method Summary
Modifier and Type Method Description final LonggetTimestamp()final ExposureEvent.IdentifiergetAllocation()final ExposureEvent.IdentifiergetFlag()final ExposureEvent.IdentifiergetVariant()final ExposureEvent.SubjectgetSubject()final JsonElementtoJson()-
-
Constructor Detail
-
ExposureEvent
ExposureEvent(Long timestamp, ExposureEvent.Identifier allocation, ExposureEvent.Identifier flag, ExposureEvent.Identifier variant, ExposureEvent.Subject subject)
- Parameters:
timestamp- Timestamp when the exposure event occurred (epoch in milliseconds)allocation- Identifier with a key propertyflag- Identifier with a key propertyvariant- Identifier with a key propertysubject- Subject information for the exposure
-
-
Method Detail
-
getTimestamp
final Long getTimestamp()
-
getAllocation
final ExposureEvent.Identifier getAllocation()
-
getFlag
final ExposureEvent.Identifier getFlag()
-
getVariant
final ExposureEvent.Identifier getVariant()
-
getSubject
final ExposureEvent.Subject getSubject()
-
toJson
final JsonElement toJson()
-
-
-
-