Returns a list of all analytics_engine_task_results belonging to an account as per the specified criteria. This API is paginated and returns 20 groups by default. A analytics_engine_task_result is uniquely identified by a 'analytics_engine_task_result_key'. This key should be used in all the other API referencing a particular analytics_engine_task_result.

Params

Param name Description
page
optional

Page number of results to be fetched, Default 1


Value: Must be Integer.
per
optional

Number of analytics_engine_task records to be returned in one page, Default 20


Value: Must be Integer.
order_by
optional

Field on which results should be sorted


Value: Must be a String
order
optional

Order, “asc” or “desc”, in which results should be sorted.


Value: Must be a String
timestamp_format
optional

Format, “str” or “int”, in which timestamps should be returned, Default “int”


Value: Must be a String
time_zone
optional

Time zone for calculating data`


Value: Must be a String
search
optional

Keywords based on which analytics_engines should be searched. Currently you can search analytics_engines on - analytics_engine_key or name


Value: Must be a String
scope
optional

Matching condition if multiple keywords are specified for search. Valid values are “all” or “any”. Default is “all”


Value: Must be a String
pretty
optional

Return a pretty formatted response if true, Default is false


Value: Must be a Boolean
field_list
optional

List of fields required in the result.


Value: Must be an array of any type
thing_keys
optional

List of thing keys whose data is required in the result.


Value: Must be an array of any type
metric_name
optional

Name of metric whose data is required in the result


Value: Must be a String
analytics_engine_task_result_key
required

Mandatory, analytics_engine_task_result_key in string format.


Value: Must be a String

Examples

Request - listing all analytics_engine_task_results without any criteria
  curl -X GET -H "Content-Type:application/json" -H "X-Auth-Token:DarTKU-eUJ7md2vS-lFroA" https://datonis.altizon.com/api/v3/analytics_engine_task_results?analytics_engine_task_key=5119a35efa

Response (returns first 20 analytics_engine_task_results)
{
  "total_count": 1,
  "page": 1,
  "analytics_engine_task_results": [
    {
      "analytics_engine_task_result_key": "c477418959",
      "created_at": "2015/08/25 11:12:07",
      "data": {
        "value": "123.222",
        "confidence": 0.78
      },
      "error_log": null,
      "status": "completed",
      "updated_at": "2015/08/25 12:58:43",
      "analytics_engine_task_key": "5119a35efa"
    }
  ]
}