Skip to content

Commit 4abef2e

Browse files
Add "MicrogridComponentIDs" message (#137)
This message is used to group a microgrid ID with a list of component IDs
2 parents 91a58f0 + 564514a commit 4abef2e

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

RELEASE_NOTES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,8 @@ This release contains
6666
- Added messages to support pagination in APIs.
6767

6868
- Removed `metrics/electrical.proto`, since it is no longer needed.
69+
70+
## New Features
71+
72+
- Added `MicrogridComponentIDs` message, which groups a microgrid ID together with
73+
a list of component IDs.

proto/frequenz/api/common/v1/microgrid/microgrid.proto

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,12 @@ message Microgrid {
6262
// The UTC timestamp indicating when the microgrid was initially created.
6363
google.protobuf.Timestamp create_timestamp = 7;
6464
}
65+
66+
// A message to link component IDs with their respective microgrid ID.
67+
message MicrogridComponentIDs {
68+
// The ID of the microgrid.
69+
uint64 microgrid_id = 1;
70+
71+
// List of component IDs belonging to this microgrid.
72+
repeated uint64 component_ids = 2;
73+
}

0 commit comments

Comments
 (0)