Package io.openlineage.server
Class OpenLineage.RunEvent
- java.lang.Object
-
- io.openlineage.server.OpenLineage.RunEvent
-
- Enclosing class:
- OpenLineage
public static final class OpenLineage.RunEvent extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RunEvent(java.lang.String eventType, java.time.ZonedDateTime eventTime, OpenLineage.Run run, OpenLineage.Job job, java.util.List<OpenLineage.InputDataset> inputs, java.util.List<OpenLineage.OutputDataset> outputs, java.net.URI producer, java.net.URI schemaURL)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.time.ZonedDateTimegetEventTime()java.lang.StringgetEventType()java.util.List<OpenLineage.InputDataset>getInputs()OpenLineage.JobgetJob()java.util.List<OpenLineage.OutputDataset>getOutputs()java.net.URIgetProducer()OpenLineage.RungetRun()java.net.URIgetSchemaURL()
-
-
-
Constructor Detail
-
RunEvent
public RunEvent(java.lang.String eventType, java.time.ZonedDateTime eventTime, OpenLineage.Run run, OpenLineage.Job job, java.util.List<OpenLineage.InputDataset> inputs, java.util.List<OpenLineage.OutputDataset> outputs, java.net.URI producer, java.net.URI schemaURL)- Parameters:
eventType- 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 completeeventTime- the time the event occurred atrun- the runjob- the jobinputs- The set of **input** datasets.outputs- The set of **output** datasets.producer- URI identifying the producer of this metadata. For example this could be a git url with a given tag or shaschemaURL- The JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this RunEvent
-
-
Method Detail
-
getEventType
public java.lang.String getEventType()
- Returns:
- 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
-
getEventTime
public java.time.ZonedDateTime getEventTime()
- Returns:
- the time the event occurred at
-
getRun
public OpenLineage.Run getRun()
-
getJob
public OpenLineage.Job getJob()
-
getInputs
public java.util.List<OpenLineage.InputDataset> getInputs()
- Returns:
- The set of **input** datasets.
-
getOutputs
public java.util.List<OpenLineage.OutputDataset> getOutputs()
- Returns:
- The set of **output** datasets.
-
getProducer
public java.net.URI getProducer()
- Returns:
- URI identifying the producer of this metadata. For example this could be a git url with a given tag or sha
-
getSchemaURL
public java.net.URI getSchemaURL()
- Returns:
- The JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version of the schema definition for this RunEvent
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
- Returns:
- additional properties
-
-