All Products
Search
Document Center

DataWorks:TopTenElapsedTimeInstance

Last Updated:Oct 17, 2024

Queries the ranking of the running durations of instances.

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 obtain the workspace ID.

100000

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

6347364dadsfadf****
InstanceConsumeTimeRankobject

The ranking record of the running durations of the instances.

UpdateTimelong

The timestamp at which the ranking of the running durations of the instances was updated.

1600963200000
ConsumeTimeRankarray<object>

The ranking data of the running durations of the instances.

ConsumeTimeRankobject
Ownerstring

The ID of the Alibaba Cloud account used by the node owner.

952795279527
NodeNamestring

The name of the node.

BusinessDatelong

The data timestamp of the instance.

1600963200000
ProgramTypeinteger

The type of the node. Valid values: 6 (Shell), 10 (ODPS SQL), 11 (ODPS MR), 23 (Data Integration), 24 (ODPS Script), 99 (zero load), 221 (PyODPS 2), 225 (ODPS Spark), 227 (EMR Hive), 228 (EMR Spark), 229 (EMR Spark SQL), 230 (EMR MR), 239 (OSS object inspection), 257 (EMR Shell), 258 (EMR Spark Shell), 259 (EMR Presto), 260 (EMR Impala), 900 (real-time synchronization), 1089 (cross-tenant collaboration), 1091 (Hologres development), 1093 (Hologres SQL), 1100 (assignment), and 1221 (PyODPS 3)

10
InstanceIdlong

The instance ID.

95279527
NodeIdlong

The node ID.

9527
Consumedlong

The run time length of the instance. Unit: seconds.

1000

Examples

Sample success responses

JSONformat

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

Error codes

HTTP status codeError codeError messageDescription
403ResourceNotAuthorized.ApiYou are not authorized to access the resources.-
403Forbidden.AccessAccess is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition.No permission, please authorize
429Throttling.ApiThe request for this resource has exceeded your available limit.-
429Throttling.Api.RiskThe request for this resource has exceeded your daily available limit.-
429Throttling.ResourceYou have reached the limit for the resource. Please contact us by submitting a ticket.-
429Throttling.SystemThe DataWorks system is busy. Try again later.-
429Throttling.UserYour request is too frequent. Try again later.-
500Forbidden.Not.ServerThe dataworksAPI service is not available in this area. Please try it in another area.-
500InternalError.SystemAn internal system error occurred. Try again later.-
500InternalError.UserId.MissingAn internal system error occurred. Try again later.-
500Forbidden.Wkbench.ProjectNoPermissionYou are not authorized to access the workspace.You are not authorized to access the workspace.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history