-
Notifications
You must be signed in to change notification settings - Fork 14
Change type of metrics.MetricSample.connection field
#372
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
Change type of metrics.MetricSample.connection field
#372
Conversation
bef78f0 to
3b5c6cd
Compare
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 refactors the type of the MetricSample.connection field from a simple string to the more expressive MetricConnection message, enabling more detailed categorization of connection types.
- Added MetricConnectionCategory enum for various connection types.
- Introduced MetricConnection message with fields for connection category and name.
- Updated MetricSample to use an optional MetricConnection field for better distinction of connection sources.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| proto/frequenz/api/common/v1/metrics/metrics.proto | Updated MetricSample and added new types for improving connection categorization. |
| RELEASE_NOTES.md | Updated release notes to reflect the change in MetricSample.connection type. |
Comments suppressed due to low confidence (1)
proto/frequenz/api/common/v1/metrics/metrics.proto:293
- The example comment still refers to 'source { ... }' while the field is now 'connection'. Please update the example to reflect the new field name to avoid confusion.
// !!! example
463d860 to
8a3034e
Compare
llucax
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.
So many questions...
8a3034e to
591e422
Compare
llucax
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.
Only one more thing.
591e422 to
742af6f
Compare
2824489 to
286386d
Compare
This commit changes the type of the `metrics.MetricSample.connection` field from `string` to a new message type `metrics.MetricConnection`. This change allows for better categorization of the connection type, which can be useful in control and monitoring applications. The new `MetricConnection` message includes a `MetricConnectionCategory` enum that categorizes the connection type (e.g., battery, PV array, temperature`s), and a `name` field that can be used to identify the specific connection point from which the metric was obtained. Signed-off-by: Tiyash Basu <[email protected]>
286386d to
930bbcf
Compare
This commit changes the type of the
metrics.MetricSample.connectionfield fromstringto a new message typemetrics.MetricConnection.This change allows for better categorization of the connection type, which can be useful in control and monitoring applications. The new
MetricConnectionmessage includes aMetricConnectionCategoryenum that categorizes the connection type (e.g., battery, PV array, temperatures), and aname` field that can be used to identify the specific connection point from which the metric was obtained.closes #258