All Products
Search
Document Center

DataWorks:GetInstanceStatusStatistic

Last Updated:Nov 21, 2024

Queries the number of instances that are in each state.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectIdlongYes

The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to query the ID.

1234
ProjectEnvstringYes

The runtime environment. Valid values: PROD and DEV.

PROD
BizDatestringYes

The date on which the numbers of instances in different states are obtained. Specify the date in the yyyy-MM-dd format.

2020-01-01
SchedulerTypestringNo

The scheduling type of the node. Valid values:

  • NORMAL: auto triggered node
  • MANUAL: manually triggered node
  • PAUSE: paused node
  • SKIP: dry-run node
NORMAL
DagTypestringNo

The type of the directed acyclic graph (DAG). Valid values:

  • MANUAL: DAG for a manually triggered workflow
  • SMOKE_TEST: DAG for a smoke testing workflow
  • SUPPLY_DATA: DAG for a data backfill instance
  • BUSINESS_PROCESS_DAG: DAG for a one-time workflow
  • DAILY
  • MANUAL
  • SMOKE_TEST
  • SUPPLY_DATA
  • BUSINESS_PROCESS_DAG
MANUAL
SchedulerPeriodstringNo

The scheduling cycle. Valid values:

  • MINUTE
  • HOUR
  • DAY
  • WEEK
  • MONTH
DAY

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

0000-ABCD-EFG****
StatusCountobject

The numbers of instances in different states.

FailureCountinteger

The number of instances that failed to run.

1
WaitTimeCountinteger

The number of instances that are waiting to run.

1
RunningCountinteger

The number of instances that are running.

1
SuccessCountinteger

The number of instances that are successfully run.

1
TotalCountinteger

The total number of instances returned.

1
NotRunCountinteger

The number of instances that are not run.

1
WaitResCountinteger

The number of instances that are waiting for resources.

1

Examples

Sample success responses

JSONformat

{
  "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 Service error codes.

Change history

Change timeSummary of changesOperation
2023-12-07The request parameters of the API has changedView Change Details