CreateSqlPatternCompareReport
Creates an SQL pattern comparison report.
Operation description
Compares two time windows and asynchronously generates an SQL pattern comparison report.
The start time of each window must be earlier than the end time, and the duration must not exceed 24 hours. Select windows with the same duration and similar business cycles.
The returned
ReportIdonly indicates that the request is accepted. CallDescribeSqlPatternCompareReportsto query the report status, and query the details whenDetailEnabledistrue.Only one report can be generated for the same instance at a time.
The report is valid for 7 days and is isolated by instance and Alibaba Cloud account.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:CreateSqlPatternCompareReport |
create |
*DBClusterLakeVersion
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the instance. |
cn-beijing |
| DBClusterId |
string |
Yes |
The ID of the AnalyticDB for MySQL instance. |
am-2ze1234567890**** |
| StartTime |
string |
Yes |
The start time of the first time window. The time is in the yyyy-MM-ddTHH:mmZ or yyyy-MM-ddTHH:mm:ssZ format and must be in UTC. |
2026-09-07T00:00Z |
| EndTime |
string |
Yes |
The end time of the first time window. The time is in the yyyy-MM-ddTHH:mmZ or yyyy-MM-ddTHH:mm:ssZ format and must be in UTC. |
2026-09-07T01:00Z |
| CompareStartTime |
string |
Yes |
The start time of the second time window. The time is in the yyyy-MM-ddTHH:mmZ or yyyy-MM-ddTHH:mm:ssZ format and must be in UTC. |
2026-09-08T00:00Z |
| CompareEndTime |
string |
Yes |
The end time of the second time window. The time is in the yyyy-MM-ddTHH:mmZ or yyyy-MM-ddTHH:mm:ssZ format and must be in UTC. |
2026-09-08T01:00Z |
| PatternType |
string |
Yes |
The report type. Valid values:
Valid values:
|
CHANGED |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response for creating a report. The report content is generated asynchronously. |
||
| RequestId |
string |
The request ID. |
9A1B2C3D-4E5F-6789-ABCD-0123456789AB |
| ReportId |
integer |
The ID of the newly created report. The returned value only indicates that the request is accepted. |
1001 |
Examples
Success response
JSON format
{
"RequestId": "9A1B2C3D-4E5F-6789-ABCD-0123456789AB",
"ReportId": 1001
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.