Get Analytic Service Result - sonata-nfv/tng-analytics-engine GitHub Wiki

Get Analytic Results

Scope: This functionality is used for fetching all available analytic services results

REST - API (GET): http://profiler_server_IP_address/results/list

The result of such a call is a JSONObject that contains all information regarding the available analytic services result The fields to get back are:

  • status: can be SUCCESS or ERROR
  • executionMessage: the message on behalf of the profiler
  • analyticServiceName: the name of the analytic service
  • callbackid: the callback id supported by the consumption service
  • id: the id of the analytic result record
  • results: JSONArray with the analytics service result urls

A response example should be:

Response - JSONArray

{
	"analyticServiceName": "multiple_linear_regression",
        "callbackid": "124",
	"executionDate": "Thu Jun 13 09:07:24 UTC 2019",
	"executionMessage": "The analytic service has succesfully completed.",
	"id": "5d02124c429b0b00017a7e3f",
	"results": [{
		"result": "http://tng-analytics-rserver/ocpu/tmp/x0803495d918ea2/files/multiple_linear_regression.html",
		"type": "html"
	}],
	"status": "SUCCESS"
}