public class InstrumentationEvent
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
InstrumentationEvent.ErrorType
Represents the type of error being logged.
|
static class |
InstrumentationEvent.EventType
Represents the type of event being logged.
|
static class |
InstrumentationEvent.SchemaType
Represents the type of schema being logged.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTRIBUTES_KEY |
static java.lang.String |
CONNECTION_TYPE_KEY |
static java.lang.String |
DEVICE_APP_ATTRIBUTES_KEY |
static java.lang.String |
END_TIME_KEY |
static java.lang.String |
ERROR_TYPE_KEY |
static java.lang.String |
EVENT_ID_KEY |
static java.lang.String |
EVENT_TYPE_KEY |
static java.lang.String |
MARKS_KEY |
static java.lang.String |
NAME_KEY |
static java.lang.String |
PAGE_KEY |
static java.lang.String |
PREVIOUS_PAGE_KEY |
static java.lang.String |
SCHEMA_TYPE_KEY |
static java.lang.String |
SENDER_CONTEXT_KEY |
static java.lang.String |
SENDER_ID_KEY |
static java.lang.String |
SENDER_PARENT_ID_KEY |
static java.lang.String |
SEQUENCE_ID_KEY |
static java.lang.String |
SESSION_ID_KEY |
static java.lang.String |
SESSION_START_TIME_KEY |
static java.lang.String |
START_TIME_KEY |
Constructor and Description |
---|
InstrumentationEvent(JSONObject json)
Constructs an event from its JSON representation.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object) |
JSONObject |
getAttributes()
Returns attributes.
|
java.lang.String |
getConnectionType()
Returns connection type.
|
DeviceAppAttributes |
getDeviceAppAttributes()
Returns device app attributes.
|
long |
getEndTime()
Returns end time.
|
InstrumentationEvent.ErrorType |
getErrorType()
Returns error type.
|
java.lang.String |
getEventId()
Returns event ID.
|
InstrumentationEvent.EventType |
getEventType()
Returns event type.
|
JSONObject |
getMarks()
Returns marks.
|
java.lang.String |
getName()
Returns name.
|
JSONObject |
getPage()
Returns page.
|
JSONObject |
getPreviousPage()
Returns previous page.
|
InstrumentationEvent.SchemaType |
getSchemaType()
Returns schema type.
|
JSONObject |
getSenderContext()
Returns sender context.
|
java.lang.String |
getSenderId()
Returns sender ID.
|
java.lang.String |
getSenderParentId()
Returns sender parent ID.
|
int |
getSequenceId()
Returns sequence ID.
|
java.lang.String |
getSessionId()
Returns session ID.
|
long |
getSessionStartTime()
Returns session start time.
|
long |
getStartTime()
Returns start time.
|
int |
hashCode() |
JSONObject |
toJson()
Returns a JSON representation of this event.
|
public static final java.lang.String EVENT_ID_KEY
public static final java.lang.String START_TIME_KEY
public static final java.lang.String END_TIME_KEY
public static final java.lang.String NAME_KEY
public static final java.lang.String ATTRIBUTES_KEY
public static final java.lang.String SESSION_ID_KEY
public static final java.lang.String SEQUENCE_ID_KEY
public static final java.lang.String SENDER_ID_KEY
public static final java.lang.String SENDER_CONTEXT_KEY
public static final java.lang.String SCHEMA_TYPE_KEY
public static final java.lang.String EVENT_TYPE_KEY
public static final java.lang.String ERROR_TYPE_KEY
public static final java.lang.String CONNECTION_TYPE_KEY
public static final java.lang.String DEVICE_APP_ATTRIBUTES_KEY
public static final java.lang.String SENDER_PARENT_ID_KEY
public static final java.lang.String SESSION_START_TIME_KEY
public static final java.lang.String PAGE_KEY
public static final java.lang.String PREVIOUS_PAGE_KEY
public static final java.lang.String MARKS_KEY
public InstrumentationEvent(JSONObject json)
json
- JSON object.public java.lang.String getEventId()
public long getStartTime()
public long getEndTime()
public java.lang.String getName()
public JSONObject getAttributes()
public java.lang.String getSessionId()
public int getSequenceId()
public java.lang.String getSenderId()
public JSONObject getSenderContext()
public InstrumentationEvent.SchemaType getSchemaType()
public InstrumentationEvent.EventType getEventType()
public InstrumentationEvent.ErrorType getErrorType()
public DeviceAppAttributes getDeviceAppAttributes()
public java.lang.String getConnectionType()
public java.lang.String getSenderParentId()
public long getSessionStartTime()
public JSONObject getPage()
public JSONObject getPreviousPage()
public JSONObject getMarks()
public JSONObject toJson()
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object