Call GetInstanceConsumeTimeRank get the instance runtime long ranking.

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 Required GetInstanceConsumeTimeRank

The operation that you want to perform.

Bizdate String Required 2020-09-21T00:00:00+0800

Business date, accurate to days. You must use the yyyy-MM-dd'T'HH:mm:ssZ UTC format.

ProjectId Long Yes 100000

The ID of the DataWorks workspace.

RegionId String Required cn-shanghai

The zone ID of the instance.

Response parameters

Parameter Type Example Description
InstanceConsumeTimeRank Struct

The running duration of the instance.

ConsumeTimeRank Array of ConsumeTimeRank

The running duration of the instance.

Bizdate Long 1600963200000

The business date on which the instance was run.

Consumed Long 1000

The running duration of the instance. Unit: seconds.

InstanceId Long 95279527

The ID of the primary instance.

NodeId Long 9527

The ID of the node.

NodeName String The name of the node

The name of the node.

Owner String 952795279527

The UID of the node owner.

PrgType Integer 10

The protocol used by the site monitoring task.

UpdateTime Long 1600963200000

The timestamp when the ranking was updated.

RequestId String 6347364dadsfadf****

The unique ID generated for each request.

Examples

Sample requests

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

Sample success responses

XML format

<RequestId>6347364dadsfadf****</RequestId>
<InstanceConsumeTimeRank>
    <ConsumeTimeRank>
        <PrgType>10</PrgType>
        <Owner>952795279527</Owner>
        <NodeName> node name </NodeName>
        <InstanceId>95279527</InstanceId>
        <NodeId>9527</NodeId>
        <Consumed>1000</Consumed>
        <Bizdate>1600963200000</Bizdate>
    </ConsumeTimeRank>
    <UpdateTime>1600963200000</UpdateTime>
</InstanceConsumeTimeRank>

JSON format

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

Error code

HttpCode Error code Error message Description
403 Forbidden.Access Access is forbidden. Activate DataWorks first. Your access is restricted, possibly because you have not activated DataWorks.
500 Forbidden.Not.Server The dataworksAPI service is not available in this area. Please try it in another area. DataWorks API service is not available in this region. Please try another region.
500 InternalError.System An internal system error occurred. Try again later. An internal system error occurred. Please try again later.
500 InternalError.UserId.Missing An internal system error occurred. Try again later. An internal system error occurred. Please try again later.
403 ResourceNotAuthorized.Api You are not authorized to access the resources. You cannot access resources without authorization.
429 Throttling.Api The request for this resource has exceeded your available limit. The request for the resource exceeds your available upper limit.
429 Throttling.Api.Risk The request for this resource has exceeded your daily available limit. The request for the resource has exceeded your daily availability limit.
429 Throttling.Resource You have reached the limit for the resource. Please contact us by submitting a ticket. The number of resources has reached the upper limit. Submit a ticket.
429 Throttling.System The DataWorks system is busy. Try again later. DataWorks the system is busy, please try again later.
429 Throttling.User Your request is too frequent. Try again later. Your request is too frequent, please try to slow down the request speed.
500 Forbidden.Wkbench.ProjectNoPermission You are not authorized to access the workspace. You have no permission to use a workspace.
500 Invalid.Wkbench.Parameter The specified parameters are invalid. The parameters are invalid.

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