Package com.vaadin.copilot.analytics
Record Class AnalyticsRequest
java.lang.Object
java.lang.Record
com.vaadin.copilot.analytics.AnalyticsRequest
- Record Components:
userId- user identifier for AmplitudeanonymousId- identifier of anonymous user, can be machineIdevent- Event nameproperties- Event propertiescontext- Event context properties
public record AnalyticsRequest(String userId, String anonymousId, String event, Map<String,String> properties, Map<String,String> context)
extends Record
Tracking request
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theanonymousIdrecord component.context()Returns the value of thecontextrecord component.final booleanIndicates whether some other object is "equal to" this one.event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
AnalyticsRequest
public AnalyticsRequest(String userId, String anonymousId, String event, Map<String, String> properties, Map<String, String> context) Creates an instance of aAnalyticsRequestrecord class.- Parameters:
userId- the value for theuserIdrecord componentanonymousId- the value for theanonymousIdrecord componentevent- the value for theeventrecord componentproperties- the value for thepropertiesrecord componentcontext- the value for thecontextrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
anonymousId
Returns the value of theanonymousIdrecord component.- Returns:
- the value of the
anonymousIdrecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
context
Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-