Starting analysis from command line

In today’s “Introducing QSDA Pro” webinar a question asked was “Can you schedule an analysis to run overnight?”.

There is currently no scheduling feature in QSDA Pro. But… you can use some other scheduling facility and start the collection & analysis using the QSDA REST API. The API details should be considered experimental at this point, subject to changes as we develop use cases and feedback.

To start an analysis using CURL for example:

curl -X 'POST' \
  'http://localhost:5000/api/v1/collectors' \
  -H 'accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "appId": "eca68f0b-5428-4942-99cf-1792f95307a7",
  "collectCalctime": true,
  "collectorOptions": {
    "collectCalcTime": true,
    "description": "My overnight analysis",
    "qlikEngineTimeout": 90,
    "bookmark": ""
  }
}'

The appId parameter is the id of the app to be analyzed.

You can view the entire API on your QSDA server at:
http://localhost:5000/swagger/index.html

Note the port is 5000 – the API port, not the 5003 web interface port.