Queries the details about 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 version of Database Autonomy Service (DAS) SDK must be V1.0.2 or later.
  • When you call this operation to use DAS, you must specify cn-shanghai as the region.
  • 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 about notification events only if 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

A hidden parameter.

InstanceId String No r-bp18ff4a195d****

The ID of the instance. On the Instance Monitoring page in the DAS console, you can obtain 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 query the unique identifier. The SpanId response parameter indicates the unique identifier.

Response parameters

Parameter Type Example Description
Message String Successful

The message returned for the request.

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

The ID of the request.

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

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

Code String 200

The returned status code.

Success String true

Indicates whether the request is successful. Valid values:

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

Examples

Sample requests

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

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<GetAutonomousNotifyEventDetailResponse>
    <Message>Successful</Message>
    <RequestId>B6D17591-B48B-4D31-9CD6-9B9796B2****</RequestId>
    <Data>"Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true }</Data>
    <Code>200</Code>
    <Success>true</Success>
</GetAutonomousNotifyEventDetailResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Message" : "Successful",
  "RequestId" : "B6D17591-B48B-4D31-9CD6-9B9796B2****",
  "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.