Time Series Data Retrieval Service
About Time Series Data Retrieval Service
Use the following service to retrieve time series data for one or more asset tags collected over a specified time interval and aggregated by a specified function. The procedure retrieves time series data in a specified data store.
Time Series Data Retrieval Service
The Time Series Data service performs a check to ensure users can only query tags that are associated with assets they have permission to access.
The V5 version of the service supports partial tag access queries. For example, if tags are not associated with a Predix Essentials asset, or permission is not configured properly, you can query time series data using the Time Series Data service. The query response has only the tags to which you have access. The V3 version of the service supports passing the unit of measurement at the tag level. Use the UnitsTo key to specify the unit of measure for the resulting times series data (to be converted to) for the applied tag in the tagList.
This version also supports cross-tenancy data access. For example, when you have access to assets from one or more tenants, using this API, you can retrieve the data for all the assigned assets.
URL |
Note: V5 endpoint displays data quality when using KairosDB format.
|
JSON fields |
Pass the json file in the request containing the following fields.
|
Method | POST |
Sample Request |
The following is a sample request for cross-tenancy only:
|
Sample response |
|
Status Code | On successful retrieval, you receive a 200 OK and tag data in requested format. The query output in the response is 200 OK regardless of whether you have access to all the tags in the list, partial access, or no access. However, the response includes only the tags for which you have permissions. If either the tag does not exists or you do not have permissions, it will not appear in the response. If you have no access to the entire list of tags, you still receive a 200 OK with an empty list. |
URL |
Note: V4 endpoint displays data quality when using KairosDB format.
|
JSON fields |
Pass the json file in the request containing the following fields.
|
Method | POST |
Sample Request |
|
Sample response |
|
Status Code | On successful retrieval, you receive a 200 OK and a tag data in requested format. |
URL |
Note: The V3 version of the service supports passing the unit of measurement at the tag level. Use the UnitsTo key to specify the unit of measure for the resulting times series data (to be converted to) for the applied tag in the tagList.
|
JSON fields |
Pass the json file in the request containing the following fields.
|
Method | POST |
Sample Request |
|
Sample response |
|
Status Code | On successful retrieval, you receive a 200 OK and tag data in requested format. |
URL | https://apm-timeseries-services-/v2/time_series? |
Query Parameters |
|
Method | GET |
Sample Request |
This sample requests, time series for asset tags |
Response Headers |
|
Status Code | On successful retrieval, you receive 200 OK and tag data in requested format. |
Aggregation Across Tags
Use this service to aggregate across multiple tags containing numeric values by time interval or number of data points. This is available for the V2 and V3 Time Series Data APIs.
Field | Description |
---|---|
tagID | Provides a list of two-10 tag names that must be separated by commas. All tags used in multi-tag aggregation mode must contain numeric values. |
operation | Specifies the optional data results: sum or avg . |
interval | Defines the length of time and determines the size of the aggregation. This value is indicated numerically. |
aggregationMode | Gives you the ability to aggregate across multiple tags when you enter the multi-tag value. This parameter can only be set at the tag level, not the global level. |
intervalUnit | Sets the unit of time for the interval. You can use any of these values:
|
Sample curl request |
|
Sample HTTP request |
|
Sample response |
|