diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 62f9496..f063652 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -2,6 +2,7 @@ ## Summary +- Use `frequenz.api.common.v1alpha8.streaming.Event` message instead of the local `Event` message. - Updated all `frequenz.api.common` imports from `v1` to `v1alpha8`. - Removed the `TimeIntervalFilter` message, replacing its usage with the new `frequenz.api.common.v1alpha8.types.Interval` type. - In the `DispatchFilter` message, the `start_time_interval`, `end_time_interval`, and `update_time_interval` fields were updated to use the new `Interval` type. diff --git a/proto/frequenz/api/dispatch/v1/dispatch.proto b/proto/frequenz/api/dispatch/v1/dispatch.proto index e9712e4..0a4b0df 100644 --- a/proto/frequenz/api/dispatch/v1/dispatch.proto +++ b/proto/frequenz/api/dispatch/v1/dispatch.proto @@ -20,6 +20,7 @@ import "google/protobuf/timestamp.proto"; import "frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto"; import "frequenz/api/common/v1alpha8/pagination/pagination_info.proto"; import "frequenz/api/common/v1alpha8/pagination/pagination_params.proto"; +import "frequenz/api/common/v1alpha8/streaming/event.proto"; import "frequenz/api/common/v1alpha8/types/interval.proto"; // Service providing operations related to dispatching microgrid components. @@ -95,25 +96,11 @@ message StreamMicrogridDispatchesRequest { // Response to a subscription request for a stream of microgrid dispatches. // Real-time information on dispatches affecting a certain microgrid are pushed through this response. message StreamMicrogridDispatchesResponse { - enum Event { - // Default, unspecified event - EVENT_UNSPECIFIED = 0; - - // A new dispatch has been created - EVENT_CREATED = 1; - - // An existing dispatch has been updated - EVENT_UPDATED = 2; - - // An existing dispatch has been deleted - EVENT_DELETED = 3; - } - // Dispatch record returned. Dispatch dispatch = 1; // Which event this response was triggered by - Event event = 2; + frequenz.api.common.v1alpha8.streaming.Event event = 2; } // Represents a dispatches data, including its type, start time, duration,