GetInstanceStatusCount

更新时间:
复制 MD 格式

Queries the statistics of instances in different states.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

integer

Yes

The workspace ID.

1234

ProjectEnv

string

Yes

The runtime environment. Valid values: PROD and DEV.

PROD

BizDate

string

Yes

The data timestamp of instances.

2020-01-01

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

0000-ABCD-EFG****

StatusCount

object

The statistics of instances.

FailureCount

integer

The number of instances that failed.

1

WaitTimeCount

integer

The number of instances that are waiting for their scheduling time to arrive.

1

RunningCount

integer

The number of instances that are running.

1

SuccessCount

integer

The number of instances that are successfully run.

1

TotalCount

integer

The total number of instances returned.

1

NotRunCount

integer

The number of instances that are not run.

1

WaitResCount

integer

The number of instances that are 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.