Queries the events of an AI task.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:ListAITaskEvents |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
string |
No |
The token that marks the position from which to start reading. If this parameter is left empty, the reading starts from the beginning. |
AAAAAdDWBF2****w== |
| MaxResults |
string |
No |
The maximum number of results to return for each call when you use the NextToken parameter for pagination. Valid values: 1 to 100. Default value: 50. |
50 |
| TaskId |
string |
No |
The ID of the AI task. |
t-asasas***** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
B288A0BE-D927-4888-B0F7-B35EF84B6E6F |
| NextToken |
string |
The token that indicates the position to which the current call has read. If this parameter is empty, all data has been read. |
AAAAAdDWBF2****w== |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Success |
string |
Specifies whether the call is successful. Valid values:
|
true |
| Code |
string |
The error code. |
Forbidden |
| Events |
array<object> |
The list of events. |
|
|
object |
The list of event objects. |
||
| AgentType |
string |
The type of the agent that processes the task. Valid values:
|
GenerateTemplateAgent |
| HandlerType |
string |
The type of the handler that executes the task. Valid values:
|
ROSTemplateGenerator |
| HandlerProcessStatus |
string |
The execution status of the handler that processes the task. Valid values:
|
RUNNING |
| EventData |
string |
The detailed information about the event. |
Document template generator started. |
| CreateTime |
string |
The creation time. The time is displayed in UTC and follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. |
2019-08-01T04:07:39 |
| EstimatedProcessingTime |
string |
The estimated execution time of the current handler. Unit: seconds. |
60 |
| TaskId |
string |
The ID of the AI task. |
t-asasas***** |
| TaskType |
string |
The type of the AI task. Valid values:
Valid values:
|
GenerateTemplate |
| TaskStatus |
string |
The current status of the AI task. Valid values:
Valid values:
|
RUNNING |
Examples
Success response
JSON format
{
"RequestId": "B288A0BE-D927-4888-B0F7-B35EF84B6E6F",
"NextToken": "AAAAAdDWBF2****w==",
"HttpStatusCode": 200,
"Success": "true",
"Code": "Forbidden",
"Events": [
{
"AgentType": "GenerateTemplateAgent",
"HandlerType": "ROSTemplateGenerator",
"HandlerProcessStatus": "RUNNING",
"EventData": "Document template generator started.",
"CreateTime": "2019-08-01T04:07:39",
"EstimatedProcessingTime": "60"
}
],
"TaskId": "t-asasas*****",
"TaskType": "GenerateTemplate",
"TaskStatus": "RUNNING"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.