public class Event extends Object implements Serializable
| Constructor and Description |
|---|
Event() |
| Modifier and Type | Method and Description |
|---|---|
Event |
addAttributesEntry(String key,
String value)
Custom attributes that are associated with the event you're adding or
updating.
|
Event |
addMetricsEntry(String key,
Double value)
Custom metrics related to the event.
|
Event |
clearAttributesEntries()
Removes all the entries added into Attributes.
|
Event |
clearMetricsEntries()
Removes all the entries added into Metrics.
|
boolean |
equals(Object obj) |
String |
getAppPackageName()
Returns the value of the appPackageName property for this object.
|
String |
getAppTitle()
Returns the value of the appTitle property for this object.
|
String |
getAppVersionCode()
Returns the value of the appVersionCode property for this object.
|
Map<String,String> |
getAttributes()
Custom attributes that are associated with the event you're adding or
updating.
|
String |
getClientSdkVersion()
The version of the SDK that's running on the client device.
|
String |
getEventType()
The name of the custom event that you're recording.
|
Map<String,Double> |
getMetrics()
Custom metrics related to the event.
|
String |
getSdkName()
Returns the value of the sdkName property for this object.
|
Session |
getSession()
Information about the session in which the event occurred.
|
String |
getTimestamp()
The date and time when the event occurred, in ISO 8601 format.
|
int |
hashCode() |
void |
setAppPackageName(String appPackageName)
Sets the value of appPackageName
|
void |
setAppTitle(String appTitle)
Sets the value of appTitle
|
void |
setAppVersionCode(String appVersionCode)
Sets the value of appVersionCode
|
void |
setAttributes(Map<String,String> attributes)
Custom attributes that are associated with the event you're adding or
updating.
|
void |
setClientSdkVersion(String clientSdkVersion)
The version of the SDK that's running on the client device.
|
void |
setEventType(String eventType)
The name of the custom event that you're recording.
|
void |
setMetrics(Map<String,Double> metrics)
Custom metrics related to the event.
|
void |
setSdkName(String sdkName)
Sets the value of sdkName
|
void |
setSession(Session session)
Information about the session in which the event occurred.
|
void |
setTimestamp(String timestamp)
The date and time when the event occurred, in ISO 8601 format.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Event |
withAppPackageName(String appPackageName)
Sets the value of the appPackageName property for this object.
|
Event |
withAppTitle(String appTitle)
Sets the value of the appTitle property for this object.
|
Event |
withAppVersionCode(String appVersionCode)
Sets the value of the appVersionCode property for this object.
|
Event |
withAttributes(Map<String,String> attributes)
Custom attributes that are associated with the event you're adding or
updating.
|
Event |
withClientSdkVersion(String clientSdkVersion)
The version of the SDK that's running on the client device.
|
Event |
withEventType(String eventType)
The name of the custom event that you're recording.
|
Event |
withMetrics(Map<String,Double> metrics)
Custom metrics related to the event.
|
Event |
withSdkName(String sdkName)
Sets the value of the sdkName property for this object.
|
Event |
withSession(Session session)
Information about the session in which the event occurred.
|
Event |
withTimestamp(String timestamp)
The date and time when the event occurred, in ISO 8601 format.
|
public String getAppPackageName()
public void setAppPackageName(String appPackageName)
appPackageName - The new value for the appPackageName property for
this object.public Event withAppPackageName(String appPackageName)
Returns a reference to this object so that method calls can be chained together.
appPackageName - The new value for the appPackageName property for
this object.public String getAppTitle()
public void setAppTitle(String appTitle)
appTitle - The new value for the appTitle property for this object.public Event withAppTitle(String appTitle)
Returns a reference to this object so that method calls can be chained together.
appTitle - The new value for the appTitle property for this object.public String getAppVersionCode()
public void setAppVersionCode(String appVersionCode)
appVersionCode - The new value for the appVersionCode property for
this object.public Event withAppVersionCode(String appVersionCode)
Returns a reference to this object so that method calls can be chained together.
appVersionCode - The new value for the appVersionCode property for
this object.public Map<String,String> getAttributes()
public void setAttributes(Map<String,String> attributes)
attributes - Custom attributes that are associated with the event
you're adding or updating.public Event withAttributes(Map<String,String> attributes)
Returns a reference to this object so that method calls can be chained together.
attributes - Custom attributes that are associated with the event
you're adding or updating.public Event addAttributesEntry(String key, String value)
The method adds a new key-value pair into Attributes parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Attributes.value - The corresponding value of the entry to be added into
Attributes.public Event clearAttributesEntries()
Returns a reference to this object so that method calls can be chained together.
public String getClientSdkVersion()
public void setClientSdkVersion(String clientSdkVersion)
clientSdkVersion - The version of the SDK that's running on the
client device.public Event withClientSdkVersion(String clientSdkVersion)
Returns a reference to this object so that method calls can be chained together.
clientSdkVersion - The version of the SDK that's running on the
client device.public String getEventType()
public void setEventType(String eventType)
eventType - The name of the custom event that you're recording.public Event withEventType(String eventType)
Returns a reference to this object so that method calls can be chained together.
eventType - The name of the custom event that you're recording.public Map<String,Double> getMetrics()
public void setMetrics(Map<String,Double> metrics)
metrics - Custom metrics related to the event.public Event withMetrics(Map<String,Double> metrics)
Returns a reference to this object so that method calls can be chained together.
metrics - Custom metrics related to the event.public Event addMetricsEntry(String key, Double value)
The method adds a new key-value pair into Metrics parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Metrics.value - The corresponding value of the entry to be added into
Metrics.public Event clearMetricsEntries()
Returns a reference to this object so that method calls can be chained together.
public String getSdkName()
public void setSdkName(String sdkName)
sdkName - The new value for the sdkName property for this object.public Event withSdkName(String sdkName)
Returns a reference to this object so that method calls can be chained together.
sdkName - The new value for the sdkName property for this object.public Session getSession()
public void setSession(Session session)
session - Information about the session in which the event occurred.public Event withSession(Session session)
Returns a reference to this object so that method calls can be chained together.
session - Information about the session in which the event occurred.public String getTimestamp()
public void setTimestamp(String timestamp)
timestamp - The date and time when the event occurred, in ISO 8601
format.public Event withTimestamp(String timestamp)
Returns a reference to this object so that method calls can be chained together.
timestamp - The date and time when the event occurred, in ISO 8601
format.public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.