Queries the number of instances in each state.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetInstanceStatusStatistic

The operation that you want to perform.

BizDate String Yes 2020-01-01

The date on which the numbers of instances in different states are obtained.

ProjectEnv String Yes PROD

The environment type. Valid values: PROD and DEV. The value PROD indicates the production environment. The value DEV indicates the development environment.

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 ID.

RegionId String Yes cn-shanghai

The region ID. For example, the ID of the China (Shanghai) region is cn-shanghai, and that of the China (Zhangjiakou) region is cn-zhangjiakou. The system automatically determines the value of this parameter based on the endpoint that is used to call the operation.

Response parameters

Parameter Type Example Description
RequestId String 0000-ABCD-EFG****

The ID of the request. You can use the ID to locate logs and troubleshoot issues.

StatusCount Struct

The numbers of instances in different states.

FailureCount Integer 1

The number of instances that failed to run.

NotRunCount Integer 1

The number of instances that are not run.

RunningCount Integer 1

The number of running instances.

SuccessCount Integer 1

The number of instances that are successfully run.

TotalCount Integer 1

The total number of instances.

WaitResCount Integer 1

The number of instances that are waiting for resources.

WaitTimeCount Integer 1

The number of instances that are waiting to run.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetInstanceStatusStatistic
&BizDate=2020-01-01
&ProjectEnv=PROD
&ProjectId=1234
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<StatusCount>
    <TotalCount>1</TotalCount>
    <FailureCount>1</FailureCount>
    <RunningCount>1</RunningCount>
    <WaitResCount>1</WaitResCount>
    <SuccessCount>1</SuccessCount>
    <NotRunCount>1</NotRunCount>
    <WaitTimeCount>1</WaitTimeCount>
</StatusCount>
<RequestId>0000-ABCD-EFG****</RequestId>

JSON format

{
    "StatusCount": {
        "TotalCount": 1,
        "FailureCount": 1,
        "RunningCount": 1,
        "WaitResCount": 1,
        "SuccessCount": 1,
        "NotRunCount": 1,
        "WaitTimeCount": 1
    },
    "RequestId": "0000-ABCD-EFG****"
}

Error codes

For a list of error codes, visit the API Error Center.