@@ -42,21 +42,6 @@ service DispatchService {
4242 }
4343}
4444
45- // Possible dispatch statuses
46- enum DispatchStatus {
47- // Unspecified dispatch status, used mainly for error handling
48- DISPATCH_STATUS_UNSPECIFIED = 0 ;
49-
50- // Active dispatch status
51- DISPATCH_STATUS_ACTIVE = 1 ;
52-
53- // Inactive dispatch status
54- DISPATCH_STATUS_INACTIVE = 2 ;
55-
56- // Simulated dispatch status
57- DISPATCH_STATUS_SIMULATE = 3 ;
58- }
59-
6045// Filter parameter for specifying multiple time intervals
6146message TimeIntervalFilter {
6247 // Filter by start_time >= this timestamp
@@ -106,6 +91,12 @@ message DispatchFilter {
10691
10792 // Filter by time interval
10893 TimeIntervalFilter time_interval = 5 ;
94+
95+ // Filter by "active" status
96+ optional bool active = 6 ;
97+
98+ // Filter by "dry run" status
99+ optional bool dry_run = 7 ;
109100}
110101
111102// Message representing one dispatch
@@ -131,11 +122,14 @@ message Dispatch {
131122 // The creation time
132123 google.protobuf.Timestamp create_time = 7 ;
133124
134- // The dispatch status
135- DispatchStatus status = 8 ;
125+ // The "active" status
126+ bool active = 8 ;
127+
128+ // The "dry run" status
129+ bool dry_run = 9 ;
136130
137131 // The dispatch payload
138- google.protobuf.Struct payload = 9 ;
132+ google.protobuf.Struct payload = 10 ;
139133}
140134
141135// A list of dispatches
@@ -161,11 +155,14 @@ message DispatchCreateRequest {
161155 // The component selector
162156 DispatchComponentSelector selector = 5 ;
163157
164- // The dispatch status
165- DispatchStatus status = 6 ;
158+ // The "active" status
159+ bool status = 6 ;
160+
161+ // The "dry run" status
162+ bool dry_run = 7 ;
166163
167164 // The dispatch payload
168- google.protobuf.Struct payload = 7 ;
165+ google.protobuf.Struct payload = 8 ;
169166}
170167
171168// Message to update the dispatch with the given ID, with the given attributes
@@ -191,9 +188,12 @@ message DispatchUpdateRequest {
191188 // The creation time
192189 optional google.protobuf.Timestamp create_time = 7 ;
193190
194- // The dispatch status
195- optional DispatchStatus status = 8 ;
191+ // The "active" status
192+ optional bool status = 8 ;
193+
194+ // The "dry run" status
195+ optional bool dry_run = 9 ;
196196
197197 // The dispatch payload
198- optional google.protobuf.Struct payload = 9 ;
198+ optional google.protobuf.Struct payload = 10 ;
199199}
0 commit comments