Get available analytic Results - sonata-nfv/tng-analytics-engine GitHub Wiki

Get available analytic Results

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

REST - API (GET): http://profiler_server_IP_address/results/list
or optionaly
REST - API (GET): http://profiler_server_IP_address/results/list?result_id={result_id}

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

  • analyticServiceName: the name of the analytic service
  • analyticProcessFriendlyName: the friendly name of the analytic process as provided by the end user
  • 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
  • metadata: JSONObject with metadata details (optional)

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"
}, {
	"analyticServiceName": "multiple_linear_regression",
        "callbackid": "343423",
	"executionDate": "Thu Jun 13 09:08:55 UTC 2019",
	"executionMessage": "The analytic service has succesfully completed.",
	"id": "5d0212a7429b0b00017a7e40",
	"results": [{
		"result": "http://tng-analytics-rserver/ocpu/tmp/x03c024f1b9ae6f/files/multiple_linear_regression.html",
		"type": "html"
	}],
	"status": "SUCCESS"
}]

In case the analytics engine is used by 5gtango VnV the results have some extra fields

[{
	"metadata": {
		"testr_uuid": "e4b414f7-1a7d-449e-b648-e89319fb4aed",
		"test_uuid": "774c7270-549d-4d7b-9397-b9507ecd014a"
	},
	"analyticServiceName": "test",
	"executionDate": "Thu Oct 24 11:01:42 UTC 2019",
	"analyticProcessFriendlyName": "test1",
	"executionMessage": "The analytic service has succesfully completed.",
	"id": "5db18496a927cb0001a751f4",
	"results": [],
	"status": "SUCCESS"
}]