-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathjob.proto
More file actions
91 lines (73 loc) · 1.63 KB
/
Copy pathjob.proto
File metadata and controls
91 lines (73 loc) · 1.63 KB
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
syntax = "proto3";
package odpf.metadata.optimus.v1;
option java_package = "io.odpf.proton.metadata.optimus";
option java_outer_classname = "Optimus";
option go_package = "github.com/odpf/proton/metadata/optimus";
import "google/protobuf/timestamp.proto";
message JobMetadataKey {
string urn = 1;
}
message JobMetadata {
string urn = 1;
string name = 2;
string tenant = 3;
int32 version = 4;
string description = 5;
repeated JobLabel labels = 6;
string owner = 7;
JobTask task = 8;
JobSchedule schedule = 9;
JobBehavior behaviour = 10;
repeated JobHook hooks = 11;
repeated JobDependency dependencies = 12;
string namespace = 13;
google.protobuf.Timestamp event_timestamp = 100;
}
message JobTask {
string name = 1;
string image = 2;
string description = 3;
string destination = 4;
repeated JobTaskConfig config = 5;
JobTaskWindow window = 6;
int32 priority = 7;
}
message JobHook {
string name = 1;
string image = 2;
string description = 3;
repeated JobHookConfig config = 4;
string type = 5;
repeated string depends_on = 6;
}
message JobDependency {
string tenant = 1;
string job = 2;
string type = 3;
}
message JobTaskWindow {
string size = 1;
string offset = 2;
string truncate_to = 3;
}
message JobSchedule {
google.protobuf.Timestamp start_date = 1;
google.protobuf.Timestamp end_date = 2;
string interval = 3;
}
message JobBehavior {
bool depends_on_past = 1;
bool catchup = 2;
}
message JobLabel {
string name = 1;
string value = 2;
}
message JobTaskConfig {
string name = 1;
string value = 2;
}
message JobHookConfig {
string name = 1;
string value = 2;
}