All Products
Search
Document Center

DataWorks:ListTopics

Last Updated:Nov 21, 2024

Queries events.

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
BeginTimestringYes

The beginning of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-dd'T'HH:mm:ssZ format. The time must be in UTC.

2019-03-24T00:00:00+0800
EndTimestringYes

The end of the time range to query. Specify the time in the ISO 8601 standard in the yyyy-MM-dd'T'HH:mm:ssZ format. The time must be in UTC.

2019-03-25T23:00:00+0800
TopicTypesstringNo

The types of the events. Valid values: SLOW and ERROR. The value SLOW indicates that the running duration of the node in the current scheduling cycle is significantly longer than the average running duration of the node in previous scheduling cycles. The value ERROR indicates that the node fails to run. You can specify multiple types. Separate them with commas (,).

ERROR,SLOW
TopicStatusesstringNo

The status of the events. Valid values: IGNORE, NEW, FIXING, and RECOVER. The value IGNORE indicates that the events are ignored. The value NEW indicates that the events are new events. The value FIXING indicates that the events are being processed. The value RECOVER indicates that the events are processed. You can specify multiple states. Separate them with commas (,).

IGNORE,NEW,FIXING,RECOVER
NodeIdlongNo

The ID of the node that triggers the events. You can configure either this parameter or the InstanceId parameter.

1234
InstanceIdlongNo

The ID of the node instance that triggers the events. You can configure either this parameter or the NodeId parameter.

12345
OwnerstringNo

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

952795****
PageNumberintegerYes

The number of the page to return. Valid values: 1 to 30. Default value: 1.

1
PageSizeintegerYes

The number of entries to return on each page. Default value: 10. Maximum value: 100.

10

Response parameters

ParameterTypeDescriptionExample
object
HttpStatusCodeinteger

The HTTP status code returned.

200
RequestIdstring

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

0000-ABCD-EFG****
ErrorMessagestring

The error message returned.

The specified parameters are invalid.
ErrorCodestring

The error code returned.

1031203110005
Successboolean

Indicates whether the request was successful.

true
Dataobject

The information about the events returned.

PageNumberinteger

The page number of the returned page.

1
PageSizeinteger

The number of entries returned per page.

10
TotalCountinteger

The total number of the events returned.

100
Topicsarray<object>

The events returned.

Topicsobject
TopicNamestring

The name of the event.

1234 Error
ProjectIdlong

The ID of the workspace to which the node belongs.

1234
NodeOwnerstring

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

952795****
InstanceIdlong

The ID of the node instance that triggers the event.

12345
FixTimelong

The timestamp when the event was processed.

1553508465000
TopicTypestring

The type of the event. Valid values: SLOW and ERROR. The value SLOW indicates that the running duration of the node in the current scheduling cycle is significantly longer than the average running duration of the node in previous scheduling cycles. The value ERROR indicates that the node fails to run.

ERROR
TopicStatusstring

The status of the event. Valid values: IGNORE, NEW, FIXING, and RECOVER. The value IGNORE indicates that the event is ignored. The value NEW indicates that the event is a new event. The value FIXING indicates that the event is being processed. The value RECOVER indicates that the event is processed.

NEW
HappenTimelong

The timestamp when the event occurred. A time difference may exist between the time when the event occurred and the time when the event was found.

1553508465000
NodeNamestring

The name of the node.

Node Name
TopicIdlong

The ID of the event.

1234
AddTimelong

The timestamp when the event was found.

1553524393000
NodeIdlong

The ID of the node that triggers the event.

1234

Examples

Sample success responses

JSONformat

{
  "HttpStatusCode": 200,
  "RequestId": "0000-ABCD-EFG****",
  "ErrorMessage": "The specified parameters are invalid.",
  "ErrorCode": "1031203110005",
  "Success": true,
  "Data": {
    "PageNumber": 1,
    "PageSize": 10,
    "TotalCount": 100,
    "Topics": [
      {
        "TopicName": "1234 Error",
        "ProjectId": 1234,
        "NodeOwner": "952795****",
        "InstanceId": 12345,
        "FixTime": 1553508465000,
        "TopicType": "ERROR",
        "TopicStatus": "NEW",
        "HappenTime": 1553508465000,
        "NodeName": "Node Name\n",
        "TopicId": 1234,
        "AddTime": 1553524393000,
        "NodeId": 1234
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
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.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.-

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

Change history

Change timeSummary of changesOperation
No change history