TopTenElapsedTimeInstance

Updated at:

Retrieves the ranking of instances by execution duration.

Operation description

This operation is available in DataWorks Basic Edition and higher editions.

The caller must be a member of the DataWorks workspace specified by ProjectId. You can call the ListProjects operation to obtain the ID of the target workspace, and then query the ranking of instance execution durations in the same region. This operation collects statistics on task instances in the production environment of the workspace.

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

1000001

Response elements

Element

Type

Description

Example

object

The response elements.

RequestId

string

The request ID. You can use this ID to troubleshoot issues when errors occur.

6347364dadsfadf****

InstanceConsumeTimeRank

object

The ranking records of instance execution durations.

UpdateTime

integer

The timestamp when the ranking of instance execution durations was updated.

1600963200000

ConsumeTimeRank

array<object>

The ranking data of instance execution durations.

object

The items in the ranking data.

Owner

string

The Alibaba Cloud UID of the node owner.

952795279527

NodeName

string

The name of the node.

Node name

BusinessDate

integer

The business date when the instance was run.

The value is a 13-digit number, such as 1600963200000.

1600963200000

ProgramType

integer

The type of the node. Common types include: 6 (Shell), 10 (ODPS SQL), 11 (ODPS MR), 23 (Data Integration), 24 (ODPS Script), 99 (Virtual Node), 221 (PyODPS 2), 225 (ODPS Spark), 227 (EMR Hive), 228 (EMR Spark), 229 (EMR Spark SQL), 230 (EMR MR), 239 (OSS Object Check), 257 (EMR Shell), 258 (EMR Spark Shell), 259 (EMR Presto), 260 (EMR Impala), 900 (Real-time Sync), 1089 (Cross-tenant Node), 1091 (Hologres Development), 1093 (Hologres SQL), 1100 (Assignment Node), and 1221 (PyODPS 3).

10

InstanceId

integer

The instance ID.

95279527

NodeId

integer

The ID of the node.

9527

Consumed

integer

The execution duration of the instance, in seconds.

1000

Examples

Success response

JSON format

{
  "RequestId": "6347364dadsfadf****",
  "InstanceConsumeTimeRank": {
    "UpdateTime": 1600963200000,
    "ConsumeTimeRank": [
      {
        "Owner": "952795279527",
        "NodeName": "Node name",
        "BusinessDate": 1600963200000,
        "ProgramType": 10,
        "InstanceId": 95279527,
        "NodeId": 9527,
        "Consumed": 1000
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

500 Forbidden.Not.Server The dataworksAPI service is not available in this area. Please try it in another area.
500 InternalError.System An internal system error occurred. Try again later.
500 InternalError.UserId.Missing An internal system error occurred. Try again later.
500 Forbidden.Wkbench.ProjectNoPermission You are not authorized to access the workspace.
403 ResourceNotAuthorized.Api You are not authorized to access the resources.
403 Forbidden.Access Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.
429 Throttling.Api The request for this resource has exceeded your available limit.
429 Throttling.Api.Risk The request for this resource has exceeded your daily available limit.
429 Throttling.Resource You have reached the limit for the resource. Please contact us by submitting a ticket.
429 Throttling.System The DataWorks system is busy. Try again later.
429 Throttling.User Your request is too frequent. Try again later.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.