-
Notifications
You must be signed in to change notification settings - Fork 2
/
openlineage.gen.go
100 lines (81 loc) · 5.36 KB
/
openlineage.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
package openlineage
import "github.com/ThijsKoot/openlineage-go/pkg/facets"
type Event struct {
EventTime string `json:"eventTime"` // the time the event occurred at
Producer string `json:"producer"` // URI identifying the producer of this metadata. For example this could be a git url with a; given tag or sha
SchemaURL string `json:"schemaURL"` // The JSON Pointer (https://tools.ietf.org/html/rfc6901) URL to the corresponding version; of the schema definition for this RunEvent
EventType *EventType `json:"eventType,omitempty"` // 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
Inputs []InputElement `json:"inputs,omitempty"` // The set of **input** datasets.
Job *Job `json:"job,omitempty"`
Outputs []OutputElement `json:"outputs,omitempty"` // The set of **output** datasets.
Run *Run `json:"run,omitempty"`
Dataset *Dataset `json:"dataset,omitempty"`
}
// A Dataset sent within static metadata events
type Dataset struct {
Facets *facets.DatasetFacets `json:"facets,omitempty"` // The facets for this dataset
Name string `json:"name"` // The unique name for that dataset within that namespace
Namespace string `json:"namespace"` // The namespace containing that dataset
}
// A Dataset Facet
//
// all fields of the base facet are prefixed with _ to avoid name conflicts in facets
// 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
// An input dataset
type InputElement struct {
Facets *facets.DatasetFacets `json:"facets,omitempty"` // The facets for this dataset
Name string `json:"name"` // The unique name for that dataset within that namespace
Namespace string `json:"namespace"` // The namespace containing that dataset
InputFacets *facets.InputDatasetFacets `json:"inputFacets,omitempty"` // The input facets for this dataset.
}
// An Input Dataset Facet
//
// all fields of the base facet are prefixed with _ to avoid name conflicts in facets
// 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
type Job struct {
Facets *facets.JobFacets `json:"facets,omitempty"` // The job facets.
Name string `json:"name"` // The unique name for that job within that namespace
Namespace string `json:"namespace"` // The namespace containing that job
}
// A Job Facet
//
// all fields of the base facet are prefixed with _ to avoid name conflicts in facets
// 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
// An output dataset
type OutputElement struct {
Facets *facets.DatasetFacets `json:"facets,omitempty"` // The facets for this dataset
Name string `json:"name"` // The unique name for that dataset within that namespace
Namespace string `json:"namespace"` // The namespace containing that dataset
OutputFacets *facets.OutputDatasetFacets `json:"outputFacets,omitempty"` // The output facets for this dataset
}
// An Output Dataset Facet
//
// all fields of the base facet are prefixed with _ to avoid name conflicts in facets
// 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
type Run struct {
Facets *facets.RunFacets `json:"facets,omitempty"` // The run facets.
RunID string `json:"runId"` // The globally unique ID of the run associated with the job.
}
// A Run Facet
//
// all fields of the base facet are prefixed with _ to avoid name conflicts in facets
// 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
// 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
type EventType string
const (
EventTypeAbort EventType = "ABORT"
EventTypeComplete EventType = "COMPLETE"
EventTypeFail EventType = "FAIL"
EventTypeOther EventType = "OTHER"
EventTypeRunning EventType = "RUNNING"
EventTypeStart EventType = "START"
)