Queries the ranking of nodes on which errors occur within the last month.

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 TopTenErrorTimesInstance

The operation that you want to perform.

ProjectId Long Yes 9527

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

RegionId String Yes cn-shanghai

The region ID. For example, the ID of the China (Shanghai) region is cn-shanghai, and that 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.

Response parameters

Parameter Type Example Description
InstanceErrorRank Struct

The ranking of nodes on which errors occur.

ErrorRank Array of ErrorRank

The ranking of nodes on which errors occur within the last month.

Count Integer 5

The number of errors that occur on the node.

NodeId Long 9527

The ID of the node.

NodeName String Node name

The name of the node.

Owner String 952795279527

The user identifier (UID) of the Alibaba Cloud account used by the owner of the node.

ProgramType Integer 10

The type of the node.

Valid values:

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

ProjectId Long 9527

The ID of the DataWorks workspace.

UpdateTime Long 1600963200000

The time when the ranking was updated.

RequestId String 952795279527****

The ID of the request. You can use the ID to troubleshoot issues.

Examples

Sample requests

http(s)://[Endpoint]/?Action=TopTenErrorTimesInstance
&ProjectId=9527
&RegionId=cn-shanghai
&<Common request parameters>

Sample success responses

XML format

<RequestId>952795279527****</RequestId>
<InstanceErrorRank>
    <UpdateTime>1600963200000</UpdateTime>
    <ErrorRank>
        <Owner>952795279527</Owner>
        <NodeName>Node name</NodeName>
        <ProjectId>9527</ProjectId>
        <NodeId>9527</NodeId>
        <ProgramType>10</ProgramType>
        <Count>5</Count>
    </ErrorRank>
</InstanceErrorRank>

JSON format

{
    "RequestId": "952795279527****",
    "InstanceErrorRank": {
        "UpdateTime": 1600963200000,
        "ErrorRank": {
            "Owner": 952795279527,
            "NodeName": "Node name",
            "ProjectId": 9527,
            "NodeId": 9527,
            "ProgramType": 10,
            "Count": 5
        }
    }
}

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.
403 ResourceNotAuthorized.Api You are not authorized to access the resources. The error message returned because you are not authorized to access the resources.
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.
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.
500 Invalid.Wkbench.Parameter The specified parameters are invalid. The error message returned because the values specified for one or more parameters are invalid.
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 Ultimate Edition.

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