Skip to content

Commit

Permalink
Rename SensorMetricSample.sample to SensorMetricSample.value
Browse files Browse the repository at this point in the history
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 <tiyash.basu@frequenz.com>
  • Loading branch information
tiyash-basu-frequenz committed Mar 22, 2024
1 parent 5c0214d commit 9ccb5b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@

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

- Rename `SensorMetricSample.sample` to `SensorMetricSample.value`.

## New Features

- Added a `Frequenz.api.common.v1.types.Decimal` type, compatible with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,5 @@ message SensorMetricSample {
frequenz.api.common.v1.metrics.Metric metric = 2;

// The value of the sampled metric.
frequenz.api.common.v1.metrics.MetricValueVariant sample = 3;
frequenz.api.common.v1.metrics.MetricValueVariant value = 3;
}

0 comments on commit 9ccb5b6

Please sign in to comment.