-
Notifications
You must be signed in to change notification settings - Fork 14
Add communication component state codes and snapshot message #329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add communication component state codes and snapshot message #329
Conversation
This commit updates the `CommunicationComponentDiagnosticCode` enum in the `communication_components.proto` file to include additional diagnostic codes for better error handling and reporting. The new codes include `COMMUNICATION_COMPONENT_DIAGNOSTIC_CODE_UNKNOWN`, `COMMUNICATION_COMPONENT_DIAGNOSTIC_CODE_AUTHENTICATION_ERR`, `COMMUNICATION_COMPONENT_DIAGNOSTIC_CODE_OVER_TEMPERATURE`. Signed-off-by: Tiyash Basu <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new enum (CommunicationComponentStateCode) to represent the operational state of a communication component and introduces a snapshot message (CommunicationComponentStateSnapshot) for capturing component state, diagnostics, and timing.
- Added CommunicationComponentStateCode enum with state codes such as ONLINE, OFFLINE, etc.
- Introduced CommunicationComponentStateSnapshot, a new message capturing timing, state, and diagnostic details.
- Updated the CommunicationComponentDiagnosticCode enum values and key names (e.g., renaming HARDWARE_FAULT to HARDWARE_GENERIC_FAULT) and corresponding release notes.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| proto/frequenz/api/common/v1/microgrid/communication_components/communication_components.proto | Added new state code enum and snapshot message; updated diagnostic enum values and key names. |
| RELEASE_NOTES.md | Updated release notes to include the new message CommunicationComponentStateSnapshot. |
Comments suppressed due to low confidence (1)
proto/frequenz/api/common/v1/microgrid/communication_components/communication_components.proto:72
- [nitpick] The renaming from HARDWARE_FAULT to HARDWARE_GENERIC_FAULT may cause confusion among consumers expecting the old naming. Please update related documentation and ensure that corresponding handling logic is adjusted accordingly.
COMMUNICATION_COMPONENT_DIAGNOSTIC_CODE_HARDWARE_GENERIC_FAULT = 6;
proto/frequenz/api/common/v1/microgrid/communication_components/communication_components.proto
Outdated
Show resolved
Hide resolved
This commit adds a new enum `CommunicationComponentStateCode` to represent the high-level operational state of a communication component. It also introduces a new message `CommunicationComponentStateSnapshot` that captures a snapshot of the component's state, diagnostics, and timing. This is useful for monitoring and diagnosing the status of communication components in a microgrid system. Signed-off-by: Tiyash Basu <[email protected]>
2eac4a3 to
d1f0e91
Compare
thomas-nicolai-frequenz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This commit adds a new enum
CommunicationComponentStateCodeto represent the high-level operational state of a communication component. It also introduces a new messageCommunicationComponentStateSnapshotthat captures a snapshot of the component's state, diagnostics, and timing. This is useful for monitoring and diagnosing the status of communication components in a microgrid system.