Releases: frequenz-floss/frequenz-api-common
v0.6.3
Frequenz Common API Release Notes
Update of the PaginationParams
struct.
Upgrading
-
PaginationParams
has been changed so that thepage_size
andpage_token
fields are now mutually exclusive. -
A new component category
COMPONENT_CATEGORY_HVAC
has been added to the API
to represent HVAC (Heating, Ventilation, and Air Conditioning) systems. -
Additional information for energy metric
-
Generalize Energy message documentation for broader market use
-
Add Power message to represent Power in MW
Bug Fixes
- Fix a dependency issue by pinning the
grpcio
version and related libraries. - Fixed a wrong documentation comment for
COMPONENT_CATEGORY_UNSPECIFIED
.
What's Changed
- Bump the required group with 3 updates by @dependabot in #227
- Be a bit more explicit about when some fields can be missing by @llucax in #228
- Bump brettcannon/check-for-changed-files from 1.2.0 to 1.2.1 by @dependabot in #229
- Bump the required group with 6 updates by @dependabot in #230
- Add energy metric information by @flora-hofmann-frequenz in #235
- Change
PaginationParams
to makepage_size
andpage_token
mutually exclusive by @Marenz in #232 - Merge v0.6.2 into v0.x.x by @llucax in #243
- Bump the required group across 1 directory with 10 updates by @dependabot in #247
- Bump the
protobuf
andgrpcio
versions by @llucax in #251 - Fix documentation comment for
COMPONENT_CATEGORY_UNSPECIFIED
by @llucax in #245 - Bump yoheimuta/action-protolint from 1.1.0 to 1.3.0 by @dependabot in #196
- Move
conftest.py
to the python package root by @llucax in #252 - Improve the
Lifetime
message documentation by @llucax in #259 - Bump the required group with 3 updates by @dependabot in #265
- Add
Power
message and makeEnergy
message broader by @camille-bouvy-frequenz in #267
New Contributors
- @flora-hofmann-frequenz made their first contribution in #235
Full Changelog: v0.6.2...v0.6.3
v0.6.2
Frequenz Common API Release Notes
Bug Fixes
- Fix a dependency issue by pinning the
grpcio
version and related libraries.
What's Changed
Full Changelog: v0.6.1...v0.6.2
v0.6.1
Frequenz Common API Release Notes
Summary
This release adds a new component category COMPONENT_CATEGORY_HVAC
to the API.
New Features
- A new component category
COMPONENT_CATEGORY_HVAC
has been added to the API
to represent HVAC (Heating, Ventilation, and Air Conditioning) systems.
What's Changed
- Update protobuf requirement from <5,>=4.25.3 to >=4.25.3,<6 by @dependabot in #205
- Bump the optional group with 2 updates by @dependabot in #211
- Bump the optional group with 1 update by @dependabot in #214
- Bump the optional group with 2 updates by @dependabot in #216
- Bump black from 24.3.0 to 24.4.0 in the required group by @dependabot in #219
- Bump the required group with 2 updates by @dependabot in #220
- Bump the required group with 5 updates by @dependabot in #222
- Make Dependabot check for updates monthly on Thursdays by @llucax in #223
- Bump the required group with 4 updates by @dependabot in #224
- Add new component category HVAC by @tiyash-basu-frequenz in #225
- Clean up release notes to prepare for release v0.6.1 by @tiyash-basu-frequenz in #226
Full Changelog: v0.6.0...v0.6.1
v0.6.0
Frequenz Common API Release Notes
Summary
- Removed dependency on
googleapis-common-protos
in favor of internalfrequenz.api.common.v1.types.Decimal
, advising updates to dependencies for users previously relying on Google's types. - Renamed voltage and current metrics for clarity and introduced new metrics, including line-to-line voltages and Total Harmonic Distortion (THD) metrics, with updated naming conventions for simplicity and precision.
Upgrading
-
The dependency on
googleapis-common-protos
/googleapis/googleapis
was removed, now the built-infrequenz.api.common.v1.types.Decimal
is used internally instead. This is compatible with Google's type, but if you depended indirectly on Google's submodule or python packages, you may need to update your dependencies.Nevertheless it is strongly recommended to remove the dependency on Google repos and use the built-in
frequenz.api.common.v1.types.Decimal
instead if your project only uses theDecimal
type from it too. -
Voltage metrics have been renamed from
METRIC_VOLTAGE_PHASE_[1|2|3]
toMETRIC_VOLTAGE_PHASE_[1|2|3]_N
. -
The variants in the enum
Metric
have been renumberd due to the addition of line-to-line voltages. -
Current metrics have been renamed:
METRIC_AC_APPARENT_CURRENT
->METRIC_AC_CURRENT
METRIC_AC_APPARENT_CURRENT_PHASE_[1|2|3]
->METRIC_AC_CURRENT_PHASE_[1|2|3]
-
Metrics for Total Harmonic Distortion have been un-abbreviated:
METRIC_AC_THD_CURRENT
->METRIC_AC_TOTAL_HARMONIC_DISTORTION_CURRENT
METRIC_AC_THD_CURRENT_PHASE_[1|2|3]
->METRIC_AC_TOTAL_HARMONIC_DISTORTION_CURRENT_PHASE_[1|2|3]
-
Renamed
SimpleMetricSample
toSimpleMetricValue
, because it does not contain a timestamp, so it does not represent a sample but a value. -
Renamed
AggregatedMetricSample
toAggregatedMetricValue
, because it does not contain a timestamp, so it does not represent a sample but a value. -
Renamed
MetricSampleVariant
toMetricValueVariant
. -
Rename
MetricSample.sample
toMetricSample.value
. -
Rename
SensorMetricSample.sample
toSensorMetricSample.value
.
New Features
-
Added a
Frequenz.api.common.v1.types.Decimal
type, compatible withgoogle.type.Decimal
. -
The following new metrics have been added:
METRIC_VOLTAGE_PHASE_1_PHASE_2
METRIC_VOLTAGE_PHASE_2_PHASE_3
METRIC_VOLTAGE_PHASE_3_PHASE_1
What's Changed
- Clear release notes by @tiyash-basu-frequenz in #192
- Remove dependency on
googleapis
by @llucax in #187 - Bump the optional group with 3 updates by @dependabot in #194
- Bump actions/labeler from 4.3.0 to 5.0.0 by @dependabot in #145
- Update to repo-conf 0.9.0 by @Marenz in #195
- Bump the optional group with 4 updates by @dependabot in #199
- Bump pytest from 7.4.4 to 8.1.0 by @dependabot in #202
- Bump nox from 2023.4.22 to 2024.3.2 by @dependabot in #201
- Bump the optional group with 2 updates by @dependabot in #200
- Bump the optional group with 3 updates by @dependabot in #203
- Add line-to-line voltage metrics by @tiyash-basu-frequenz in #206
- Remove
APPARENT_
from current metric names by @tiyash-basu-frequenz in #208 - Unabbreviate
THD
in the Metric enum by @tiyash-basu-frequenz in #209 - Rename
[Simple|Aggregated]MetricSample
to[Simple|Aggregated]MetricValue
by @tiyash-basu-frequenz in #210 - Cleanup release notes for release v0.6.0 by @tiyash-basu-frequenz in #212
New Contributors
Full Changelog: v0.5.5...v0.6.0
v0.5.5
Frequenz Common API Release Notes
Summary
This release contains minor updates to the API, including new metric variants,
and a new field in MetricSample
to identify the source of the metric.
New Features
-
Added a field named
source
toMetricSample
to allow the user to identify
the source of the metric, in case different sensors in component report
metrics with the sameMetric
variant. -
Added 3 new metric variants for inverter temperatures:
METRIC_INVERTER_TEMPERATURE_CABINET
METRIC_INVERTER_TEMPERATURE_HEATSINK
METRIC_INVERTER_TEMPERATURE_TRANSFORMER
What's Changed
- Clear release notes by @llucax in #180
- Bump submodules/api-common-protos from
86f7539
to738ff24
by @dependabot in #182 - Add field
source
toMetricSample
by @tiyash-basu-frequenz in #181 - Add metrics variants for inverter temperatures by @tiyash-basu-frequenz in #188
- Update release notes for v0.5.5 release by @tiyash-basu-frequenz in #191
Full Changelog: v0.5.4...v0.5.5
v0.5.4
Frequenz Common API Release Notes
New Features
-
Add a energy message for electricity trading markets
-
Add backwards compatibility with v0.3.x
This release includes the top-level files present in the v0.3.x release, so the Microgrid API v0.15.x can depend on a newer version of the Common API.
What's Changed
- Add Energy message for electricity trading markets by @matthias-wende-frequenz in #161
- Prepare release notes for release by @matthias-wende-frequenz in #162
- Bump the optional group with 9 updates by @dependabot in #164
- Bump submodules/api-common-protos from
51555da
tof6b54cd
by @dependabot in #166 - Bump submodules/api-common-protos from
f6b54cd
to86f7539
by @dependabot in #168 - Bump the optional group with 2 updates by @dependabot in #169
- Bump flake8 from 6.1.0 to 7.0.0 by @dependabot in #170
- Bump grpc-stubs from 1.53.0.3 to 1.53.0.5 by @dependabot in #171
- Add backwards compatibility with v0.3.x by @llucax in #179
- Bump black from 23.12.1 to 24.1.1 by @dependabot in #176
New Contributors
- @matthias-wende-frequenz made their first contribution in #161
Full Changelog: v0.5.2...v0.5.4
v0.5.3
Frequenz Common API Release Notes
New Features
- Add a energy message for electricity trading markets
What's Changed
- Add Energy message for electricity trading markets by @matthias-wende-frequenz in #161
Full Changelog: v0.5.2...v0.5.3
v0.5.2
Frequenz Common API Release Notes
Summary
This release adds new features, and fixes the documentation of a few messages.
Upgrading
- This release does not contain breaking changes in terms of protobuf definitions.
However, when upgrading, applications may need to be adjusted to work with the new additions.
New Features
-
Adds ability to specify static bounds in the
Component
message. -
Adds protobuf definition necessary for Electricity Trading (and for Ancillary Services Market).
Bug Fixes
- Fixes
SensorData
andComponentData
doc examples to correctly reflect differences in respective values.
What's Changed
- Clear release notes by @stefan-brus-frequenz in #138
- Bump mypy from 1.7.0 to 1.7.1 by @dependabot in #140
- Bump actions/setup-python from 4 to 5 by @dependabot in #146
- Fix doc examples for
SensorData
andComponentData
by @thea-leake in #150 - Add Max charge and discharge values for a component. by @thea-leake in #149
- Add definitions for Electricity Trading API by @camille-bouvy-frequenz in #148
- Update release notes by @tiyash-basu-frequenz in #157
- Bump actions/upload-artifact from 3 to 4 by @dependabot in #153
- Bump actions/download-artifact from 3 to 4 by @dependabot in #154
- Bump submodules/api-common-protos from
c8dbdd0
to51555da
by @dependabot in #158
New Contributors
- @thea-leake made their first contribution in #150
- @camille-bouvy-frequenz made their first contribution in #148
Full Changelog: v0.5.1...v0.5.2
v0.5.1
Frequenz Common API Release Notes
Summary
- Added
MicrogridComponentIDs
message, which groups a microgrid ID together with
a list of component IDs.
New Features
- Added
MicrogridComponentIDs
message, which groups a microgrid ID together with
a list of component IDs.
v0.5.0
Frequenz Common API Release Notes
Summary
This release contains
- additions of data definitions to the common specs, that are intended to be used by the Frequenz APIs.
- refactors of existing definitions, in order to make them more consistent and easier to use.
Upgrading
-
lower
andupper
bounds fields in theBounds
message are nowoptional
-
rated_bounds
field has been removed from the messagesMetric
andMetricAggregation
-
component_bounds
field has been removed from the messagesMetric
andMetricAggregation
-
Inclusion and exclusion bounds have been removed from the metric definitions. These have been replaced with an array of inclusion bounds. This simplifies the message definition, and removes the requirement of clients having to check if a parameter is not in a given pair of bounds. This also extends the possibility of having more than 2 pairs bounds for a given metric.
-
Fields in
MetricAggregation
message have been suffixed with_value
, to make them consistent with theMetric
message. -
Timestamps have been introduced in the metric messages. This makes it easier to use these messages in a timeseries context.
-
Renamed
Metric
message toSimpleMetricSample
-
Renamed
MetricAggregation
message toAggregatedMetricSample
-
Added a union type message
MetricSampleVariant
to represent both
SimpleMetricSample
andAggregatedMetricSample
-
Added a message
MetricSample
to represent a metric sample with a timestamp
and bounds. -
Added a message to represent metrics sampled from components.
-
Added a message
SensorData
to represent metrics sampled from sensors. -
Added a message
Lifetime
as a wrapper over the start and end timestamps of an entity. -
Added a message
Sensor
to represent sensors installed in a microgrid. -
Added a message
Component
to represent components installed in a microgrid. -
Added a message
ComponentCategoryMetadataVariant
to represent the different types of sub-categories that can be associated with a component category. -
Added a message
ComponentConnection
to represent electrical connection between two components installed in a microgrid. -
Added a message
DeliveryArea
to represent a market contract delivery area. -
Added a message
Microgrid
to represent a microgrid. -
Updated the package name of
location.proto
tofrequenz.api.common.v1
. -
Added messages to support pagination in APIs.
-
Removed
metrics/electrical.proto
, since it is no longer needed.
What's Changed
- Make lower and upper bounds optional in the Bounds message by @tiyash-basu-frequenz in #104
- Bump mypy from 1.5.1 to 1.6.1 by @dependabot in #109
- Bump black from 23.9.1 to 23.10.0 by @dependabot in #110
- Bump mkdocs-material from 9.4.2 to 9.4.6 by @dependabot in #107
- Add a message 'Pagination' to define pagination parameters by @TalweSingh in #99
- Bump black from 23.10.0 to 23.10.1 by @dependabot in #116
- Bump pytest from 7.4.2 to 7.4.3 by @dependabot in #117
- Update the metrics package by @tiyash-basu-frequenz in #114
- Bump repo config to v0.6.2 by @TalweSingh in #102
- Bump the optional group with 1 update by @dependabot in #118
- Bump yoheimuta/action-protolint from 1.0.0 to 1.1.0 by @dependabot in #120
- Bump the optional group with 1 update by @dependabot in #121
- Bump grpc-stubs from 1.53.0.2 to 1.53.0.3 by @dependabot in #119
- Update
metrics
andcomponent.data
packages by @tiyash-basu-frequenz in #122 - Bump actions/checkout from 3 to 4 by @dependabot in #72
- Add messages to stream sensor data by @tiyash-basu-frequenz in #125
- Move
ComponentData
message tocomponents.proto
by @tiyash-basu-frequenz in #126 - Bump the optional group with 3 updates by @dependabot in #129
- Bump pylint from 2.17.6 to 3.0.2 by @dependabot in #115
- Add messages describing microgrid entities by @tiyash-basu-frequenz in #127
- Refactor protobuf messages and files to establish a standard packaging scheme by @tiyash-basu-frequenz in #131
- Remove unnecessary items and add a test by @tiyash-basu-frequenz in #132
- Cleanup RELEASE_NOTES.md for release v0.5.0 by @tiyash-basu-frequenz in #133
New Contributors
- @TalweSingh made their first contribution in #99
Full Changelog: v0.4.0...v0.5.0