Skip to content

Commit ce93f94

Browse files
authored
Merge pull request #189 from code0-tech/188-nest-global-runtime-status-enum
Nest RuntimeStatus Enum
2 parents e44f0f4 + d8de3c6 commit ce93f94

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

proto/shared/shared.runtime_status.proto

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ message AdapterConfiguration {
1212
}
1313
}
1414

15-
enum RuntimeStatus {
16-
UNKNOWN = 0;
17-
NOT_RESPONDING = 1;
18-
NOT_READY = 2;
19-
RUNNING = 3;
20-
STOPPED = 4;
21-
}
22-
2315
message RuntimeFeature {
2416
repeated shared.Translation name = 1;
2517
repeated shared.Translation description = 2;
2618
}
2719

2820
message AdapterRuntimeStatus {
29-
RuntimeStatus status = 1;
21+
enum Status {
22+
UNKNOWN = 0;
23+
NOT_RESPONDING = 1;
24+
NOT_READY = 2;
25+
RUNNING = 3;
26+
STOPPED = 4;
27+
}
28+
29+
Status status = 1;
3030
int64 timestamp = 2; // epoch timestamp in milliseconds
3131

3232
string identifier = 3; // unique identifier of the adapter
@@ -36,7 +36,15 @@ message AdapterRuntimeStatus {
3636
}
3737

3838
message ExecutionRuntimeStatus {
39-
RuntimeStatus status = 1;
39+
enum Status {
40+
UNKNOWN = 0;
41+
NOT_RESPONDING = 1;
42+
NOT_READY = 2;
43+
RUNNING = 3;
44+
STOPPED = 4;
45+
}
46+
47+
Status status = 1;
4048
int64 timestamp = 2; // epoch timestamp in milliseconds
4149

4250
string identifier = 3; // unique identifier of the adapter

0 commit comments

Comments
 (0)