-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathworkflow.proto
89 lines (82 loc) · 2.74 KB
/
workflow.proto
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
syntax = "proto3";
package schema; // NOTE: protoc-gen-bq-sheme output dir
import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";
import "protoc-gen-bq-schema/bq_table.proto";
import "protoc-gen-bq-schema/bq_field.proto";
// USAGE: /protoc/bin/protoc --plugin="./node_modules/.bin/protoc-gen-ts_proto" --plugin="protoc-gen-bq-schema" --ts_proto_out="generated" --ts_proto_opt=outputEncodeMethods=false,outputJsonMethods=false,outputClientImpl=false -I=proto -I=protoc --bq-schema_out=generated proto/*
message PbWorkflowReport {
option (gen_bq_schema.bigquery_opts).table_name = "workflow_report";
string service = 1;
string workflowId = 2;
string workflowRunId = 3;
int32 buildNumber = 4;
string workflowName = 5;
google.protobuf.Timestamp createdAt = 6 [ (gen_bq_schema.bigquery) = {
description: 'bq-datetime'
}];
string trigger = 7;
string status = 8; // 'SUCCESS' | 'FAILURE' | 'ABORTED' | 'OTHER'
string repository = 9;
string headSha = 10;
string branch = 11;
string tag = 12;
google.protobuf.Timestamp startedAt = 13 [ (gen_bq_schema.bigquery) = {
description: 'bq-datetime'
}];
google.protobuf.Timestamp completedAt = 14 [ (gen_bq_schema.bigquery) = {
description: 'bq-datetime'
}];
float workflowDurationSec = 15;
float sumJobsDurationSec = 16;
float queuedDurationSec = 17;
int32 successCount = 18; // 0 | 1
repeated PbJobReport jobs = 19;
repeated PbJobParameter parameters = 20;
string commitMessage = 21;
string actor = 22;
string url = 23;
}
message PbJobReport {
string workflowRunId = 1;
google.protobuf.Int32Value buildNumber = 2;
string jobId = 3;
string jobName = 4;
string status = 5; // 'SUCCESS' | 'FAILURE' | 'ABORTED' | 'OTHER'
google.protobuf.Timestamp startedAt = 6 [ (gen_bq_schema.bigquery) = {
description: 'bq-datetime'
}];
google.protobuf.Timestamp completedAt = 7 [ (gen_bq_schema.bigquery) = {
description: 'bq-datetime'
}];
float jobDurationSec = 8;
float sumStepsDurationSec = 9;
repeated PbStepReport steps = 10;
string url = 11;
string executorClass = 12;
string executorType = 13;
string executorName = 14;
float queuedDurationSec = 15;
}
message PbStepReport {
string name = 1;
string status = 2; // 'SUCCESS' | 'FAILURE' | 'ABORTED' | 'OTHER'
int32 number = 3;
google.protobuf.Timestamp startedAt = 4 [ (gen_bq_schema.bigquery) = {
description: 'bq-datetime'
}];
google.protobuf.Timestamp completedAt = 5 [ (gen_bq_schema.bigquery) = {
description: 'bq-datetime'
}];
float stepDurationSec = 6;
}
message PbJobParameter {
string name = 1;
string value = 2;
}
message PbWorkflowParams {
string workflowId = 1;
string workflowRunId = 2;
int32 buildNumber = 3;
string workflowName = 4;
}