概览
status RESTful API 使用以下 URL 和方法显示已执行作业的状态︰
项 | 说明 | ||
---|---|---|---|
URL | /datamover/executedJobs/executed-job-name /datamover/executingJobs/executed-job-name |
||
方法 | GET |
请求参数
- outputLevel
- URL:/datamover/executingJobs/executed-job-name?outputLevel=value
响应参数
- currentStep
- 说明:作业的最新步骤 ID;如果未执行,则为 null
- endTime
- 说明︰作业的结束时间;如果未执行,则为 null
- jobExecutionId
- 说明:作业执行标识
- jobName
- 说明︰作业名称(最大字符数︰237)
- jobExecutionName
- 说明︰作业执行名称
- lifeCycle
- 说明:列出作业创建和执行期间的所有事件
- log
- 说明:显示实用程序日志输出
- rowCount
- 说明:如果存在行计数验证步骤,则为源对象和目标对象的行计数结果
- startTime
- 说明︰作业的开始时间;如果未执行,则为 null
- status
- 说明︰作业的状态(最大字符数︰12),其中可能的值列在请求参数的 status 说明中
- steps
- 说明:列出作业的所有最后步骤;如果未执行,则为 null
- streams
- 说明:列出流(如果可用)
- tasks
- 说明:列出每个对象的所有单个任务;如果未执行,则为 null
响应示例
以下示例显示了一个具有最常见状态的作业执行数组。生成的链接取决于作业状态。
{ "jobName": "dmsmptodmsmp2createtest", "jobExecutionName": "dmsmptodmsmp2createtest-20141219094827", "startTime": 1419011314588, "status": "RUNNING", "links" : [ { "rel": "self" "href": "http://server/datamover/executingJobs/dmsmptodmsmp2createtest-20141219094827" }, { "rel": "executed_status" "href": "http://server/datamover/executedJobs/dmsmptodmsmp2createtest-20141219094827" } ] } { "jobName": "dmsmptodmsmp2createtest", "jobExecutionName": "dmsmptodmsmp2createtest-20141219094827", "startTime": 1419011314588, "status": "RUNNING", "steps": [ { "id": 1, "type": "VERIFY_JOB_OBJECTS", "startTime": 1419011317674, "endTime": 1419011331750, "durationTime": 14, "status": "COMPLETED" }, { "type": "MOVE_TABLE_DATA", "startTime": 1419011332324, "endTime": 1419011373457, "status": "COMPLETED", "durationTime": 41 } ], "tasks": [ { "id": 15, "parentName": "dmintegrationtestuser", "objectName": "test1", "objectType": "table", "movePhase": "MOVING_DATA", "status": "ARCHIVE", "totalRowsProcessed": 1002, "totalBytesProcessed": 32558, "timeStamp": 1419011343828, "agentName": "Agent2", "utility": "ARC", "sessionsSpecified": 2, "sessionsUsed": "2" "dataStreams": 1 } ], "streams": [ { "utility": "ARC", "operator": "Archive", "agentName": "Agent2", "taskID": 15, "streamID": 1, "bytesProcessed": 97674, "processSpeed": 49033, "timestamp": 1419011349791, "objectName": "dmintegrationtestuser.test3" } ], "log": "Step 1 is complete", "links" : [ { "rel": "self" "href": "http://server/datamover/executingJobs/dmsmptodmsmp2createtest-20141219094827" }, { "rel": "executed_status" "href": "http://server/datamover/executedJobs/dmsmptodmsmp2createtest-20141219094827" } ] }