Skip to content

Commit 9d05b15

Browse files
authored
Merge pull request #177 from code0-tech/174-runtime-statusservice-information
Add runtime status service
2 parents 53dfaca + 3b5222c commit 9d05b15

3 files changed

Lines changed: 89 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
syntax = "proto3";
2+
3+
package aquila;
4+
5+
import "shared.runtime_status.proto";
6+
7+
option ruby_package = "Tucana::Aquila";
8+
9+
message RuntimeStatusUpdateRequest {
10+
oneof status {
11+
shared.AdapterRuntimeStatus adapter_runtime_status = 1;
12+
shared.ExecutionRuntimeStatus execution_runtime_status = 2;
13+
}
14+
}
15+
16+
message RuntimeStatusUpdateResponse {
17+
bool success = 1;
18+
}
19+
20+
service RuntimeStatusService {
21+
rpc Update(RuntimeStatusUpdateRequest) returns (RuntimeStatusUpdateResponse) {}
22+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
syntax = "proto3";
2+
3+
package sagittarius;
4+
5+
import "shared.runtime_status.proto";
6+
7+
option ruby_package = "Tucana::Sagittarius";
8+
9+
message RuntimeStatusUpdateRequest {
10+
oneof status {
11+
shared.AdapterRuntimeStatus adapter_runtime_status = 1;
12+
shared.ExecutionRuntimeStatus execution_runtime_status = 2;
13+
}
14+
}
15+
16+
message RuntimeStatusUpdateResponse {
17+
bool success = 1;
18+
}
19+
20+
service RuntimeStatusService {
21+
rpc Update(RuntimeStatusUpdateRequest) returns (RuntimeStatusUpdateResponse) {}
22+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
syntax = "proto3";
2+
3+
package shared;
4+
5+
option ruby_package = "Tucana::Shared";
6+
7+
import "shared.translation.proto";
8+
9+
message AdapterConfiguration {
10+
oneof data {
11+
string endpoint = 1; // e.g. URL, ...
12+
}
13+
}
14+
15+
enum RuntimeStatus {
16+
UNKNOWN = 0;
17+
NOT_RESPONDING = 1;
18+
NOT_READY = 2;
19+
RUNNING = 3;
20+
STOPPED = 4;
21+
}
22+
23+
message RuntimeFeature {
24+
repeated shared.Translation name = 1;
25+
repeated shared.Translation description = 2;
26+
}
27+
28+
message AdapterRuntimeStatus {
29+
RuntimeStatus status = 1;
30+
int64 timestamp = 2; // epoch timestamp in milliseconds
31+
32+
string identifier = 3; // unique identifier of the adapter
33+
34+
repeated RuntimeFeature features = 4;
35+
repeated AdapterConfiguration configurations = 5;
36+
}
37+
38+
message ExecutionRuntimeStatus {
39+
RuntimeStatus status = 1;
40+
int64 timestamp = 2; // epoch timestamp in milliseconds
41+
42+
string identifier = 3; // unique identifier of the adapter
43+
44+
repeated RuntimeFeature features = 4;
45+
}

0 commit comments

Comments
 (0)