Skip to content

Commit f9d121b

Browse files
Merge pull request #267 from code0-tech/#266-adapter-status
Added ActionStatus
2 parents 92f7fa1 + 9ededf9 commit f9d121b

3 files changed

Lines changed: 32 additions & 2 deletions

File tree

proto/aquila/aquila.runtime_status.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ message RuntimeStatusUpdateRequest {
1010
oneof status {
1111
shared.AdapterRuntimeStatus adapter_runtime_status = 1;
1212
shared.ExecutionRuntimeStatus execution_runtime_status = 2;
13+
shared.ActionStatus action_status = 3;
1314
}
1415
}
1516

proto/sagittarius/sagittarius.runtime_status.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ message RuntimeStatusUpdateRequest {
1010
oneof status {
1111
shared.AdapterRuntimeStatus adapter_runtime_status = 1;
1212
shared.ExecutionRuntimeStatus execution_runtime_status = 2;
13+
shared.ActionStatus action_status = 3;
1314
}
1415
}
1516

proto/shared/shared.runtime_status.proto

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,22 @@ option ruby_package = "Tucana::Shared";
66

77
import "shared.translation.proto";
88

9-
message AdapterConfiguration {
9+
message AdapterStatusConfiguration {
1010
// List of flow type identifiers for this specific AdapterConfiguration
1111
repeated string flow_type_identifiers = 1;
1212
oneof data {
1313
string endpoint = 2; // e.g. URL, ...
1414
}
1515
}
1616

17+
message ActionStatusConfiguration {
18+
// List of flow type identifiers for this specific ActionStatusConfiguration
19+
repeated string flow_type_identifiers = 1;
20+
oneof data {
21+
string endpoint = 2; // e.g. URL, ...
22+
}
23+
}
24+
1725
message RuntimeFeature {
1826
repeated shared.Translation name = 1;
1927
repeated shared.Translation description = 2;
@@ -34,7 +42,7 @@ message AdapterRuntimeStatus {
3442
string identifier = 3; // unique identifier of the adapter
3543

3644
repeated RuntimeFeature features = 4;
37-
repeated AdapterConfiguration configurations = 5;
45+
repeated AdapterStatusConfiguration configurations = 5;
3846
}
3947

4048
message ExecutionRuntimeStatus {
@@ -53,3 +61,23 @@ message ExecutionRuntimeStatus {
5361

5462
repeated RuntimeFeature features = 4;
5563
}
64+
65+
66+
message ActionStatus {
67+
enum Status {
68+
UNKNOWN = 0;
69+
NOT_RESPONDING = 1;
70+
NOT_READY = 2;
71+
RUNNING = 3;
72+
STOPPED = 4;
73+
}
74+
75+
Status status = 1;
76+
int64 timestamp = 2; // epoch timestamp in milliseconds
77+
78+
string identifier = 3; // unique identifier of the action
79+
80+
repeated RuntimeFeature features = 4;
81+
repeated ActionStatusConfiguration configurations = 5;
82+
}
83+

0 commit comments

Comments
 (0)