Mengkueri event dari tugas AI.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ros:ListAITaskEvents |
list |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
string |
No |
Token paginasi yang digunakan di permintaan berikutnya untuk mengambil halaman hasil baru. Anda tidak perlu menentukan parameter ini untuk permintaan pertama. Anda harus menentukan token yang diperoleh dari kueri sebelumnya sebagai nilai NextToken. |
AAAAAdDWBF2****w== |
| MaxResults |
string |
No |
Jumlah maksimum hasil yang dikembalikan dari satu kueri saat parameter NextToken digunakan di kueri. Nilai valid: 1 hingga 100. Nilai default: 50. |
50 |
| TaskId |
string |
No |
ID tugas AI. |
t-asasas***** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
B288A0BE-D927-4888-B0F7-B35EF84B6E6F |
| NextToken |
string |
A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists. |
AAAAAdDWBF2****w== |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Success |
string |
Indicates 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 type of the agent that is used to execute the AI task. Valid values:
Valid values:
|
GenerateTemplateAgent |
| HandlerType |
string |
The type of the handler that is used to execute the task. Valid values:
Valid values:
|
ROSTemplateGenerator |
| HandlerProcessStatus |
string |
The execution state of the handler that process the AI task. Valid values:
Valid values:
|
RUNNING |
| EventData |
string |
The details of the event. |
Document template generator started. |
| CreateTime |
string |
The time when the event was created. The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ss format. The time is displayed in UTC. |
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 type of the AI task.
Valid values:
|
GenerateTemplate |
| TaskStatus |
string |
The state of the AI task.
Valid values:
|
RUNNING |
Contoh
Respons sukses
JSONformat
{
"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"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.