GetPipelineStats
Queries pipeline run statistics.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
agentloop:GetPipelineStats |
none |
*Pipeline
|
None | None |
Request syntax
GET /agentspace/{agentSpace}/pipeline/{pipelineName}/stats HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| agentSpace |
string |
No |
The AgentSpace name. |
my-agent-space |
| pipelineName |
string |
No |
The pipeline name. |
my-pipeline |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| startTime |
integer |
No |
The start time of the statistical window in UNIX seconds. Default value: now - 86400. |
1735574400 |
| endTime |
integer |
No |
The end time of the statistical window in UNIX seconds. Default value: now. |
1735660800 |
| granularity |
string |
No |
The statistical granularity. Valid values: Hour, Day, Week, and Month. Default value: automatically inferred. |
Hour |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| requestId |
string |
The request ID, which is used to locate the request during troubleshooting. |
9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M |
| pipelineName |
string |
The pipeline name. |
my-pipeline |
| startTime |
integer |
The start time of the statistical window in UNIX seconds. |
1735574400 |
| endTime |
integer |
The end time of the statistical window in UNIX seconds. |
1735660800 |
| granularity |
string |
The statistical granularity. |
Hour |
| summary |
object |
The aggregation summary. |
|
| totalRuns |
integer |
The total number of runs within the window. |
44 |
| succeededRuns |
integer |
The number of successful runs. |
44 |
| failedRuns |
integer |
The number of failed runs. |
0 |
| cancelledRuns |
integer |
The number of canceled runs. |
0 |
| successRate |
number |
The success rate, ranging from 0 to 1. |
1.0 |
| avgElapsedMs |
integer |
The average execution duration in milliseconds. |
2500 |
| totalProcessedRows |
integer |
The total number of processed rows. |
1500000 |
| totalProcessedBytes |
integer |
The total number of processed bytes. |
5368709120 |
| totalOutputRows |
integer |
The total number of output rows. |
1200000 |
| totalOutputBytes |
integer |
The total number of output bytes. |
3221225472 |
| committedWatermark |
integer |
The committed watermark in UNIX seconds. |
1735660800 |
| scheduleLagSeconds |
integer |
The scheduling lag in seconds, calculated as now minus the watermark. |
120 |
| timeSeries |
array<object> |
The time series data. |
|
|
object |
The time series data points. |
||
| timestamp |
integer |
The start timestamp of the time bucket in UNIX seconds. |
1735574400 |
| runs |
integer |
The number of runs. |
5 |
| succeededRuns |
integer |
The number of successful runs. |
5 |
| processedRows |
integer |
The number of processed rows. |
100000 |
| processedBytes |
integer |
The number of processed bytes. |
536870912 |
| outputRows |
integer |
The number of output rows. |
80000 |
| outputBytes |
integer |
The number of output bytes. |
322122547 |
| avgElapsedMs |
integer |
The average execution duration in milliseconds. |
2500 |
Examples
Success response
JSON format
{
"requestId": "9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M",
"pipelineName": "my-pipeline",
"startTime": 1735574400,
"endTime": 1735660800,
"granularity": "Hour",
"summary": {
"totalRuns": 44,
"succeededRuns": 44,
"failedRuns": 0,
"cancelledRuns": 0,
"successRate": 1,
"avgElapsedMs": 2500,
"totalProcessedRows": 1500000,
"totalProcessedBytes": 5368709120,
"totalOutputRows": 1200000,
"totalOutputBytes": 3221225472,
"committedWatermark": 1735660800,
"scheduleLagSeconds": 120
},
"timeSeries": [
{
"timestamp": 1735574400,
"runs": 5,
"succeededRuns": 5,
"processedRows": 100000,
"processedBytes": 536870912,
"outputRows": 80000,
"outputBytes": 322122547,
"avgElapsedMs": 2500
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.