Queries the details about notification events.

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

  • If you use an Alibaba Cloud SDK, the version of aliyun-sdk-core must be 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.
  • If you use an SDK to call the DAS service, you must set the region to cn-shanghai.
  • After your database instance is connected to DAS, notification events such as snapshot capturing are triggered if the anomaly detection feature of DAS detects changes to database monitoring metrics.
Note You can query the details about notification events only if the autonomy center is enabled for the database instance. For more information, see Autonomy center.

Request parameters

Parameter Type Required Example Description
Action String Yes GetAutonomousNotifyEventContent

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

__context String No None

A hidden parameter.

InstanceId String No rm-18ff4a195d****

The ID of the database instance. You can call the DescribeDBInstances operation to query the database instance ID.

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 was successful, Successful was returned. If the request failed, an error message that contains an error code was returned.
RequestId String B6D17591-B48B-4D31-9CD6-9B9796B2****

The ID of the request.

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

The list of detailed information.

Code String 200

The returned status code.

Success String true

Indicates whether the request was successful. Valid values:

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

Examples

Sample requests

http(s)://das.cn-shanghai.aliyuncs.com/?Action=GetAutonomousNotifyEventContent
&InstanceId=rm-18ff4a195d****
&SpanId=7e7b2774-95b8-4fa3-bd9c-0ab47cb7****
&Common request parameters

Sample success responses

XML format

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

<GetAutonomousNotifyEventContentResponse>
    <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>
</GetAutonomousNotifyEventContentResponse>

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"
}

Errors codes

HTTP status code Error code Error message Description
400 InvalidParams The request parameters are invalid. The error message returned because the specified request parameters are invalid.

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