Skip to content

Commit 62cfac9

Browse files
committed
Move code to shared folder
1 parent 6f602d8 commit 62cfac9

File tree

3 files changed

+44
-70
lines changed

3 files changed

+44
-70
lines changed

proto/aquila/aquila.runtime_status.proto

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,9 @@ syntax = "proto3";
22

33
package aquila;
44

5-
option ruby_package = "Tucana::Aquila";
6-
7-
message AdapaterStatusInformation {
8-
oneof data {
9-
string endpoint = 1; // e.g. URL, ...
10-
}
11-
}
12-
13-
enum Status {
14-
UNKNOWN = 0;
15-
NOT_RESPONDING = 1;
16-
NOT_READY = 2;
17-
RUNNING = 3;
18-
STOPPED = 4;
19-
}
20-
21-
message AdapterRuntimeStatus {
22-
Status status = 1;
23-
string timestamp = 2; // epoch timestamp in milliseconds
5+
import "shared.runtime_status.proto";
246

25-
string identifier = 3; // unique identifier of the adapter
26-
27-
// All the supported features: e.g. ['http'] / ['cron'] / ['http', 'cron']
28-
repeated string feature_set = 4;
29-
repeated AdapaterStatusInformation informations = 5;
30-
}
31-
32-
message ExecutionRuntimeStatus {
33-
Status status = 1;
34-
string timestamp = 2; // epoch timestamp in milliseconds
35-
36-
string identifier = 3; // unique identifier of the adapter
37-
38-
// All the supported features: e.g. ['http'] / ['cron'] / ['http', 'cron']
39-
repeated string feature_set = 4;
40-
}
7+
option ruby_package = "Tucana::Aquila";
418

429
message RuntimeStatusUpdateRequest {
4310
oneof status {

proto/sagittarius/sagittarius.runtime_status.proto

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,9 @@ syntax = "proto3";
22

33
package sagittarius;
44

5-
option ruby_package = "Tucana::Sagittarius";
6-
7-
message AdapaterStatusInformation {
8-
oneof data {
9-
string endpoint = 1; // e.g. URL, cron expression, ...
10-
}
11-
}
12-
13-
enum Status {
14-
UNKNOWN = 0;
15-
NOT_RESPONDING = 1;
16-
NOT_READY = 2;
17-
RUNNING = 3;
18-
STOPPED = 4;
19-
}
20-
21-
message AdapterRuntimeStatus {
22-
Status status = 1;
23-
string timestamp = 2; // epoch timestamp in milliseconds
5+
import "shared.runtime_status.proto";
246

25-
string identifier = 3; // unique identifier of the adapter
26-
27-
// All the supported features: e.g. ['http'] / ['cron'] / ['http', 'cron']
28-
repeated string feature_set = 4;
29-
repeated AdapaterStatusInformation informations = 5;
30-
}
31-
32-
message ExecutionRuntimeStatus {
33-
Status status = 1;
34-
string timestamp = 2; // epoch timestamp in milliseconds
35-
36-
string identifier = 3; // unique identifier of the adapter
37-
38-
// All the supported features: e.g. ['http'] / ['cron'] / ['http', 'cron']
39-
repeated string feature_set = 4;
40-
}
7+
option ruby_package = "Tucana::Sagittarius";
418

429
message RuntimeStatusUpdateRequest {
4310
oneof status {
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
syntax = "proto3";
2+
3+
package shared;
4+
5+
option ruby_package = "Tucana::Shared";
6+
7+
message AdapterConfiguration {
8+
oneof data {
9+
string endpoint = 1; // e.g. URL, ...
10+
}
11+
}
12+
13+
enum Status {
14+
UNKNOWN = 0;
15+
NOT_RESPONDING = 1;
16+
NOT_READY = 2;
17+
RUNNING = 3;
18+
STOPPED = 4;
19+
}
20+
21+
message AdapterRuntimeStatus {
22+
Status status = 1;
23+
string timestamp = 2; // epoch timestamp in milliseconds
24+
25+
string identifier = 3; // unique identifier of the adapter
26+
27+
// All the supported features: e.g. ['http'] / ['cron'] / ['http', 'cron']
28+
repeated string feature_set = 4;
29+
repeated AdapterConfiguration configuration = 5;
30+
}
31+
32+
message ExecutionRuntimeStatus {
33+
Status status = 1;
34+
string timestamp = 2; // epoch timestamp in milliseconds
35+
36+
string identifier = 3; // unique identifier of the adapter
37+
38+
// All the supported features: e.g. ['http'] / ['cron'] / ['http', 'cron']
39+
repeated string feature_set = 4;
40+
}

0 commit comments

Comments
 (0)