Skip to main content

Record a single lineage event

Receive, process, and store lineage metadata using the OpenLineage standard.

Request Body
    any
Responses

OK

POST /lineage

Request

Base URL
http://localhost:5000/api/v1
Body
{
"eventType": "COMPLETE",
"eventTime": "2019-05-09T19:49:24.201361Z",
"run": {
"runId": "d46e465b-d358-4d32-83d4-df660ff614dd"
},
"job": {
"namespace": "my-namespace",
"name": "my-job"
},
"outputs": [
{
"namespace": "my-namespace",
"name": "my-output",
"facets": {
"schema": {
"_producer": "https://github.com/OpenLineage/OpenLineage/blob/v1-0-0/client",
"_schemaURL": "https://github.com/OpenLineage/OpenLineage/blob/v1-0-0/spec/OpenLineage.json#/definitions/SchemaDatasetFacet",
"fields": [
{
"name": "a",
"type": "INTEGER"
},
{
"name": "b",
"type": "TIMESTAMP"
},
{
"name": "c",
"type": "INTEGER"
},
{
"name": "d",
"type": "INTEGER"
}
]
}
}
}
],
"producer": "https://github.com/OpenLineage/OpenLineage/blob/v1-0-0/client"
}
curl / cURL
curl -L -X POST 'http://localhost:5000/api/v1/lineage' \
-H 'Content-Type: application/json' \
--data-raw '{
"eventType": "COMPLETE",
"eventTime": "2019-05-09T19:49:24.201361Z",
"run": {
"runId": "d46e465b-d358-4d32-83d4-df660ff614dd"
},
"job": {
"namespace": "my-namespace",
"name": "my-job"
},
"outputs": [
{
"namespace": "my-namespace",
"name": "my-output",
"facets": {
"schema": {
"_producer": "https://github.com/OpenLineage/OpenLineage/blob/v1-0-0/client",
"_schemaURL": "https://github.com/OpenLineage/OpenLineage/blob/v1-0-0/spec/OpenLineage.json#/definitions/SchemaDatasetFacet",
"fields": [
{
"name": "a",
"type": "INTEGER"
},
{
"name": "b",
"type": "TIMESTAMP"
},
{
"name": "c",
"type": "INTEGER"
},
{
"name": "d",
"type": "INTEGER"
}
]
}
}
}
],
"producer": "https://github.com/OpenLineage/OpenLineage/blob/v1-0-0/client"
}'