ListTaskInstanceOperationLogs
Retrieves a paginated list of operation logs for a specified task instance.
Operation description
You must purchase DataWorks Basic Edition or later to use this API.
You can query only operation logs from the past 31 days.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The ID of the task instance. You can obtain the ID from the PagingInfo.TaskInstances[].Id parameter returned by the ListTaskInstances operation. |
1234 |
| Date |
integer |
No |
The date for which you want to query operation logs. Specify a UNIX timestamp in milliseconds. The query is performed on a daily basis. By default, the operation logs for the current day are queried. You can query operation logs from the past 31 days. |
1710239005403 |
| PageSize |
integer |
No |
The number of entries per page. Default value: 10. |
10 |
| PageNumber |
integer |
No |
The page number. Pages start from 1. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. You can use the ID to locate logs and troubleshoot issues. |
22C97E95-F023-56B5-8852-B1A77A1**** |
| PagingInfo |
object |
The pagination information. |
|
| OperationLogs |
array<object> |
The list of operation logs. |
|
|
object |
|||
| User |
string |
The ID of the account that performed the operation. |
1000 |
| CreateTime |
integer |
The time when the operation was performed. The value is a UNIX timestamp in milliseconds. |
1710239005403 |
| OperationSeq |
integer |
The sequence number of the operation. |
1111 |
| OperationContent |
string |
The content of the operation. |
Freeze tasks |
| TaskInstanceId |
integer |
The ID of the task instance on which the operation was performed. |
1234 |
| TotalCount |
integer |
The total number of operation logs for the task instance on the specified date. |
100 |
| PageSize |
integer |
The number of entries per page. |
10 |
| PageNumber |
integer |
The page number. |
1 |
Examples
Success response
JSON format
{
"RequestId": "22C97E95-F023-56B5-8852-B1A77A1****\n",
"PagingInfo": {
"OperationLogs": [
{
"User": "1000\n",
"CreateTime": 1710239005403,
"OperationSeq": 1111,
"OperationContent": "Freeze tasks",
"TaskInstanceId": 1234
}
],
"TotalCount": 100,
"PageSize": 10,
"PageNumber": 1
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.