Skip to content

Commit f7a8385

Browse files
committed
Add response message to delete request
refs #166 Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent fd49052 commit f7a8385

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

proto/frequenz/api/dispatch/v1/dispatch.proto

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ service MicrogridDispatchService {
7575
rpc GetMicrogridDispatch(GetMicrogridDispatchRequest) returns (GetMicrogridDispatchResponse);
7676

7777
// Delete a given dispatch
78-
rpc DeleteMicrogridDispatch(DeleteMicrogridDispatchRequest) returns (google.protobuf.Empty);
78+
rpc DeleteMicrogridDispatch(DeleteMicrogridDispatchRequest) returns (DeleteMicrogridDispatchResponse);
7979
}
8080

8181
// Represents a dispatches data, including its type, start time, duration, component selector,
@@ -451,3 +451,12 @@ message DeleteMicrogridDispatchRequest {
451451
// The dispatch identifier
452452
uint64 dispatch_id = 2;
453453
}
454+
455+
// Response message for deleting a single dispatch
456+
message DeleteMicrogridDispatchResponse {
457+
// The microgrid ID that the dispatch belonged to
458+
uint64 microgrid_id = 1;
459+
460+
// The dispatch ID that was deleted
461+
uint64 dispatch_id = 2;
462+
}

0 commit comments

Comments
 (0)