GetInstanceStatusStatistic
Retrieves the number of instance tasks in each running status.
Operation description
Retrieves the number of instance tasks in each running status.
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 |
| ProjectId |
integer |
Yes |
The ID of the DataWorks workspace. You can log on to the DataWorks console and go to the Workspace Configuration page to obtain the workspace ID. |
1234 |
| ProjectEnv |
string |
Yes |
The runtime environment, including PROD (production environment) and DEV (development environment). Valid values:
|
PROD |
| BizDate |
string |
Yes |
The business date for which to retrieve the number of instances in each instance status. Specify the date in the yyyy-MM-dd format. |
2020-01-01 |
| SchedulerType |
string |
No |
The scheduling type. Valid values:
Valid values:
|
NORMAL |
| DagType |
string |
No |
The DAG type. Valid values:
Valid values:
|
MANUAL |
| SchedulerPeriod |
string |
No |
The scheduling cycle. Valid values:
Valid values:
|
DAY |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response entity. |
||
| RequestId |
string |
The request ID, which is used to locate logs and troubleshoot issues. |
0000-ABCD-EFG**** |
| StatusCount |
object |
The statistics on the number of instances in each instance status. |
|
| FailureCount |
integer |
The number of instances that failed to run. |
1 |
| WaitTimeCount |
integer |
The number of instances waiting to run. |
1 |
| RunningCount |
integer |
The number of running instances. |
1 |
| SuccessCount |
integer |
The number of instances that ran successfully. |
1 |
| TotalCount |
integer |
The total number of instances. |
1 |
| NotRunCount |
integer |
The number of instances that have not run. |
1 |
| WaitResCount |
integer |
The number of instances waiting for resources. |
1 |
Examples
Success response
JSON format
{
"RequestId": "0000-ABCD-EFG****",
"StatusCount": {
"FailureCount": 1,
"WaitTimeCount": 1,
"RunningCount": 1,
"SuccessCount": 1,
"TotalCount": 1,
"NotRunCount": 1,
"WaitResCount": 1
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.