Skip to content

Commit 9ccb5b6

Browse files
Rename SensorMetricSample.sample to SensorMetricSample.value
The datatype of this field is now `MetricValueVariant`, so this commit tries to rename the field to a more appropriate one. Signed-off-by: Tiyash Basu <[email protected]>
1 parent 5c0214d commit 9ccb5b6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

RELEASE_NOTES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040

4141
- Rename `MetricSample.sample` to `MetricSample.value`.
4242

43+
- Rename `SensorMetricSample.sample` to `SensorMetricSample.value`.
44+
4345
## New Features
4446

4547
- Added a `Frequenz.api.common.v1.types.Decimal` type, compatible with

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,5 +209,5 @@ message SensorMetricSample {
209209
frequenz.api.common.v1.metrics.Metric metric = 2;
210210

211211
// The value of the sampled metric.
212-
frequenz.api.common.v1.metrics.MetricValueVariant sample = 3;
212+
frequenz.api.common.v1.metrics.MetricValueVariant value = 3;
213213
}

0 commit comments

Comments
 (0)