Skip to content

Commit b740ccb

Browse files
committed
Add new message definitions for streaming events
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 33ae915 commit b740ccb

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- The enum `SensorErrorCode` has now been renamed to `SensorDiagnosticCode` to better reflect its shared usage with warnings and errors.
2020
- Added warnings to sensor `SensorState`.
2121
- Added a common `TimeIntervalFilter` message in `frequenz.api.common.v1.types` to standardize time interval filtering across APIs. This uses `start_time` (inclusive) and `end_time` (exclusive) fields, aligning with ISO 8601 and common programming conventions.
22+
- Added new message definitions for streaming events (Deleted, Created, Updated)
2223

2324
## Bug Fixes
2425

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Possible streaming events
2+
//
3+
// Copyright 2025 Frequenz Energy-as-a-Service GmbH
4+
//
5+
// Licensed under the MIT License (the "License");
6+
// you may not use this file except in compliance with the License.
7+
8+
syntax = "proto3";
9+
10+
package frequenz.api.common.v1.streaming;
11+
12+
// This enum message is used to inform receivers of events what kind of
13+
// event they just received
14+
enum Event {
15+
// Default, unspecified event
16+
EVENT_UNSPECIFIED = 0;
17+
18+
// A new dispatch has been created
19+
EVENT_CREATED = 1;
20+
21+
// An existing dispatch has been updated
22+
EVENT_UPDATED = 2;
23+
24+
// An existing dispatch has been deleted
25+
EVENT_DELETED = 3;
26+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# License: MIT
2+
# Copyright © 2023 Frequenz Energy-as-a-Service GmbH
3+
4+
"""Frequenz common gRPC API and bindings."""

0 commit comments

Comments
 (0)