SessionExport

@Serializable
data class SessionExport(val version: String = SessionExportFormat.VERSION, val sessionId: String, val exportedAt: Long, val clientInfo: ExportedClientInfo, val crash: CrashInfo? = null, val session: SessionData, val droppedRecords: Long = 0, val crashes: List<CrashInfo> = emptyList(), val diagnosis: CrashDiagnosis? = null, val extensions: Map<String, JsonElement> = emptyMap())(source)

Complete exported session data. This is the JSON format used for import/export of recorded sessions.

Example JSON structure:

{
"version": "3.0",
"sessionId": "uuid",
"exportedAt": 1704067200000,
"clientInfo": { "clientId": "...", "clientName": "...", "platform": "..." },
"crash": { "timestamp": 1704067200000, "exception": { ... } },
"session": { "startTime": ..., "endTime": ..., "actions": [...], "logicEvents": [...] }
}

This format is compatible with DevTools ghost device import.

Constructors

Link copied to clipboard
constructor(version: String = SessionExportFormat.VERSION, sessionId: String, exportedAt: Long, clientInfo: ExportedClientInfo, crash: CrashInfo? = null, session: SessionData, droppedRecords: Long = 0, crashes: List<CrashInfo> = emptyList(), diagnosis: CrashDiagnosis? = null, extensions: Map<String, JsonElement> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val extensions: Map<String, JsonElement>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard