Skip to main content
Version: 2.4.8

Record

note

This resource allows user to control recording of SENSR. Detailed behavior of each command is described below.

caution

Replace [SENSR version] with exact version you are using. But please make sure to use it upto minor version. For example, if the version is 2.4.9, then 2.4.

POST

/[SENSR version]/commands/record/start

  • Start recording. This can only be done in runtime mode after background learning is finished.

  • Parameters
    • name : Recording file name.
  • Return code
    • 200 OK
    • 400 BAD REQ
    • 500 INTERNAL SERVER ERR
  • Example

$ curl -X POST 'http://localhost:9080/[SENSR version]/commands/record/start?name=my-recording'

/[SENSR version]/commands/record/stop

  • Stop the currently active recording. If there is no recording running this will have no effect.

  • Parameters
    • N/A
  • Return code
    • 200 OK
    • 400 BAD REQ
  • Example

$ curl -X POST 'http://localhost:9080/[SENSR version]/commands/record/stop'

/[SENSR version]/commands/record/cancel

  • Cancel saving replay files. Most of the time this command does not need to be used. It is only useful if you have stopped after recording a large amount of data and do not want to wait for the recording to finish saving to file. This will potentially leave the saved replay in a corrupted state.

  • Parameters
    • N/A
  • Return code
    • 200 OK
    • 400 BAD REQ
  • Example

$ curl -X POST 'http://localhost:9080/[SENSR version]/commands/record/cancel'


Logo
If you need access, please contact