/workflows/{workflow_id}/annotation
Lists a specific workflow.
Request
GET http://unravel-host
:3000/api/v1/workflows/{workflow_id}/annotation
Path parameters
Name | Description |
---|---|
| ID of workflow |
Query parameters
None.
Response body
Return code upon success: 200
Name | Type | Description |
---|---|---|
| array | JSON structure containing details of each run of the workflow |
| array | JSON structure containing a summary of metrics for each run |
Note
All timestamps are in Unix epoch time.
Examples
Request:
curl -X GET "http://myserver.com:3000/api/v1/workflows/annotation" -H "accept: application/json" -H "Authorization: JWT token
"
Response:
{ instanceCompare: { workflowIds: ["20180825T003618Z-8434469366206475039", "20180825T003706Z-8434469366206503807"} avgDuration: 27056.8 avgService: 0.1554950102167776 avgTotalDfsBytesRead: 298227334.8 avgTotalDfsBytesWritten: 1524.1 dtimes: [1535157378000, 1535157426000, 1535157475000, 1535157524000, 1535157572000, 1535157621000,] duration: [10881, 34708, 11218, 33382, 11173, 37431, 77868, 9720, 9671, 34516] maxDuration: 77868 ...... }, instances: [ { annotation: {@class: "com.unraveldata.annotation.WorkflowInstanceAnnotation", vcoreSeconds: 0, memorySeconds: 0,} dt: 1535157378000 hi: 0 id: "20180825T003618Z-8434469366206475039" nm: "wf-sla-mr-spark" signature: "unravel.workflow.name=wf-sla-mr-spark" ut: "20180825T003618Z" wc: [{ci: "job_1534794873154_4973", ct: "mapred", st: 1535157384745, et: 1535157373534} 0: {ci: "job_1534794873154_4973", ct: "mapred", st: 1535157384745, et: 1535157373534} 1: {ci: "application_1534794873154_4974", ct: "spark", st: 1535157384020, et: 1535157394901} ], }.... ] }