获取执行历史GetExecutionHistory
更新时间:2024-07-05
接口描述
- 本接口用于查询用户工作流执行历史。
请求结构
GET /v1/execution/history HTTP/1.1
Host: xflow.bj.baidubce.com
Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必须 | 参数位置 | 描述 |
---|---|---|---|---|
flowName | string | 是 | Query参数 | 工作流名称 |
executionName | string | 是 | Query参数 | 执行的名字 |
limit | int | 是 | Query参数 | 读取的历史记录的条数 |
响应头域
除公共头域,无其它特殊头域。
响应参数
参数名称 | 类型 | 描述 |
---|---|---|
events | Event数组 | 执行历史列表 |
请求示例
GET /v1/execution/history?flowName=testWorkFlow&executionName=testExecutionName&limit=50 HTTP/1.1
Authorization: Authorization string
Host: xflow.bj.baidubce.com
响应示例
HTTP/1.1 200
Content-type: application/json
{
"events":[
{
"costTime":86,
"eventDetail":"{\"input\":{}}",
"eventId":"1",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"",
"time":1640608954782,
"type":"ExecutionStarted"
},
{
"costTime":102,
"eventDetail":"{\"input\":{}}",
"eventId":"2",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"makeData",
"time":1640608954798,
"type":"StatePassEntered"
},
{
"costTime":116,
"eventDetail":"{\"output\":{\"hello\":\"world\"}}",
"eventId":"3",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"makeData",
"time":1640608954812,
"type":"StatePassExited"
},
{
"costTime":127,
"eventDetail":"{\"input\":{\"hello\":\"world\"}}",
"eventId":"4",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"demoSwitch",
"time":1640608954823,
"type":"StateSwitchEntered"
},
{
"costTime":140,
"eventDetail":"{\"output\":{\"hello\":\"world\"}}",
"eventId":"5",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"demoSwitch",
"time":1640608954836,
"type":"StateSwitchExited"
},
{
"costTime":154,
"eventDetail":"{\"input\":{\"hello\":\"world\"}}",
"eventId":"6",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"startExec",
"time":1640608954850,
"type":"StateParallelEntered"
},
{
"costTime":165,
"eventDetail":"{\"input\":{\"hello\":\"world\"}}",
"eventId":"7",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"startExec",
"time":1640608954861,
"type":"StateParallelStarted"
},
{
"costTime":181,
"eventDetail":"{\"input\":{\"hello\":\"world\"}}",
"eventId":"8",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"wait1s",
"time":1640608954877,
"type":"StateWaitEntered"
},
{
"costTime":181,
"eventDetail":"{\"input\":{\"hello\":\"world\"}}",
"eventId":"9",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"wait3s",
"time":1640608954877,
"type":"StateWaitEntered"
},
{
"costTime":1196,
"eventDetail":"{\"output\":{\"hello\":\"world\"}}",
"eventId":"10",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"wait1s",
"time":1640608955892,
"type":"StateWaitExited"
},
{
"costTime":1215,
"eventDetail":"{\"input\":{\"hello\":\"world\"}}",
"eventId":"11",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"throwSucceed",
"time":1640608955911,
"type":"StateSucceedEntered"
},
{
"costTime":1231,
"eventDetail":"{\"output\":{\"hello\":\"world\"}}",
"eventId":"12",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"throwSucceed",
"time":1640608955927,
"type":"StateSucceedExited"
},
{
"costTime":3192,
"eventDetail":"{\"output\":{\"hello\":\"world\"}}",
"eventId":"13",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"wait3s",
"time":1640608957888,
"type":"StateWaitExited"
},
{
"costTime":3207,
"eventDetail":"{\"output\":{\"hello\":\"world\"}}",
"eventId":"14",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"startExec",
"time":1640608957903,
"type":"StateParallelSucceed"
},
{
"costTime":3220,
"eventDetail":"{\"output\":{\"hello\":\"world\"}}",
"eventId":"15",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"startExec",
"time":1640608957916,
"type":"StateParallelExited"
},
{
"costTime":3232,
"eventDetail":"{\"output\":{}}",
"eventId":"16",
"executionId":"c7ac82ae14ef42d1a4ffa3b2ececa17f:comb-test:2a51a4d7-d843-4c0b-a945-d322f359c954",
"stateName":"",
"time":1640608957928,
"type":"ExecutionSucceed"
}
],
"executionName":"2a51a4d7-d843-4c0b-a945-d322f359c954"
}