1"use strict";(self.webpackChunkmarquez_website_docs=self.webpackChunkmarquez_website_docs||[]).push([[5067],{74455:(e,a,n)=>{n.r(a),n.d(a,{assets:()=>r,contentTitle:()=>d,default:()=>b,frontMatter:()=>c,metadata:()=>l,toc:()=>m});var t=n(87462),i=(n(67294),n(3905)),s=n(26389),p=n(94891),o=(n(75190),n(47507),n(24310),n(63303),n(75035),n(85162));const c={id:"record-lineage",title:"Record a single lineage event",description:"Receive, process, and store lineage metadata using the [OpenLineage](https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json) standard.",sidebar_label:"Record a single lineage event",hide_title:!0,hide_table_of_contents:!0,api:{operationId:"recordLineage",description:"Receive, process, and store lineage metadata using the [OpenLineage](https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json) standard.",tags:["Lineage"],requestBody:{content:{"application/json":{schema:{example:{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"},title:"LineageEvent"}}}},responses:{200:{description:"OK"}},method:"post",path:"/lineage",servers:[{url:"http://localhost:5000/api/v1",description:"Local API server"}],jsonRequestBodyExample:{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"},info:{title:"Marquez",version:"0.50.0",description:"Marquez is an open source **metadata service** for the **collection**, **aggregation**, and **visualization** of a data ecosystem's metadata.",license:{name:"Apache 2.0",url:"http://www.apache.org/licenses/LICENSE-2.0.html"}},postman:{name:"Record a single lineage event",description:{content:"Receive, process, and store lineage metadata using the [OpenLineage](https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json) standard.",type:"text/plain"},url:{path:["lineage"],host:["{{baseUrl}}"],query:[],variable:[]},header:[{key:"Content-Type",value:"application/json"}],method:"POST",body:{mode:"raw",raw:'""',options:{raw:{language:"json"}}}}},sidebar_class_name:"post api-method",info_path:"docs/api/marquez",custom_edit_url:null},d=void 0,l={unversionedId:"api/record-lineage",id:"api/record-lineage",title:"Record a single lineage event",description:"Receive, process, and store lineage metadata using the [OpenLineage](https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json) standard.",source:"@site/docs/api/record-lineage.api.mdx",sourceDirName:"api",slug:"/api/record-lineage",permalink:"/docs/api/record-lineage",draft:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"record-lineage",title:"Record a single lineage event",description:"Receive, process, and store lineage metadata using the [OpenLineage](https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json) standard.",sidebar_label:"Record a single lineage event",hide_title:!0,hide_table_of_contents:!0,api:{operationId:"recordLineage",description:"Receive, process, and store lineage metadata using the [OpenLineage](https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json) standard.",tags:["Lineage"],requestBody:{content:{"application/json":{schema:{example:{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"},title:"LineageEvent"}}}},responses:{200:{description:"OK"}},method:"post",path:"/lineage",servers:[{url:"http://localhost:5000/api/v1",description:"Local API server"}],jsonRequestBodyExample:{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"},info:{title:"Marquez",version:"0.50.0",description:"Marquez is an open source **metadata service** for the **collection**, **aggregation**, and **visualization** of a data ecosystem's metadata.",license:{name:"Apache 2.0",url:"http://www.apache.org/licenses/LICENSE-2.0.html"}},postman:{name:"Record a single lineage event",description:{content:"Receive, process, and store lineage metadata using the [OpenLineage](https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json) standard.",type:"text/plain"},url:{path:["lineage"],host:["{{baseUrl}}"],query:[],variable:[]},header:[{key:"Content-Type",value:"application/json"}],method:"POST",body:{mode:"raw",raw:'""',options:{raw:{language:"json"}}}}},sidebar_class_name:"post api-method",info_path:"docs/api/marquez",custom_edit_url:null},sidebar:"tutorialSidebar",previous:{title:"Create a tag",permalink:"/docs/api/put-tag"},next:{title:"Query all datasets and jobs",permalink:"/docs/api/search"}}
1,r={},m=[{value:"Record a single lineage event",id:"record-a-single-lineage-event",level:2}],g={toc:m},u="wrapper";function b(e){let{components:a,...n}=e;return(0,i.kt)(u,(0,t.Z)({},g,n,{components:a,mdxType:"MDXLayout"}),(0,i.kt)("h2",{id:"record-a-single-lineage-event"},"Record a single lineage event"),(0,i.kt)("p",null,"Receive, process, and store lineage metadata using the ",(0,i.kt)("a",{parentName:"p",href:"https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json"},"OpenLineage")," standard."),(0,i.kt)(p.Z,{mdxType:"MimeTabs"},(0,i.kt)(o.Z,{label:"application/json",value:"application/json-schema",mdxType:"TabItem"},(0,i.kt)("details",{style:{},"data-collapsed":!1,open:!0},(0,i.kt)("summary",{style:{textAlign:"left"}},(0,i.kt)("strong",null,"Request Body")),(0,i.kt)("div",{style:{textAlign:"left",marginLeft:"1rem"}}),(0,i.kt)("ul",{style:{marginLeft:"1rem"}},"any")))),(0,i.kt)("div",null,(0,i.kt)(s.Z,{mdxType:"ApiTabs"},(0,i.kt)(o.Z,{label:"200",value:"200",mdxType:"TabItem"},(0,i.kt)("div",null,(0,i.kt)("p",null,"OK")),(0,i.kt)("div",null)))))}b.isMDXComponent=!0}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.