Skip to content

Commit e6b59f9

Browse files
committed
Extract features to a message instead of string[]
1 parent 652c3ff commit e6b59f9

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

proto/shared/shared.runtime_status.proto

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ package shared;
44

55
option ruby_package = "Tucana::Shared";
66

7+
import "shared.translation.proto";
8+
79
message AdapterConfiguration {
810
oneof data {
911
string endpoint = 1; // e.g. URL, ...
@@ -18,23 +20,28 @@ enum RuntimeStatus {
1820
STOPPED = 4;
1921
}
2022

23+
message RuntimeFeature {
24+
repeated shared.Translation name = 1;
25+
repeated shared.Translation description = 2;
26+
}
27+
2128
message AdapterRuntimeStatus {
2229
RuntimeStatus status = 1;
23-
string timestamp = 2; // epoch timestamp in milliseconds
30+
int64 timestamp = 2; // epoch timestamp in milliseconds
2431

2532
string identifier = 3; // unique identifier of the adapter
2633

2734
// All the supported features: e.g. ['http'] / ['cron'] / ['http', 'cron']
28-
repeated string features = 4;
35+
repeated RuntimeFeature features = 4;
2936
repeated AdapterConfiguration configurations = 5;
3037
}
3138

3239
message ExecutionRuntimeStatus {
3340
RuntimeStatus status = 1;
34-
string timestamp = 2; // epoch timestamp in milliseconds
41+
int64 timestamp = 2; // epoch timestamp in milliseconds
3542

3643
string identifier = 3; // unique identifier of the adapter
3744

3845
// All the supported features: e.g. ['http'] / ['cron'] / ['http', 'cron']
39-
repeated string features = 4;
46+
repeated RuntimeFeature features = 4;
4047
}

0 commit comments

Comments
 (0)