B2B Gateway
- B2B Gateway
- All Products
/api/v2/activity/activityLog
/api/v2/activity/activityLog/<id>
/api/v2/activity/activityLog?runId=<runId>&taskId=<taskId>
/api/v2/activity/activityLog?taskId=<taskId>
/api/v2/activity/activityLog?offset=<offset>
/api/v2/activity/activityLog?rowLimit=<rowLimit>
/api/v2/activity/activityLog?offset=<offset>&rowLimit=<rowLimit>&taskId=<taskId>&runId=<runId>
/api/v2/activity/activityLog/<id>/sessionLog
Field
| Description
|
---|---|
id
| Log entry ID.
Include this attribute if you want to receive information for a specific ID.
|
runId
| Job ID associated with the log entry ID. Whenever runId is included in a request, taskId is required.
|
taskId
| Task ID associated with the log entry ID. If taskId is not specified, all activityLog entries for all tasks are returned.
|
offset
| The number of rows to skip. For example, you might want to skip the first three rows.
|
rowLimit
| The maximum number of rows to return. The maximum number you can specify is 1000.
If you omit this attribute, the activityLog returns all available rows, up to a maximum of 200 rows.
|
Field
| Type
| Description
|
---|---|---|
id
| String
| Log entry ID.
|
type
| String
| The type of task. For
Data Integration , returns one of the following codes:
|
objectId
| String
| Task ID.
|
objectName
| String
| Name of the task.
|
runId
| Long
| ID for the task run.
|
agentId
| String
| Agent that runs the task.
|
runtimeEnvironmentId
| String
| Runtime environment that runs the task. |
startTime
| Date/time
| Start time for the task or linear taskflow. Uses Eastern Time Zone (ET).
|
endTime
| Date/time
| End time for the task or linear taskflow. Uses Eastern Time Zone (ET).
|
startTimeUtc
| Date/time
| Start time for the task or linear taskflow. Uses Coordinated Universal Time (UTC).
|
endTimeUtc
| Date/time
| End time for the task or linear taskflow. Uses Coordinated Universal Time (UTC).
|
state
| Short
| Indicates whether the task completed successfully. Returns one of the
following codes:
|
failedSourceRows
| Long
| Number of rows that the task failed to read from the source. |
successSourceRows
| Long
| Number of rows that the task successfully read from the source. |
failedTargetRows
| Long
| Number of rows that the task failed to write to the target. |
successTargetRows
| Long
| Number of rows that the task successfully wrote to the target. |
scheduleName
| String
| Schedule name, if task was initiated by a schedule.
|
entries
| Indicates the start of information for a child object. |
Field | Type | Description |
---|---|---|
id | String | Activity log entry item ID. You
can't use the ID from an activityLogEntry child object
to request information for a specific log. |
type | String | The type of task. For Data Integration , returns one of the following codes:
|
objectName | String | Name of the task. |
runId | String | ID for the task run. |
agentId | String | Agent that runs the task. |
runtimeEnvironmentId | String | Runtime environment that runs the task. |
startTime | Date/time | Start time for the task or linear taskflow.
Uses Eastern Time Zone (ET). |
endTime | Date/time | End time for the task or linear taskflow. Uses
Eastern Time Zone (ET). |
startTimeUtc | Date/time | Start time for the task or linear taskflow.
Uses Coordinated Universal Time (UTC). |
endTimeUtc | Date/time | End time for the task or linear taskflow. Uses
Coordinated Universal Time (UTC). |
state | Short | Indicates whether the task completed successfully. Returns one of the
following codes:
|
UIState | Short | Used for internal purposes only. |
failedSourceRows | Long | Number of rows that the task failed to read from the source. |
successSourceRows | Long | Number of rows that the task successfully read from the source. |
failedTargetRows | Long | Number of rows that the task failed to write to the target. |
successTargetRows | Long | Number of rows that the task successfully wrote to the target. |
errorMsg | String | Error message associated with the job. |
startedBy | String | User who started the task. |
runContextType | String | Method through which the task was initiated. Returns one of the
following options:
|
entries
| Indicates the start of information for a child
object. | |
subTaskEntries | Indicates the start of information for subtask
child objects. | |
logEntryItemAttrs | Indicates the start of metadata about the task, including the task's
location and the number compute units the job consumed. | |
sessionVariables | Indicates the start of advanced session properties provided
in the task. | |
totalSuccessRows | Long | Total number of rows that were successfully
read from the source and written to the target. |
totalFailedRows | Long | Total number of rows that were not read from
the source and written to the target. |
stopOnError | Boolean | Determines the runtime environment action to take when a nonfatal
error occurs. Includes the following values:
|
hasStopOnErrorRecord | Boolean | Indicates whether the task encountered an
error and stopped. |
contextExternalId | String | Task ID of the parent object. |
isStopped | Boolean | Indicates whether the task was stopped by the
user. A value of true is possible if the task
completed with errors or failed to complete. |
transformationEntries
| Includes information in an entry object for
each transformation. |
Field
| Type
| Description
|
---|---|---|
id
| String
| Log entry ID.
|
type
| String
| The type of task. For
Data Integration , returns one of the following codes:
|
objectId
| String
| Task ID.
|
objectName
| String
| Name of the task.
|
runId
| String
| ID for the task run.
|
agentId
| String
| Agent that runs the task.
|
runtimeEnvironmentId
| String
| Runtime environment where the task runs.
|
startTime
| Date/time
| Start time for the task or linear taskflow. Uses Eastern Time Zone (ET).
|
endTime
| Date/time
| End time for the task or linear taskflow. Uses Eastern Time Zone (ET).
|
startTimeUtc
| Date/time
| Start time for the task or linear taskflow. Uses Coordinated Universal Time (UTC).
|
endTimeUtc
| Date/time
| End time for the task or linear taskflow. Uses Coordinated Universal Time (UTC).
|
state
| Short
| Indicates whether the task completed successfully. Returns one of the
following codes:
|
UIState
| Short
| Used for internal purposes only.
|
isStopped
| Boolean
| Indicates whether the task was stopped by the user. A value of
true is possible if the task completed with
errors or failed to complete. |
failedSourceRows
| Long
| Number of rows that the task failed to read from the source. |
successSourceRows
| Long
| Number of rows that the task successfully read from the source. |
failedTargetRows
| Long
| Number of rows that the task failed to write to the target. |
successTargetRows
| Long
| Number of rows that the task successfully wrote to the target. |
errorMsg
| String
| Error message associated with the job.
|
startedBy
| String
| User who started the task.
|
runContextType
| String
| Method through which the task was initiated. Returns one of the
following options:
|
scheduleName
| String
| Schedule name, if task was initiated by a schedule.
|
orgId
| String
| Organization ID.
|
totalSuccessRows
| Long
| Total number of rows that were successfully read from the source and written to the target.
|
totalFailedRows
| Long
| Total number of rows that were not read from the source and written to the target.
|
logFilename
| String
| The name of the generated log file.
|
errorFilename
| String
| The name of the generated error file.
|
errorFileDir
| String
| The location of the error file on the Secure Agent machine.
|
connType
| String
| Connection type.
|
stopOnError
| Boolean
| Determines the runtime environment action to take when a nonfatal error
occurs. Includes the following values:
|
items
| Includes an activityLogEntryItem object for each task.
| |
type
| String
| Included in the activityLogEntryItem object.
The type of task. For
Data Integration , returns one of the following codes:
|
objectId
| String
| Included in the activityLogEntryItem object.
Task ID.
|
objectName
| String
| Included in the activityLogEntryItem object.
Name of the task.
|
runId
| String
| Included in the activityLogEntryItem object.
ID for the task run.
|
agentId
| String
| Included in the activityLogEntryItem object.
Agent that ran the task.
|
runtimeEnvironmentId
| String
| Included in the activityLogEntryItem object.
Runtime environment where the task ran.
|
startTime
| Date/time
| Included in the activityLogEntryItem object.
Start time for the task or linear taskflow. Uses Eastern Time Zone (ET).
|
endTime
| Date/time
| Included in the activityLogEntryItem object. End time for the task or
linear taskflow. Uses Eastern Time Zone (ET). |
state
| String
| Included in the activityLogEntryItem object. Indicates whether the
task completed successfully. Returns one of the following codes:
|
isStopped
| Boolean
| Included in the activityLogEntryItem object. Indicates whether the
task was stopped by the user. A value of true
is possible if the task completed with errors or failed to
complete. |
errorMsg
| String
| Included in the activityLogEntryItem object.
Error message associated with the job.
|
connType
| String
| Included in the activityLogEntryItem object.
Connection type.
|
children
| String
| Included in the activityLogEntryItem object.
Returns an activityLogEntryItem object for each table in the linear taskflow.
|
startedBy
| String
| User who started the task.
|
runContextType
| String
| Method through which the task was initiated. Returns one of the
following options:
|
scheduleName
| String
| Schedule name, if task was initiated by a schedule.
|
transformationEntries
| Includes information in a transformationLogEntry object for each transformation.
| |
id
| String
| Included in the transformationLogEntry object.
Transformation ID.
|
txName
| String
| Included in the transformationLogEntry object.
Transformation name.
For target transformations, returns the target object name.
|
txType
| String
| Included in the transformationLogEntry object.
Transformation type.
|
successRows
| Long
| Included in the transformationLogEntry object.
Number of successful rows for the transformation.
|
affectedRows
| Long
| Included in the transformationLogEntry object.
Number of rows affected by the defined task operation.
Applies to target transformations in data transfer tasks and mapping tasks based on mappings that are not configured for full SQL ELT optimization. Doesn't apply to mappings in SQL ELT mode or advanced mappings.
|
failedRows
| Long
| Included in the transformationLogEntry object.
Number of failed rows for the transformation.
|
sequenceValues
| Returns information generated from a task that includes the sequence generator transformation. Includes a sequenceValueLogEntry object for each transformation.
| |
txName
| String
| Included in the sequenceValueLogEntry object.
Transformation name.
For target transformations, returns the target object name.
|
nextValue
| String
| Included in the sequenceValueLogEntry object.
The last value generated by the task.
|
inOutParameterValues
| The in-out parameter values used in the task. Includes an inOutParameterValueLogEntry for each parameter.
| |
name
| String
| Included in the inOutParameterValueLogEntry object.
Parameter name.
|
value
| String
| Included in the inOutParameterValueLogEntry object.
Parameter value.
|
GET <serverUrl>/api/v2/activity/activityLog?rowLimit=20 HTTP/1.0 Accept:application/json icSessionId: <icSessionId>
[ { "@type": "activityLogEntry", "id": "000001C100000000000C", "type": "DRS", "objectName": "drstask1", "runId": 1, "runtimeEnvironmentId": "00000C25000000000002", "startTime": "2012-07-30T13:30:30.000Z", "endTime": "2012-07-30T13:32:30.000Z", "state": 1, "failedSourceRows": 0, "successSourceRows": 39, "failedTargetRows": 0, "successTargetRows": 39, "errorMsg": null, "entries": [ { "@type": "activityLogEntry", "id": "128964732", "type": "DRS", "objectName": "Contact", "runId": 0, "runtimeEnvironmentId": "00000C25000000000002", "agentId: "01000008000000000006", "startTime": "2012-07-30T13:32:31.000Z", "endTime": "2012-07-30T13:35:31.000Z", "state": 1, "isStopped": FALSE, "failedSourceRows": 0, "successSourceRows": 39, "failedTargetRows": 0, "successTargetRows": 39, "errorMsg": "No errors encountered.", "entries": [] }, ] }, { "@type": "activityLogEntry", "id": "010000C1000000000PGP", "type": "MTT_TEST", "objectId": "0100000Z00000000001N", "objectName": "Mapping-MultiSource", "runId": 12, "startTime": "2020-03-27T08:05:56.000Z", "endTime": "2020-03-27T08:06:07.000Z", "startTimeUtc": "2020-03-27T12:05:56.000Z", "endTimeUtc": "2020-03-27T12:06:07.000Z", "state": 2, "failedSourceRows": 0, "successSourceRows": 800, "failedTargetRows": 200, "successTargetRows": 600, "startedBy": "di@infa.com", "runContextType": "ICS_UI", "entries": [ { "@type": "activityLogEntry", "id": "118964723", "type": "MTT_TEST", "objectName": "", "runId": 12, "agentId": "01000008000000000004", "runtimeEnvironmentId": "01000025000000000004", "startTime": "2020-03-27T08:05:56.000Z", "endTime": "2020-03-27T08:06:07.000Z", "startTimeUtc": "2020-03-27T12:05:56.000Z", "endTimeUtc": "2020-03-27T12:06:07.000Z", "state": 2, "failedSourceRows": 0, "successSourceRows": 800, "failedTargetRows": 200, "successTargetRows": 600, "errorMsg": null, "startedBy": "di@infa.com", "runContextType": "ICS_UI", "entries": [], "subTaskEntries": [], "logEntryItemAttrs": { "CONSUMED_COMPUTE_UNITS": "0.0", "ERROR_CODE": "0", "IS_SERVER_LESS": "false", "REQUESTED_COMPUTE_UNITS": "0.0", "Session Log File Name": "s_mtt_0Sr7LdcbAG2ldG33Lp8koQ_2.log" }, "totalSuccessRows": 0, "totalFailedRows": 0, "stopOnError": false, "hasStopOnErrorRecord": false, "contextExternalId": "0100000Z00000000001N", "transformationEntries": [ { "@type": "transformationLogEntry", "id": "141332309", "txName": "FFSource2", "txType": "SOURCE", "successRows": 600, "failedRows": 0 }, { "@type": "transformationLogEntry", "id": "141332310", "txName": "FFSource1", "txType": "SOURCE", "successRows": 200, "failedRows": 0 }, { "@type": "transformationLogEntry", "id": "141332311", "txName": "FFTarget.csv", "txType": "TARGET", "successRows": 600, "affectedRows": 600, "failedRows": 0 }, { "@type": "transformationLogEntry", "id": "141332312", "txName": "MYSQLTarget", "txType": "TARGET", "successRows": 0, "affectedRows": 0, "failedRows": 200 } ] } ] } ]
/api/v2/activity/errorLog/id
GET <server URL>/api/v2/activity/errorLog/000002C10000000002BG HTTP/1.0 Accept:application/json icSessionId: <icSessionId>
"Col1","Col2","Error" "05/11/2015 00:00:00.000000000","05/11/2015 00:00:00.000000000","ERROR: Target table [test] has no keys specified." "05/11/2015 00:00:00.000000000","05/11/2015 00:00:00.000000000","ERROR: Target table [test] has no keys specified." "05/11/2015 00:00:00.000000000","05/11/2015 00:00:00.000000000","ERROR: Target table [test] has no keys specified." "05/11/2015 00:00:00.000000000","05/11/2015 00:00:00.000000000","ERROR: Target table [test] has no keys specified." "05/11/2015 00:00:00.000000000","05/11/2015 00:00:00.000000000","ERROR: Target table [test] has no keys specified."
/saas/api/v2/activity/activityLog/<Top_Level_Log_Entry_Id>/sessionLog?itemId=<child-log-entry-item-id>&childItemId=<child-log-entry-item-id>
/saas/api/v2/activity/activityLog/000001C1000000000591/sessionLog
/saas/api/v2/activity/activityLog/000001C1000000000591/sessionLog?itemId=233
/saas/api/v2/activity/activityLog/000001C1000000000591/sessionLog?itemId=233&childItemId=234