ListInstanceHistory
Retrieves the history records of all instances. A history record is generated each time a node is rerun.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
integer |
Yes |
The ID of the instance. You can call the ListInstances operation to obtain the instance ID. |
1234 |
| ProjectEnv |
string |
No |
The workspace environment. Valid values: PROD (production environment) and DEV (development environment). Default value: PROD. |
PROD |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The ID of the request. You can use the ID to locate logs and troubleshoot issues. |
E6F0DBDD-5AD**** |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
| Instances |
array<object> |
The list of instances. |
|
|
object |
The instance details. |
||
| Status |
string |
The status of the node. Valid values:
|
NOT_RUN |
| CycTime |
integer |
The run time of the scheduled node. The value is a timestamp. |
1590422400000 |
| BeginRunningTime |
integer |
The time when the instance started to run. The value is a timestamp. |
1590416703313 |
| FinishTime |
integer |
The end time of the scheduled node. The value is a timestamp. |
1590416703313 |
ErrorMessage
deprecated
|
string |
The error message generated during the instance execution. [Deprecated] You can call the GetInstanceLog operation to obtain the error information about the executed node. |
error message |
| CreateTime |
integer |
The creation time of the instance. The value is a 13-digit timestamp, such as |
1590416703313 |
| DagId |
integer |
The ID of the workflow. |
33845 |
| TaskType |
string |
The scheduling type of the node instance. Valid values:
|
NORMAL(0) |
| DagType |
string |
The Data Quality Check (DQC) type. Valid values:
|
1 |
| ModifyTime |
integer |
The latest modification time of the scheduled node. The value is a 13-digit timestamp, such as |
1590416703313 |
| InstanceId |
integer |
The ID of the instance. |
1234 |
| BeginWaitResTime |
integer |
The time when the instance started to wait for resources. The value is a 13-digit timestamp, such as |
1590416703313 |
| Bizdate |
integer |
The date when the scheduled node is executed. Typically, this is the day before the run time of the node. The value is a 13-digit timestamp, such as |
1590336000000 |
| NodeName |
string |
The name of the node. |
kzh |
| BeginWaitTimeTime |
integer |
The time when the instance started to wait for scheduling. The value is a 13-digit timestamp, such as |
1590416703313 |
| NodeId |
integer |
The ID of the node. |
33115 |
| InstanceHistoryId |
integer |
The ID of the instance history record. |
1 |
Examples
Success response
JSON format
{
"RequestId": "E6F0DBDD-5AD****",
"Success": true,
"Instances": [
{
"Status": "NOT_RUN",
"CycTime": 1590422400000,
"BeginRunningTime": 1590416703313,
"FinishTime": 1590416703313,
"ErrorMessage": "error message",
"CreateTime": 1590416703313,
"DagId": 33845,
"TaskType": "NORMAL(0)",
"DagType": "1",
"ModifyTime": 1590416703313,
"InstanceId": 1234,
"BeginWaitResTime": 1590416703313,
"Bizdate": 1590336000000,
"NodeName": "kzh",
"BeginWaitTimeTime": 1590416703313,
"NodeId": 33115,
"InstanceHistoryId": 1
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.