Queries the ranking of the running durations of instances in the Successful or Failed state.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes TopTenElapsedTimeInstance

The operation that you want to perform. Set the value to TopTenElapsedTimeInstance.

RegionId String Yes cn-shanghai

The region ID. For example, the ID of the China (Shanghai) region is cn-shanghai, and the ID of the China (Zhangjiakou) region is cn-zhangjiakou. The system automatically determines the value of this parameter based on the endpoint used to call the operation.

ProjectId Long Yes 100000

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

Response parameters

Parameter Type Example Description
RequestId String 6347364dadsfadf****

The ID of the request. You can troubleshoot errors based on the ID.

InstanceConsumeTimeRank Object

The ranking record of the running durations of the instances.

UpdateTime Long 1600963200000

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

ConsumeTimeRank Array of ConsumeTimeRank

The ranking data of the running durations of the instances.

Owner String 952795279527

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

NodeName String Node name

The name of the node.

BusinessDate Long 1600963200000

The data timestamp of the instance.

ProgramType Integer 10

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)

InstanceId Long 95279527

The ID of the instance.

NodeId Long 9527

The ID of the node.

Consumed Long 1000

The running duration of the instance. Unit: seconds.

Examples

Sample requests

http(s)://[Endpoint]/?Action=TopTenElapsedTimeInstance
&BusinessDate=2020-09-21T00:00:00+0800
&ProjectId=100000
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<TopTenElapsedTimeInstanceResponse>
    <RequestId>6347364dadsfadf****</RequestId>
    <InstanceConsumeTimeRank>
        <UpdateTime>1600963200000</UpdateTime>
        <ConsumeTimeRank>
            <Owner>952795279527</Owner>
            <BusinessDate>1600963200000</BusinessDate>
            <InstanceId>95279527</InstanceId>
            <NodeName>Node name</NodeName>
            <NodeId>9527</NodeId>
            <Consumed>1000</Consumed>
            <ProgramType>10</ProgramType>
        </ConsumeTimeRank>
    </InstanceConsumeTimeRank>
</TopTenElapsedTimeInstanceResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

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

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. The error message returned because the DataWorks API is unavailable in this region. Try another region.
500 InternalError.System An internal system error occurred. Try again later. The error message returned because an internal error has occurred. Try again later.
500 InternalError.UserId.Missing An internal system error occurred. Try again later. The error message returned because an internal error has occurred. Try again later.
500 Forbidden.Wkbench.ProjectNoPermission You are not authorized to access the workspace. The error message returned because you are not authorized to access the workspace.
403 ResourceNotAuthorized.Api You are not authorized to access the resources. The error message returned because you are not authorized to access the resources.
403 Forbidden.Access Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. The error message returned because you are not allowed to perform this operation. Activate DataWorks Enterprise Edition or DataWorks Ultimate Edition.
429 Throttling.Api The request for this resource has exceeded your available limit. The error message returned because the number of requests for the resource has exceeded the upper limit.
429 Throttling.Api.Risk The request for this resource has exceeded your daily available limit. The error message returned because the number of requests per day for the resource has exceeded the upper limit.
429 Throttling.Resource You have reached the limit for the resource. Please contact us by submitting a ticket. The error message returned because your quota for the resource has been reached. Submit a ticket.
429 Throttling.System The DataWorks system is busy. Try again later. The error message returned because the DataWorks system is busy. Try again later.
429 Throttling.User Your request is too frequent. Try again later. The error message returned because excessive requests have been submitted within a short period of time. Try again later.

For a list of error codes, visit the API Error Center.