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 for the next page of results. Leave empty for the first request. Set to the NextToken value from the previous response. |
AAAAAdDWBF2****w== |
| MaxResults |
string |
No |
The maximum number of results per page when NextToken is used 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 |
The response parameters. |
||
| RequestId |
string |
The request ID. |
B288A0BE-D927-4888-B0F7-B35EF84B6E6F |
| NextToken |
string |
The token for the next page of results. Empty if no more pages exist. |
AAAAAdDWBF2****w== |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Success |
string |
Whether the request was successful. Valid values:
|
true |
| Code |
string |
The error code. |
Forbidden |
| Events |
array<object> |
The events. |
|
|
object |
The event. |
||
| AgentType |
string |
The agent type for the AI task. Valid values:
Valid values:
|
GenerateTemplateAgent |
| HandlerType |
string |
The handler type for the task. Valid values:
Valid values:
|
ROSTemplateGenerator |
| HandlerProcessStatus |
string |
The handler execution status. Valid values:
Valid values:
|
RUNNING |
| EventData |
string |
The details of the event. |
Document template generator started. |
| CreateTime |
string |
The event creation time in UTC. Format: YYYY-MM-DDThh:mm:ss (ISO 8601). |
2019-08-01T04:07:39 |
| EstimatedProcessingTime |
string |
The estimated execution time of the handler. Unit: seconds. |
60 |
| TaskId |
string |
The ID of the AI task. |
t-asasas***** |
| TaskType |
string |
The AI task type.
Valid values:
|
GenerateTemplate |
| TaskStatus |
string |
The AI task status.
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.