User sessions API

The User Sessions API enables you to obtain data about user sessions. The API uses User Sessions Query Language (USQL) to query the required data. Both calls return the same data, only representation differs.

GET table

Executes a USQL query and returns results as a table-structure of the requested columns.

In the table structure entities, selected by the query, form columns of a table. Each element of the values array forms a row of a table.

The request produces an application/json payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/userSessionQueryLanguage/table
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/userSessionQueryLanguage/table

GET Tree

Executes a USQL query and returns results as a tree structure of the requested columns—a flat list of rows containing the requested columns.

The request produces an application/json payload.

GET
  • Managed https://{your-domain}/e/{your-environment-id}/api/v1/userSessionQueryLanguage/tree
  • SaaS https://{your-environment-id}.live.dynatrace.com/api/v1/userSessionQueryLanguage/tree