frequenz-floss / frequenz-api-microgrid

gRPC+protobuf specification and Python bindings for the Frequenz Microgrid API
https://frequenz-floss.github.io/frequenz-api-microgrid/
MIT License
6 stars 6 forks source link

Use new field for `AddComponentBounds` request and response #269

Open llucax opened 2 weeks ago

llucax commented 2 weeks ago

What's needed?

SetComponentPower* were updated to use a field called request_lifetime, which an int in seconds with a valid range of [10 seconds, 15 minutes], and when doing so we considered the option to use an enum like in AddComponentBounds, but it was decided to go with this more flexible approach. Also the response for SetComponentPower* uses a field called valid_until for the returned timestamp, which is more explicit and clear than the current ts field for AddComponentBounds.

Proposed solution

Update AddComponentBounds fields to match the fields in SetComponentPower*.