To check whether the sensor data from an application was ingested correctly, we can query it. In this example, we will query an average time series value for an hour.
To do this, you need to create a POST request in Postman and link it to the following URL: https://time-series-store-predix.run.aws-usw02-pr.ice.predix.io/v1/datapoints.
The headers in the request should be as follows:
Content-Type: application/jsonAuthorization: Bearer LONG_TOKENPredix-Zone-Id: 6f6882ff-3a3b-45b2-b20b-b537e652471d
In the body, we need to specify the start and end time, a sensor name, an aggregation function, and a filter with a device name, as shown here:
{ "start": 1501664960967, "end": 1501664973018, "tags": [ { "name": ["sensor1:variable1"], ...