All Products
Search
Document Center

DataWorks:GetTopic

Last Updated:Nov 21, 2024

Queries the information about an event.

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
TopicIdlongYes

The event ID. You can call the ListTopics operation to query the ID.

1234

Response parameters

ParameterTypeDescriptionExample
object
HttpStatusCodeinteger

The HTTP status code.

200
RequestIdstring

The request ID.

0000-ABCD-EFGH-IJKLMNOPQ
ErrorMessagestring

The error message.

The specified parameters are invalid.
ErrorCodestring

The error code.

1031203110005
Successboolean

Indicates whether the request was successful.

true
Dataobject

The details of the event.

Ownerstring

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

952795****
TopicNamestring

The name of the event.

BaselineStatusstring

The status of the baseline. Valid values: ERROR, SAFE, DANGROUS, and OVER. The value ERROR indicates that no nodes are associated with the baseline, or all nodes associated with the baseline are suspended. The value SAFE indicates that nodes are run before the alert duration begins. The value DANGROUS indicates that nodes are still running after the alert duration ends but the committed completion time does not arrive. The value OVER indicates that nodes are still running after the committed completion time.

SAFE
ProjectIdlong

The ID of the workspace to which the node that triggered the event belongs.

1234
NextAlertTimelong

The timestamp when the system reports the next alert.

1553524393000
InstanceIdlong

The ID of the instance that triggered the event.

12345
FixTimelong

The timestamp when the event was processed.

1553524393000
BaselineInGroupIdinteger

The ID of the cycle of the worst baseline instance.

1
BaselineBufferlong

The margin of the worst baseline instance. Unit: seconds.

3600
TopicTypestring

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

ERROR
TopicStatusstring

The status of the event. Valid values: IGNORE, NEW, FIXING, and RECOVER.

FIXING
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.

1553524393000
DealTimelong

The timestamp when the event was last processed.

1553524393000
DealUserstring

The ID of the Alibaba Cloud account used by the user who last processed the event.

952795****
BaselineNamestring

The name of the baseline to which the worst baseline instance belongs.

BaselineIdlong

The ID of the baseline to which the worst baseline instance belongs.

1234
NodeNamestring

The name of the node that triggered the event.

AlertTimelong

The timestamp when the first alert was reported.

1553524393000
Bufferlong

The margin of the event. Unit: seconds.

1200
Assignerstring

The ID of the Alibaba Cloud account used by the alert recipient.

952795****
TopicIdlong

The event ID.

1234
AddTimelong

The timestamp when the event was found.

1553524393000
NodeIdlong

The ID of the node that triggered the event.

1234

Examples

Sample success responses

JSONformat

{
  "HttpStatusCode": 200,
  "RequestId": "0000-ABCD-EFGH-IJKLMNOPQ",
  "ErrorMessage": "The specified parameters are invalid.",
  "ErrorCode": "1031203110005",
  "Success": true,
  "Data": {
    "Owner": "952795****",
    "TopicName": "",
    "BaselineStatus": "SAFE",
    "ProjectId": 1234,
    "NextAlertTime": 1553524393000,
    "InstanceId": 12345,
    "FixTime": 1553524393000,
    "BaselineInGroupId": 1,
    "BaselineBuffer": 3600,
    "TopicType": "ERROR",
    "TopicStatus": "FIXING",
    "HappenTime": 1553524393000,
    "DealTime": 1553524393000,
    "DealUser": "952795****",
    "BaselineName": "",
    "BaselineId": 1234,
    "NodeName": "",
    "AlertTime": 1553524393000,
    "Buffer": 1200,
    "Assigner": "952795****",
    "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.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.-
500Invalid.Wkbench.ParameterThe specified parameters are invalid.The specified parameters are invalid.
500InternalError.UserId.MissingAn internal system error occurred. Try again later.-
500InternalError.Wkbench.ServiceErrorAn internal error occurred.An internal error occurred.
500Invalid.Wkbench.TopicNotExistThe topic does not exist.The topic does not exist.

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

Change history

Change timeSummary of changesOperation
No change history