Retrieves parsed results from a data tracking task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:SearchDataTrackResult |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| OrderId |
integer |
Yes |
The ticket ID. You can call the ListOrders operation to query the ticket ID. |
420**** |
| FilterStartTime |
string |
No |
The start time for tracking data operations. The time must be in the yyyy-MM-dd HH:mm:ss format. |
2023-04-23 00:00:00 |
| FilterEndTime |
string |
No |
The end time for tracking data operations. The time must be in the yyyy-MM-dd HH:mm:ss format. |
2023-04-23 10:00:00 |
| FilterTableList |
array |
No |
The names of the tables for which you want to track data operations. |
|
|
string |
No |
The name of a table for which you want to track data operations. |
table2 |
|
| FilterTypeList |
array |
No |
The types of data operations that you want to track. |
|
|
string |
No |
A type of data operation that you want to track. |
UPDATE |
|
| ColumnFilter |
object |
No |
The condition to filter columns. |
|
| ColumnName |
string |
No |
The name of the column. |
c_payer_name |
| Operator |
string |
No |
The operator type for the filter condition. Valid values:
|
EQUAL |
| Value |
string |
No |
The value used in the filter condition. |
1 |
| BetweenStart |
string |
No |
The start value of the filter range. This parameter takes effect only when Operator is set to BETWEEN. |
1 |
| BetweenEnd |
string |
No |
The end value of the filter range. This parameter takes effect only when Operator is set to BETWEEN. |
10 |
| InList |
array |
No |
The IN list used in the filter condition. This parameter takes effect only when Operator is set to IN or NOT_IN. |
|
|
string |
No |
A value in the IN list. This parameter takes effect only when Operator is set to IN or NOT_IN. |
1 |
|
| Tid |
integer |
No |
The tenant ID. You can call the GetUserActiveTenant or ListUserTenants operation to query the tenant ID. |
62*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The request ID. |
0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931 |
| Success |
boolean |
Indicates whether the request was successful.
|
true |
| ErrorMessage |
string |
The error message returned if the request failed. |
UnknownError |
| ErrorCode |
string |
The error code returned if the request failed. |
UnknownError |
| TrackResult |
object |
The parsing result of the data tracking task. |
|
| TotalCount |
integer |
The total number of entries returned. |
109 |
| EventList |
array<object> |
The details of the event logs. |
|
|
object |
The details of an event log. |
||
| DataAfter |
array |
The data records after the data operations. |
|
|
string |
A data record after the data operations. |
1 |
|
| DataBefore |
array |
The data records before the data operations. |
|
|
string |
A data record before the data operations. |
2 |
|
| EventLength |
integer |
The length of the event content. Unit: bytes. |
4324 |
| EventTimestamp |
string |
The event time. |
2023-04-23 10:25:47 |
| EventType |
string |
The type of the event. Valid values:
|
UPDATE_ROWS |
| EventId |
integer |
The event ID. |
1 |
| RollSQL |
string |
The SQL statements used to roll back the data changes. |
-- Timestamp:2023-04-23 10:25:47 #1\r\nUPDATE `dc_test`.`tb_chunk_dml` SET `id`=1 , `gmt_create`='2021-09-30T00:00:00' , `content`='2023-03-30 14:51:50' , `c1`='2023-04-17 13:42:03' , `c_id`=1 , `c13425`='b\\'' , `c432532535`= null , `c1432`= null , `c143243253`= null , `c1432535`= null , `c43125325`= null , `c3425325`= null WHERE (`id`=1)" |
| TableInfoList |
array<object> |
The metadata of the tracked tables. |
|
|
array<object> |
The metadata of a tracked table. |
||
| SchemaName |
string |
The name of the database. |
prod_eb_vas |
| TableName |
string |
The name of the table. |
import_table_test1 |
| Columns |
array<object> |
The column details. |
|
|
object |
The details of a column. |
||
| ColumnName |
string |
The name of the column. |
basic_platform |
| ColumnPosition |
integer |
The position of the column. |
1 |
| ColumnType |
string |
The data type of the column. Examples: BIGINT, INT, and VARCHAR. |
BIGINT |
| Fictive |
boolean |
Indicates whether the column is a virtual column. Valid values:
|
true |
| Description |
string |
The description of the column. |
auto-description |
Examples
Success response
JSON format
{
"RequestId": "0C1CB646-1DE4-4AD0-B4A4-7D47DD52E931",
"Success": true,
"ErrorMessage": "UnknownError",
"ErrorCode": "UnknownError",
"TrackResult": {
"TotalCount": 109,
"EventList": [
{
"DataAfter": [
"1"
],
"DataBefore": [
"2"
],
"EventLength": 4324,
"EventTimestamp": "2023-04-23 10:25:47",
"EventType": "UPDATE_ROWS",
"EventId": 1,
"RollSQL": "-- Timestamp:2023-04-23 10:25:47 #1\\r\\nUPDATE `dc_test`.`tb_chunk_dml` SET `id`=1 , `gmt_create`='2021-09-30T00:00:00' , `content`='2023-03-30 14:51:50' , `c1`='2023-04-17 13:42:03' , `c_id`=1 , `c13425`='b\\\\'' , `c432532535`= null , `c1432`= null , `c143243253`= null , `c1432535`= null , `c43125325`= null , `c3425325`= null WHERE (`id`=1)\""
}
],
"TableInfoList": [
{
"SchemaName": "prod_eb_vas",
"TableName": "import_table_test1",
"Columns": [
{
"ColumnName": "basic_platform",
"ColumnPosition": 1,
"ColumnType": "BIGINT",
"Fictive": true
}
],
"Description": "auto-description"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.