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