Skip to content

Commit da656d9

Browse files
Add rpcs for deleting and getting a single dispatch
Fixes #24 Signed-off-by: Stefan Brus <[email protected]>
1 parent b60e85d commit da656d9

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
- The filter has additionally been re-designed, with fields that lack use cases being removed.
88
- Removed the ability to update `microgrid_id` on an existing dispatch.
99
- Removed the HTTP proxy gateway URLs, as these will not be used by the dispatch API.
10+
- Added RPCs for getting and deleting a single dispatch.

proto/frequenz/api/dispatch/dispatch.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ service DispatchService {
2828

2929
// Update a dispatch
3030
rpc UpdateDispatch(DispatchUpdateRequest) returns (google.protobuf.Empty);
31+
32+
// Get a single dispatch
33+
rpc GetDispatch(DispatchGetRequest) returns (Dispatch);
34+
35+
// Delete a given dispatch
36+
rpc DeleteDispatch(DispatchDeleteRequest) returns (google.protobuf.Empty);
3137
}
3238

3339
// Message representing one dispatch
@@ -186,3 +192,15 @@ message DispatchUpdateRequest {
186192
// The dispatch payload
187193
google.protobuf.Struct payload = 7;
188194
}
195+
196+
// Message to get a single dispatch by its ID
197+
message DispatchGetRequest {
198+
// The dispatch identifier
199+
uint64 id = 1;
200+
}
201+
202+
// Message to delete a single dispatch by its ID
203+
message DispatchDeleteRequest {
204+
// The dispatch identifier
205+
uint64 id = 1;
206+
}

0 commit comments

Comments
 (0)