Skip to content

Commit a865a5f

Browse files
authored
Merge pull request #26 from jumpstarter-dev/add-exporter-status
Add ExporterStatus enum and status field
2 parents 8d91c4a + 3c30d6d commit a865a5f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

proto/jumpstarter/client/v1/client.proto

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,17 @@ message Exporter {
6767

6868
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
6969
map<string, string> labels = 2;
70-
bool online = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
70+
bool online = 3 [(google.api.field_behavior) = OUTPUT_ONLY, deprecated = true];
71+
ExporterStatus status = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
72+
}
73+
74+
enum ExporterStatus {
75+
EXPORTER_STATUS_UNSPECIFIED = 0; // Unspecified exporter status
76+
EXPORTER_STATUS_OFFLINE = 1; // Exporter is offline
77+
EXPORTER_STATUS_AVAILABLE = 2; // Exporter is available to be leased
78+
EXPORTER_STATUS_BEFORE_LEASE_HOOK = 3; // Exporter is executing before lease hook(s)
79+
EXPORTER_STATUS_LEASE_READY = 4; // Exporter is leased and ready to accept commands
80+
EXPORTER_STATUS_AFTER_LEASE_HOOK = 5; // Exporter is executing after lease hook(s)
7181
}
7282

7383
message Lease {

0 commit comments

Comments
 (0)