/api/dataSets/dataSources/:id/executions/:exid
The execution result (number of rows and duration) is returned only for executions scheduled without parameter repeateInterval (executions executed only once).
Returns detailed information about the data source execution.
Resource Information
Resource URL | https://service.belladati.com/api/dataSets/dataSources/:id/executions/:exid |
---|---|
HTTP Method |
|
Request Parameters
Parameters | Detail | Example |
---|---|---|
id | ID of the data source to fetch. You can find the ID in the response to | 123 |
exid | ID of the execution. You can get the execution ID as the response to /api/dataSets/dataSources/:id/schedule | 456 |
Response Structure
JSON response contains an object with the following definition:
Name | Description | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id | ID of the execution | ||||||||||||||
status | Result of the import (SUCCESS, SUCCESS_INCOMPLETE, ERROR, CANCELED, etc.) If the import has not been executed yet, the status is UNKNOWN | ||||||||||||||
createdBy | Identifier of user that created execution. | ||||||||||||||
importDuration | Duration of the import in seconds (only for status SUCCESS) | ||||||||||||||
executedWhen | Date and time of the execution | ||||||||||||||
importRecordsCount | Number of imported rows (only for status SUCCESS) | ||||||||||||||
repeateInterval | (Optional) Period of import execution - please see list of supported values. If this element is not specified then import will be performed only once. | ||||||||||||||
repeateIntervalCustom | Mandatory only if "repeateInterval" has value "CUSTOM". Specifies custom repeat interval in minutes. | ||||||||||||||
overwritingPolicy | (Optional) Action description to perform with existing data. If this element is not specified then existing data remains unchanged and new data rows will be appended.
|
Sample Request / Response
Using curl
:
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/dataSets/dataSources/3435/execution/1223
The JSON format response:
{ "execution": { "importDuration": "10", "executedWhen": "Thu, 25 Jun 2020 14:15:16 GMT", "createdBy": "3", "importRecordsCount": "4248", "id": "1139714", "status": "SUCCESS" } }