tencent cloud



Last updated: 2023-04-12 15:42:53

1. API Description

Domain name for API request: dbbrain.tencentcloudapi.com.

This API is used to get the details of an instance exception diagnosis event.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeDBDiagEvent.
Version Yes String Common Params. The value used for this API: 2021-05-27.
Region No String Common Params. This parameter is not required for this API.
InstanceId Yes String Instance ID.
EventId No Integer Event ID, which can be obtained through the DescribeDBDiagHistory API.
Product No String Service type. Valid values: mysql (TencentDB for MySQL), cynosdb (TDSQL-C for MySQL). Default value: mysql.

3. Output Parameters

Parameter Name Type Description
DiagItem String Diagnosis item.
DiagType String Diagnosis type.
EventId Integer Event ID.
Explanation String Diagnosis event details. If there is no additional explanation information, the output will be empty.
Outline String Diagnosis summary.
Problem String Found problem.
Severity Integer Severity, which can be divided into 5 levels: 1 (Critical), 2 (Severe), 3 (Alarm), 4 (Reminder), 5 (healthy).
StartTime Timestamp Start time
Suggestions String Suggestions. If there are no suggestions, the output will be empty.
Metric String Reserved field.
Note: This field may return null, indicating that no valid values can be obtained.
EndTime Timestamp End time.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Example1 Getting diagnosis event details

Input Example

&<Common request parameters>

Output Example

    "Response": {
        "Suggestions": "[]",
        "DiagType": "Database snapshot",
        "EndTime": "2019-11-06 12:05:50",
        "RequestId": "78cf7bb1-0608-11ea-a9ef-2736f0f7f829",
        "Explanation": "[]",
        "StartTime": "2019-11-06 12:05:40",
        "Severity": 4,
        "EventId": 5,
        "Outline": "1 problem found during database health check",
        "Problem": "[{\"DataType\":\"title\",\"Data\":{\"Name\":\"Session snapshot\"}},{\"DataType\":\"title\",\"Data\":{\"Name\":\"Transaction snapshot\"}},{\"DataType\":\"title\",\"Data\":{\"Name\":\"InnoDB status snapshot\"}}]",
        "Metric": "",
        "DiagItem": "Health check"

5. Developer Resources


TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
AuthFailure Error with CAM signature/authentication.
FailedOperation Operation failed.
InternalError Internal error.
InvalidParameter Incorrect parameter.
InvalidParameterValue Incorrect parameter value.
LimitExceeded The quota limit is exceeded.
MissingParameter Missing parameter.
OperationDenied Operation denied.
OperationDenied.UserHasNoStrategy Error with CAM authentication.
ResourceNotFound The resource does not exist.
UnauthorizedOperation The operation is unauthorized.
UnknownParameter Unknown parameter.
UnsupportedOperation Unsupported operation.
Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support