Retrieves all history records of an instance. A history record is generated each time a node is rerun.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
integer |
Yes |
The ID of the instance. You can call ListInstances to obtain the ID. |
1234 |
| ProjectEnv |
string |
No |
The environment of the workspace. Valid values: PROD (production environment) and DEV (development environment). Default value: PROD. |
PROD |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. Used 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 scheduled run time of the node, in timestamp format. |
1590422400000 |
| BeginRunningTime |
integer |
The time when the instance started running, in timestamp format. |
1590416703313 |
| FinishTime |
integer |
The time when the scheduled node finished running, in timestamp format. |
1590416703313 |
| ErrorMessage |
string |
[Deprecated] The error message returned when the instance failed to run. This field is deprecated. You can call the GetInstanceLog operation to obtain the error information of the node. |
error message |
| CreateTime |
integer |
The time when the instance was created. The value is a 13-digit number, 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 time when the scheduled node was last modified. The value is a 13-digit number, such as |
1590416703313 |
| InstanceId |
integer |
The ID of the instance. |
1234 |
| BeginWaitResTime |
integer |
The time when the instance started waiting for resources. The value is a 13-digit number, such as |
1590416703313 |
| Bizdate |
integer |
The business date on which the scheduled node was run. This value is typically one day before the run time of the node. The value is a 13-digit number, such as |
1590336000000 |
| NodeName |
string |
The name of the node. |
kzh |
| BeginWaitTimeTime |
integer |
The time when the instance started waiting for scheduling. The value is a 13-digit number, such as |
1590416703313 |
| NodeId |
integer |
The ID of the node. |
33115 |
| InstanceHistoryId |
integer |
The history archive ID of the instance. |
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.