User Sessions API

The User Sessions API enables you to obtain data about user sessions. The API uses User Session Query Language (USQL) to query the required data.

You can:

  • Get results as a table with the GET table call.
  • Get results as a tree with the GET tree call.

GET table

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

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