Post runEvent
POST/lineage
Updates a run state for a job. When authorization is enabled, job.namespace
identifies the Gravitino metalake (organization), and every input and output
dataset namespace must match it. Dataset names must be Gravitino metadata full
names. The optional datasetType facet defaults to TABLE; supported values are
TABLE, VIEW, FILE, FILESET, MODEL, and TOPIC.
Inputs and outputs both require metadata visibility because this endpoint records
producer-reported lineage rather than attesting underlying read or write execution.
RunEvents without datasets require only metalake membership. Unsupported or external
dataset identifiers are rejected when authorization is enabled. When authorization
is disabled, generic OpenLineage namespaces remain supported.
Request
- application/json
Body
- MOD1
- MOD1
Array [
- MOD1
- MOD1
]
Array [
- MOD1
- MOD1
]
the time the event occurred at
URI identifying the producer of this metadata. For example this could be a git url with a given tag or sha
The JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this RunEvent
Possible values: [START, RUNNING, COMPLETE, ABORT, FAIL, OTHER]
the current transition of the run state. It is required to issue 1 START event and 1 of [ COMPLETE, ABORT, FAIL ] event per run. Additional events with OTHER eventType can be added to the same run. For example to send additional metadata after the run is complete
run
object
required
The globally unique ID of the run associated with the job.
facets
object
The run facets.
anyOf
property name*
RunFacet
A Run Facet
URI identifying the producer of this metadata. For example this could be a git url with a given tag or sha
The JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet
A Run Facet
job
object
required
The namespace containing that job
The unique name for that job within that namespace
facets
object
The job facets.
anyOf
property name*
JobFacet
A Job Facet
URI identifying the producer of this metadata. For example this could be a git url with a given tag or sha
The JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet
set to true to delete a facet
A Job Facet
inputs
object[]
The set of input datasets.
The namespace containing that dataset
The unique name for that dataset within that namespace
facets
object
The facets for this dataset
anyOf
property name*
DatasetFacet
A Dataset Facet
URI identifying the producer of this metadata. For example this could be a git url with a given tag or sha
The JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet
set to true to delete a facet
A Dataset Facet
inputFacets
object
The input facets for this dataset.
anyOf
property name*
InputDatasetFacet
An Input Dataset Facet
URI identifying the producer of this metadata. For example this could be a git url with a given tag or sha
The JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet
An Input Dataset Facet
outputs
object[]
The set of output datasets.
The namespace containing that dataset
The unique name for that dataset within that namespace
facets
object
The facets for this dataset
anyOf
property name*
DatasetFacet
A Dataset Facet
URI identifying the producer of this metadata. For example this could be a git url with a given tag or sha
The JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet
set to true to delete a facet
A Dataset Facet
outputFacets
object
The output facets for this dataset
anyOf
property name*
OutputDatasetFacet
An Output Dataset Facet
URI identifying the producer of this metadata. For example this could be a git url with a given tag or sha
The JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this facet
An Output Dataset Facet
Responses
- 201
- 400
- 403
- 429
- 5xx
Created
Indicates a bad request error. It could be caused by an unexpected request body format or other forms of request validation failure, such as invalid json. Usually serves application/json content, although in some cases simple text/plain content might be returned by the server's middleware.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- Example
Schema
Possible values: >= 1000 and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1003,
"type": "BadRequestException",
"message": "Malformed request"
}
Forbidden - The caller cannot access at least one input or output dataset.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
Schema
Possible values: >= 1000 and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
Too Many Requests
A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- Example
Schema
Possible values: >= 1000 and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1002,
"type": "RuntimeException",
"message": "Internal Server Error",
"stack": [
"java.lang.RuntimeException: Internal Server Error"
]
}