Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
17 changes: 2 additions & 15 deletions proto/frequenz/api/dispatch/v1/dispatch.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down