Live sessions (REST)

As described in Usage of Sessions, there are two different approaches creating a stored PurePath session. If you use the Store Session request, all PurePaths of the current live session are dumped to a stored PurePath session.

You can also record all incoming PurePaths by issuing Start Recording and Stop Recording requests.

The AppMon Server offers several RESTful interfaces for these operations.

Start session recording

The POST request triggers session recording for the specified System Profile. Request only works with pre-production licenses.

POST AppMon 2017 May
https://<server>:8021/api/v2/profiles/<profileid>/session/recording


AppMon 2018 March
https://<server>:8021/api/v3/profiles/<profileid>/session/recording
consumes application/json

Get session recording status

Checks whether the specified System Profile records a session.

GET AppMon 2017 May
https://<server>:8021/api/v2/profiles/<profileid>/session/recording/status


AppMon 2018 March
https://<server>:8021/api/v3/profiles/<profileid>/session/recording/status
produces application/json

Stop session recording

The PUT request stops session recording for the specified System Profile. It's doing so by setting recording status as 'false'. It also creates a reference to the stored session. Request only works with pre-production licenses.

Note

This call does not complete until all recorded data is fully processed on the Server.

PUT AppMon 2017 May
https://<server>:8021/api/v2/profiles/<profileid>/session/recording/status


AppMon 2018 March
https://<server>:8021/api/v3/profiles/<profileid>/session/recording/status
consumes application/json

Store session

The PSOT request triggers storage of all time series and PurePaths to a stored session.

You need to limit the data to be stored, by specifying a start and end times in the request body. Otherwise the last 30 minutes will be stored.

POST AppMon 2017 May
https://<server>:8021/api/v2/profiles/<profileid>/session/store


AppMon 2018 March
https://<server>:8021/api/v3/profiles/<profileid>/session/store
consumes application/json