Queries the number of instances that are in each state.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetInstanceStatusStatistic |
The operation that you want to perform. Set the value to GetInstanceStatusStatistic. |
ProjectId | Long | Yes | 1234 |
The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the Workspace Management page to obtain the workspace ID. |
ProjectEnv | String | Yes | PROD |
The environment of the workspace. Valid values: PROD and DEV. The value PROD indicates the production environment. The value DEV indicates the development environment. |
BizDate | String | Yes | 2020-01-01 |
The date on which the numbers of instances in different states are obtained. Specify the date in the yyyy-MM-dd format. |
SchedulerType | String | No | NORMAL |
The scheduling type of the node. Valid values:
|
DagType | String | No | MANUAL |
The type of the directed acyclic graph (DAG). Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 0000-ABCD-EFG**** |
The ID of the request. You can use the ID to search for logs and troubleshoot issues based on the logs. |
StatusCount | Object |
The numbers of instances in different states. |
|
FailureCount | Integer | 1 |
The number of instances that failed to run. |
WaitTimeCount | Integer | 1 |
The number of instances that are waiting to run. |
RunningCount | Integer | 1 |
The number of instances that are running. |
SuccessCount | Integer | 1 |
The number of instances that are successfully run. |
TotalCount | Integer | 1 |
The total number of instances. |
NotRunCount | Integer | 1 |
The number of instances that are not run. |
WaitResCount | Integer | 1 |
The number of instances that are waiting for resources. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=GetInstanceStatusStatistic
&ProjectId=1234
&ProjectEnv=PROD
&BizDate=2020-01-01
&SchedulerType=NORMAL
&DagType=MANUAL
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<GetInstanceStatusStatisticResponse>
<RequestId>0000-ABCD-EFG****</RequestId>
<StatusCount>
<FailureCount>1</FailureCount>
<WaitTimeCount>1</WaitTimeCount>
<RunningCount>1</RunningCount>
<SuccessCount>1</SuccessCount>
<TotalCount>1</TotalCount>
<NotRunCount>1</NotRunCount>
<WaitResCount>1</WaitResCount>
</StatusCount>
</GetInstanceStatusStatisticResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "0000-ABCD-EFG****",
"StatusCount" : {
"FailureCount" : 1,
"WaitTimeCount" : 1,
"RunningCount" : 1,
"SuccessCount" : 1,
"TotalCount" : 1,
"NotRunCount" : 1,
"WaitResCount" : 1
}
}
Error codes
For a list of error codes, visit the API Error Center.