ListOptimizeRuns
Queries the run records of a specified optimization task by using paging. Full result references and frozen outputs are retrieved by calling GetOptimizeRun.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:ListOptimizeRuns |
list |
*OptimizeTask
|
None | None |
Request syntax
GET /agentspace/{agentSpace}/optimizetasks/{optimizeTaskName}/runs HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| agentSpace |
string |
No |
The name of the AgentSpace. |
my-agent-space |
| optimizeTaskName |
string |
No |
The name of the optimization task. |
efficiency-analysis |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| status |
string |
No |
The status used to filter results. |
Succeeded |
| windowStartTimeBegin |
integer |
No |
The lower bound of the window start time, in UNIX seconds. |
1786432688 |
| windowStartTimeEnd |
integer |
No |
The upper bound of the window start time, in UNIX seconds. |
1786432690 |
| nextToken |
string |
No |
The pagination token. |
MTIzNDU2Nzg5MA== |
| maxResults |
integer |
No |
The maximum number of entries to return. Default value: 20. Maximum value: 100. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The list of optimization task runs. |
||
| requestId |
string |
The request ID. |
9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M |
| nextToken |
string |
The token for the next page. |
MTIzNDU2Nzg5MA== |
| maxResults |
integer |
The maximum number of entries per page. |
20 |
| totalCount |
integer |
The total number of entries. |
1 |
| optimizeRuns |
array<object> |
The list of run instances. |
|
|
array<object> |
The optimization task run instance. |
||
| optimizeRunId |
string |
The ID of the run instance. |
or-20260812-0001 |
| optimizeTaskName |
string |
The name of the optimization task. |
efficiency-analysis |
| type |
string |
The snapshot of the task type. |
EfficiencyAnalysis |
| status |
string |
The execution status. |
Succeeded |
| triggerType |
string |
The trigger type. |
Scheduled |
| windowStartTime |
integer |
The start time of the analysis window, in UNIX seconds. |
1786432688 |
| windowEndTime |
integer |
The end time of the analysis window, in UNIX seconds. |
1786432690 |
| trajectoryCount |
integer |
The number of analyzed trajectories. |
100 |
| attemptCount |
integer |
The number of executed attempts. |
1 |
| maxAttempts |
integer |
The maximum number of attempts. |
3 |
| errorCode |
string |
The error code. |
InternalError |
| errorMessage |
string |
The error message. |
The optimize run failed. |
| currentStage |
string |
The current execution stage. |
attribution |
| progress |
object |
The current execution progress. The fields are defined by the task type. |
{ "total": 1469, "skipped": 2, "processed": 370, "succeeded": 368 } |
|
any |
The value of a single field in the current execution progress. The fields are defined by the task type. This object can be empty if no progress information is provided. |
{ "total": 1469, "skipped": 2, "processed": 370, "succeeded": 368 } |
|
| extra |
object |
The execution summary and finite-state information. Full result references, frozen outputs, and publish receipts are retrieved by calling GetOptimizeRun. |
{ "inputSelection": "trigger-re", "inputSelectorHash": "sha256:43cfdbfc0260d11d3491c4987478a1a0e9966dda88*************", "sourceTrajectoryScanSkipped": true, "featureTriggerTrajectoryCount": 1011, "incompleteTriggerTrajectoryCount": 0 } |
|
any |
The value of a single field in the run type-related information. For example, preview indicates whether the run is a dry run. |
{ "inputSelection": "trigger-re", "inputSelectorHash": "sha256:43cfdbfc0260d11d3491c4987478a1a0e9966dda88*************", "sourceTrajectoryScanSkipped": true, "featureTriggerTrajectoryCount": 1011, "incompleteTriggerTrajectoryCount": 0 } |
|
| createTime |
string |
The creation time. |
2026-08-12T10:00:00Z |
| startTime |
string |
The first start time. |
2026-08-12T10:00:01Z |
| finishTime |
string |
The completion time. |
2026-08-12T10:01:00Z |
Examples
Success response
JSON format
{
"requestId": "9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M",
"nextToken": "MTIzNDU2Nzg5MA==",
"maxResults": 20,
"totalCount": 1,
"optimizeRuns": [
{
"optimizeRunId": "or-20260812-0001",
"optimizeTaskName": "efficiency-analysis",
"type": "EfficiencyAnalysis",
"status": "Succeeded",
"triggerType": "Scheduled",
"windowStartTime": 1786432688,
"windowEndTime": 1786432690,
"trajectoryCount": 100,
"attemptCount": 1,
"maxAttempts": 3,
"errorCode": "InternalError",
"errorMessage": "The optimize run failed.",
"currentStage": "attribution",
"progress": {
"key": "{\n\t\"total\": 1469,\n\t\"skipped\": 2,\n\t\"processed\": 370,\n\t\"succeeded\": 368\n}"
},
"extra": {
"key": "{\n\t\"inputSelection\": \"trigger-re\",\n\t\"inputSelectorHash\": \"sha256:43cfdbfc0260d11d3491c4987478a1a0e9966dda88*************\",\n\t\"sourceTrajectoryScanSkipped\": true,\n\t\"featureTriggerTrajectoryCount\": 1011,\n\t\"incompleteTriggerTrajectoryCount\": 0\n}"
},
"createTime": "2026-08-12T10:00:00Z",
"startTime": "2026-08-12T10:00:01Z",
"finishTime": "2026-08-12T10:01:00Z"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.