Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameters:
  • tenant – User tenant.
  • project_id – Project identifier.
Headers:See Common Headers.
Status Codes:
  • 200 – All trend detection entities are returned.

See also Common Status Codes.

Returns:

List of configured trend detection entities.

Code Block
js
js
{
    "trend_detection_entities": [
        {
            "aggregation_time_field": "$item_created_at", 
            "aggregation_field": "Price", 
            "name": "EU Egg Price Trend", 
            "created_at": "2016-06-07T10:52:05", 
            "modified_at": "2016-06-07T10:52:07",
			"trends_healthy": True, 
            "aggregation_interval": "1w", 
            "aggregation_method": "avg", 
            "query": "Type:\"Egg Price\" \"Country\":EU", 
            "project_id": "j0mN4DgQTGWDSBP3QcqDwg", 
            "id": "em_I-hJMRzi-OjvObOqU6A"
        }
    ]
}
  • In the output response, `trends_healthy` is a boolean parameter which signifies whether or not
    the last retraining of the current trend-detection entity has been successful or not.

Create Trend Detection Entity

...