/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

GET

Request Parameters

Parameters

Detail

Example

id

ID of the data source to fetch. You can find the ID in the response to /api/dataSets/:id/dataSources.

123
exidID 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:

NameDescription
idID 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

createdByIdentifier of user that created execution.
importDurationDuration of the import in seconds (only for status SUCCESS)
executedWhen

Date and time of the execution

importRecordsCountNumber 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.
repeateIntervalCustomMandatory 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.

NameDescription
attributes(Optional) Array containing codes of attributes that should be overwritten.
attributesAllBoolean flag indicating if data in for attributes should be overwritten.
dateAttribute(Optional) Code of attribute that should be used for date compare.
dateFrom(Optional) Date specifying start date of data rows to overwrite. Format: "yyyy-MM-dd"
dateTo(Optional) Date specifying end date of data rows to overwrite. Format: "yyyy-MM-dd"
policyOverwrite action to perform with existing data - please see list of supported values.

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"
  }
}
  • No labels