Queries the event overview of a database instance.

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 that you use must be V1.0.2 or later.
  • If you use an SDK to call DAS API operations, you must set the Region parameter to cn-shanghai.
  • After your database instance is connected to DAS, notification events such as snapshot capturing are triggered if DAS detects abnormal changes in metrics.
Note You can query the details about notification events only if the autonomy service is enabled for the database instance. For more information, see Autonomy center.

Request parameters

Parameter Type Required Example Description
Action String Yes GetEventOverview

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

InstanceId String Yes rm-18ff4a195d****

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

StartTime String Yes 1568269711000

The beginning of the time range to query. Specify the time in the UNIX timestamp format. Unit: milliseconds.

EndTime String Yes 15682887991001

The end of the time range to query. Specify the time in the UNIX timestamp format. Unit: milliseconds.

Note The end time must be later than the start time.
MinLevel String No Notice

The minimum severity level of the events that you want to query. Only the events that are at the specified minimum severity level or a higher severity level are returned. The following values specify the severity levels in ascending order. Valid values:

  • Notice: Events at this level trigger notifications.
  • Optimization: Events at this level trigger optimizations.
  • Warn: Events at this level trigger warnings.
  • Critical: Events at this level are critical events.
TicketId String No 0005PYG**

The ID of the ticket.

Tags String No key1:value1

The tags of the events that you want to query.

Response parameters

Parameter Type Example Description
Message String Successful

The returned message that indicates the result of the request.

Note If the request is successful, Successful is returned. If the request fails, an error message that includes 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 details of the response, such as the HTTP status code and the number of returned entries.

Code String 200

The HTTP status code.

Success String true

Indicates whether the request is successful.

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


Sample requests

&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK

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

JSON format

HTTP/1.1 200 OK

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