GetTopic
Queries the details of an event.
Operation description
Prerequisites: Before you call this operation, activate DataWorks Enterprise Edition or Ultimate Edition. Set TopicId to the ID of an existing event in the target region. Do not use the sample values provided in the documentation.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TopicId |
integer |
Yes |
The ID of the event. You can call the ListTopics operation to obtain the ID. The sample value in the documentation is for format demonstration only. You can obtain a valid TopicId from the |
1234 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The unique ID of the request. You can use the ID to troubleshoot issues if an error occurs. |
0000-ABCD-EFGH-IJKLMNOPQ |
| ErrorMessage |
string |
The error message. |
The specified parameters are invalid. |
| ErrorCode |
string |
The error code. |
1031203110005 |
| Success |
boolean |
Indicates whether the call was successful. |
true |
| Data |
object |
The event details. |
|
| Owner |
string |
The Alibaba Cloud UID of the event owner. |
952795**** |
| TopicName |
string |
The name of the event. |
1234 error |
| BaselineStatus |
string |
The status of the baseline. Valid values: ERROR (abnormal), SAFE (safe), DANGROUS (warning), and OVER (breached). |
SAFE |
| ProjectId |
integer |
The ID of the workspace to which the node associated with the event belongs. |
123456 |
| NextAlertTime |
integer |
The timestamp of the next alert. |
1553524393000 |
| InstanceId |
integer |
The instance ID associated with the event. |
12345 |
| FixTime |
integer |
The timestamp when the event was recovered. |
1553524393000 |
| BaselineInGroupId |
integer |
The cycle number of the worst baseline instance. |
1 |
| BaselineBuffer |
integer |
The buffer of the worst baseline instance, in seconds. |
3600 |
| TopicType |
string |
The type of the event. Valid values: SLOW (slowdown) and ERROR (error). |
ERROR |
| TopicStatus |
string |
The status of the event. Valid values: IGNORE (ignored), NEW (new), FIXING (being processed), and RECOVER (recovered). |
FIXING |
| HappenTime |
integer |
The timestamp when the event occurred. A time difference may exist between when the event occurs and when it is detected. |
1553524393000 |
| DealTime |
integer |
The timestamp when the event was last processed. |
1553524393000 |
| DealUser |
string |
The Alibaba Cloud UID of the user who last processed the event. |
952795**** |
| BaselineName |
string |
The name of the baseline for the worst baseline instance. |
Baseline name |
| BaselineId |
integer |
The ID of the baseline for the worst baseline instance. |
1234 |
| NodeName |
string |
The name of the node associated with the event. |
Node name |
| AlertTime |
integer |
The timestamp of the first alert. |
1553524393000 |
| Buffer |
integer |
The buffer of the event, in seconds. |
1200 |
| Assigner |
string |
The Alibaba Cloud UID of the assignee. |
952795**** |
| TopicId |
integer |
The ID of the event. |
1234 |
| AddTime |
integer |
The timestamp when the event was detected. |
1553524393000 |
| NodeId |
integer |
The ID of the node associated with the event. |
1234 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "0000-ABCD-EFGH-IJKLMNOPQ",
"ErrorMessage": "The specified parameters are invalid.",
"ErrorCode": "1031203110005",
"Success": true,
"Data": {
"Owner": "952795****",
"TopicName": "1234 error",
"BaselineStatus": "SAFE",
"ProjectId": 123456,
"NextAlertTime": 1553524393000,
"InstanceId": 12345,
"FixTime": 1553524393000,
"BaselineInGroupId": 1,
"BaselineBuffer": 3600,
"TopicType": "ERROR",
"TopicStatus": "FIXING",
"HappenTime": 1553524393000,
"DealTime": 1553524393000,
"DealUser": "952795****",
"BaselineName": "Baseline name",
"BaselineId": 1234,
"NodeName": "Node name",
"AlertTime": 1553524393000,
"Buffer": 1200,
"Assigner": "952795****",
"TopicId": 1234,
"AddTime": 1553524393000,
"NodeId": 1234
}
}
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. | |
| 500 | Invalid.Wkbench.Parameter | The specified parameters are invalid. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 500 | InternalError.Wkbench.ServiceError | An internal error occurred. | An internal error occurred. |
| 500 | Invalid.Wkbench.TopicNotExist | The topic does not exist. | |
| 403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | |
| 429 | Throttling.Api.Risk | The request for this resource has exceeded your daily available limit. | |
| 429 | Throttling.System | The DataWorks system is busy. Try again later. | |
| 429 | Throttling.User | Your request is too frequent. Try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.