Measure logo
REST API ReferenceDashboard APISessions

Fetch an app's session timeline

GET/apps/{id}/sessions/{sessionId}

Fetch an app's session replay. The response contains the session's attributes, CPU and memory usage series, and the session's events grouped by thread name under threads.

Authorization

bearerAuth
AuthorizationBearer <token>

User access token issued at sign-in. Sent as Authorization: Bearer <access-token> unless cookies are used to send tokens. The /auth/refresh and /auth/signout endpoints expect the session's refresh token in the same header format instead.

In: header

Path Parameters

id*string

App's UUID.

Formatuuid
sessionId*string

Session's UUID.

Formatuuid

Response Body

application/json

curl -X GET "https://example.com/apps/497f6eca-6276-4993-bfeb-53cbbbba6f08/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08"
{  "app_id": "2b7ddad4-40a6-42a7-9e21-a90577e08263",  "attribute": {    "installation_id": "ee40eb0e-c579-473d-bc10-557049f51cda",    "app_version": "1.0",    "app_build": "1",    "app_unique_id": "sh.measure.sample",    "measure_sdk_version": "0.1.0",    "device_name": "emu64a",    "device_manufacturer": "Google",    "device_locale": "en-US",    "os_name": "android",    "os_version": "33",    "network_type": "wifi"  },  "cpu_usage": [    {      "timestamp": "2024-05-03T23:34:17.591Z",      "value": 6.999999999999999    },    {      "timestamp": "2024-05-03T23:34:20.567Z",      "value": 24    }  ],  "duration": 22084,  "memory_usage": [    {      "java_max_heap": 196608,      "java_total_heap": 196608,      "java_free_heap": 183734,      "total_pss": 63702,      "rss": 171692,      "native_total_heap": 21872,      "native_free_heap": 1299,      "interval": 2000,      "timestamp": "2024-05-03T23:34:17.607Z"    }  ],  "session_id": "58e94ae9-a084-479f-9049-2c5135f6090f",  "threads": {    "OkHttp https://httpbin.org/...": [      {        "event_type": "http",        "user_defined_attribute": {          "username": "alice",          "paid_user": true        },        "thread_name": "OkHttp https://httpbin.org/...",        "user_triggered": false,        "url": "https://httpbin.org/",        "method": "get",        "status_code": 200,        "start_time": 5128127,        "end_time": 5129475,        "request_headers": {          "accept-encoding": "gzip",          "host": "httpbin.org"        },        "response_headers": {          "content-type": "text/html; charset=utf-8",          "server": "gunicorn/19.9.0"        },        "client": "okhttp",        "duration": 1348,        "timestamp": "2024-05-03T23:34:19.979Z"      }    ],    "Thread-2": [      {        "event_type": "anr",        "user_defined_attribute": {          "username": "alice",          "paid_user": true        },        "title": "sh.measure.android.anr.AnrError@ExceptionDemoActivity.kt:66",        "thread_name": "Thread-2",        "stacktrace": "sh.measure.android.anr.AnrError: Application Not Responding for at least 5000 ms.\n\tat sh.measure.sample.ExceptionDemoActivity.deadLock$lambda$10(ExceptionDemoActivity.kt:66)",        "foreground": true,        "timestamp": "2024-05-03T23:34:27.578Z",        "attachments": [          {            "id": "63fb0950-faff-4028-bf3d-354559e4e540",            "name": "screenshot.png",            "type": "screenshot",            "key": "63fb0950-faff-4028-bf3d-354559e4e540.png",            "location": "http://localhost:9111/msr-attachments-sandbox/63fb0950-faff-4028-bf3d-354559e4e540.png"          }        ]      }    ],    "main": [      {        "event_type": "log",        "user_defined_attribute": {          "username": "alice",          "paid_user": true        },        "thread_name": "main",        "severity_text": "info",        "severity_number": 12,        "body": "Loading user profile",        "timestamp": "2024-05-03T23:34:17.75Z"      }    ]  }}
Empty
Empty
Empty
Empty
Empty
Empty

Think this page can be better?

Open an issue