Skip to Content
Industrial Internet Application Development
book

Industrial Internet Application Development

by Alena Traukina, Jayant Thomas, Prashant Tyagi, Veera Kishore Reddipalli
September 2018
Intermediate to advanced
412 pages
11h 12m
English
Packt Publishing
Content preview from Industrial Internet Application Development

Validating data ingestion

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"], ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Industrial Internet of Things

Hands-On Industrial Internet of Things

Giacomo Veneri, Antonio Capasso
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781788298599Supplemental Content