GetInstanceStatusStatistic

Updated at:

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

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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 :

    The production environment.

  • DEV :

    The development environment.

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:

  • NORMAL: Periodic scheduling.

  • MANUAL: Manual scheduling.

  • PAUSE: Paused scheduling.

  • SKIP: Dry run.

Valid values:

  • PAUSE :

    Paused scheduling.

  • SKIP :

    Dry run.

  • MANUAL :

    Manual scheduling.

  • NORMAL :

    Periodic scheduling.

NORMAL

DagType

string

No

The DAG type. Valid values:

  • MANUAL: manual task workflow.

  • SMOKE_TEST: smoke test workflow.

  • SUPPLY_DATA: data backfill.

  • BUSINESS_PROCESS_DAG: one-time workflow.

Valid values:

  • DAILY :

    Periodic task workflow.

  • SUPPLY_DATA :

    Data backfill workflow.

  • SMOKE_TEST :

    Smoke test workflow.

  • MANUAL :

    Manual task workflow.

  • BUSINESS_PROCESS_DAG :

    One-time workflow.

MANUAL

SchedulerPeriod

string

No

The scheduling cycle. Valid values:

  • MINUTE: Minute.

  • HOUR: Hour.

  • DAY: Day.

  • WEEK: Week.

  • MONTH: Month.

Valid values:

  • MONTH :

    Month.

  • HOUR :

    Hour.

  • MINUTE :

    Minute.

  • WEEK :

    Week.

  • DAY :

    Day.

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.