Queries the details of a specified notification event.

Before you call this operation, make sure that the following conditions are met:

  • When you use an Alibaba Cloud SDK, make sure that the aliyun-sdk-core version is later than V4.3.3. We recommend that you use the latest version.
  • The SDK version for Database Autonomy Service (DAS) must be V1.0.2 or later.
  • When you use the SDK to call the DAS service, you must specify the region as cn-shanghai.
  • After your instance is connected to DAS, notification events such as snapshot capturing are triggered if the changes of database monitoring metrics are detected during DAS anomaly detection.
Note You can query the details of notification events only after the autonomy center is enabled. For more information, see Autonomy center.

Request parameters

Parameter Type Required Example Description
Action String No GetAutonomousNotifyEventDetail

The operation that you want to perform. Set the value to GetAutonomousNotifyEventDetail.

__context String No None

The hidden parameter.

InstanceId String No r-bp18ff4a195d****

The ID of the instance. On the Instance Monitoring page in the DAS console, you can view the IDs of different types of instances.

SpanId String No 7e7b2774-95b8-4fa3-bd9c-0ab47cb7****

The unique identifier of the event. You can call the GetAutonomousNotifyEvents operation to view SpanId in the response parameters.

Response parameters

Parameter Type Example Description
Code String 200

The returned status code.

Data String "Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true }

The list of detailed information, including the number of messages and the error codes.

Message String Successful

The returned message of the request.

Note If the request is successful, Successful is returned for this parameter. If the request fails, a request exception message such as an error code is returned.
RequestId String B6D17591-B48B-4D31-9CD6-9B9796B2****

The ID of the request.

Success String true

Indicates whether the request was successful.

  • true: The request was successful.
  • false: The request failed.

Examples

Sample requests

https://das.cn-shanghai.aliyuncs.com/?Action=GetAutonomousNotifyEventDetail
&InstanceId=r-bp18ff4a195d****
&SpanId=7e7b2774-95b8-4fa3-bd9c-0ab47cb7****
&<Common request parameters>

Sample success responses

XML format

<GetAutonomousNotifyEventDetailReponse>
  <RequestId>B6D17591-B48B-4D31-9CD6-9B9796B2270A</RequestId>
  <Message>error msg</Message>
  <Data></Data>
  <Code>200</Code>
  <Success>true</Success>
</GetAutonomousNotifyEventDetailReponse>

JSON format

{"RequestId":" B6D17591-B48B-4D31-9CD6-9B9796B2270A",
"Message":"Successful",
"Data":"  \"Data\": {     \"total\": 1,     \"list\":[...]   },   \"Code\": 200,   \"Success\": true   }",
"Code":"200",
"Success":"true"}

Error codes

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