Time Series Import¶
Initiate a new bulk import job¶
Note
This section is applicable only for region Europe 2
This POST method is used to initiate a new bulk import job with the provided parameters. The parameters that you can provide in the body of the request and are a set of entity IDs, one or more property sets, and a time range. All the data in the time range for all the property sets for all the entities will be imported to data lake.
1 | POST /timeSeriesImportJobs
|
Request Example:
1 2 3 4 5 6 7 8 9 10 11 12 | { "name": "testazure26-11", "destination": "testazure26-11", "aspectNames": [ "idl_aspect1" ], "assetIds": [ "222f32d5d089408bbaaa48cecd613b4b" ], "from": "2018-10-24T19:29:58.000Z", "to": "2018-11-24T19:29:58.000Z" } |
Response Example:
1 2 3 4 5 6 | { "id": "c4a4532a28c44b9aa5f2c31fd8d6da8b", "name": "testazure26-14", "status": "PENDING", "destinationPath": "testazure26-14" } |
Get a list of time series bulk import jobs¶
This GET method is used to get the status of all current time series bulk import jobs initiated by tenant. Periodically, successfully completed job records gets deleted and they will not be part of result set for this API. GET - Time Series Import Jobs.
1 | GET /timeSeriesImportJobs
|
Response Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | { "timeSeriesImportJobs": [ { "id": "c71b8929e52c4b1c8959c33d012ed8d6", "name": "IntegTest671b007f-16bb-47b6-83b1-5103dcac2012", "status": "FAILED", "destinationPath": "IntegTest/" } ], "page": { "size": 1, "totalElements": 38, "totalPages": 38, "number": 0 } } |
Get a list of time series bulk import jobs for given ID¶
This GET method is used to get the current status of a time series bulk import job by Id. Periodically, successfully completed job records gets deleted and they will not be part of result set for this API.
1 | GET /timeSeriesImportJobs/c71b8929e52c4b1c8959c33d012ed8d6
|
Response Example:
1 2 3 4 5 6 | { "id": "c71b8929e52c4b1c8959c33d012ed8d6", "name": "IntegTest671b007f-16bb-47b6-83b1-5103dcac2012", "status": "FAILED", "destinationPath": "IntegTest/" } |
Get a details of time series bulk import jobs for given ID¶
1 | GET /timeSeriesImportJobs/c71b8929e52c4b1c8959c33d012ed8d6/details
|
Response Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | { "id": "1b67dba3a7f0477382c5a8f9ad50a46d", "from": "2018-10-24T19:29:58.000Z", "to": "2018-10-24T19:29:58.000Z", "status": "SUCCESS", "progress": 100.0, "aspectNames": [ "idl_aspect1" ], "assetIds": [ "222f32d5d089408bbaaa48cecd613b4b" ], "destinationPath": "testazure24-13/", "fileCount": 0, "name": "testazure24-13" } |
Delete the time series bulk import jobs¶
1 | Delete /timeSeriesImportJobs/c71b8929e52c4b1c8959c33d012ed8d6/details
|
Response Example:
1 | Status 204 No Content |
Any questions left?
Except where otherwise noted, content on this site is licensed under the MindSphere Development License Agreement.