查询流水线运行统计
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
agentloop:GetPipelineStats |
none |
*Pipeline
|
无 | 无 |
请求语法
GET /agentspace/{agentSpace}/pipeline/{pipelineName}/stats HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| agentSpace |
string |
否 |
AgentSpace 名称 |
my-agent-space |
| pipelineName |
string |
否 |
流水线名称 |
my-pipeline |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| startTime |
integer |
否 |
统计窗口起始时间,Unix 秒,默认 now - 86400 |
1735574400 |
| endTime |
integer |
否 |
统计窗口结束时间,Unix 秒,默认 now |
1735660800 |
| granularity |
string |
否 |
统计粒度,枚举:Hour | Day | Week | Month,默认自动推断 |
Hour |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
响应数据 |
||
| requestId |
string |
请求 Id,用于排查问题时定位本次请求 |
9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M |
| pipelineName |
string |
流水线名称 |
my-pipeline |
| startTime |
integer |
统计窗口起始时间,Unix 秒 |
1735574400 |
| endTime |
integer |
统计窗口结束时间,Unix 秒 |
1735660800 |
| granularity |
string |
统计粒度 |
Hour |
| summary |
object |
聚合摘要 |
|
| totalRuns |
integer |
窗口内运行总数 |
44 |
| succeededRuns |
integer |
成功运行数 |
44 |
| failedRuns |
integer |
失败运行数 |
0 |
| cancelledRuns |
integer |
取消运行数 |
0 |
| successRate |
number |
成功率(0~1) |
1.0 |
| avgElapsedMs |
integer |
平均执行耗时,毫秒 |
2500 |
| totalProcessedRows |
integer |
处理总行数 |
1500000 |
| totalProcessedBytes |
integer |
处理总字节数 |
5368709120 |
| totalOutputRows |
integer |
输出总行数 |
1200000 |
| totalOutputBytes |
integer |
输出总字节数 |
3221225472 |
| committedWatermark |
integer |
已提交水位线,Unix 秒 |
1735660800 |
| scheduleLagSeconds |
integer |
调度滞后秒数(now − watermark) |
120 |
| timeSeries |
array<object> |
时间序列数据 |
|
|
object |
时间序列数据点 |
||
| timestamp |
integer |
时间桶起始时间戳,Unix 秒 |
1735574400 |
| runs |
integer |
运行数 |
5 |
| succeededRuns |
integer |
成功运行数 |
5 |
| processedRows |
integer |
处理行数 |
100000 |
| processedBytes |
integer |
处理字节数 |
536870912 |
| outputRows |
integer |
输出行数 |
80000 |
| outputBytes |
integer |
输出字节数 |
322122547 |
| avgElapsedMs |
integer |
平均执行耗时,毫秒 |
2500 |
示例
正常返回示例
JSON格式
{
"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
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。