frequenz-floss / frequenz-api-dispatch

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

Allow specifying multiple component categories #182

Closed Marenz closed 3 months ago

Marenz commented 3 months ago

An alternative to this would be to allow a complete mix/match, like this:

message ComponentSelector {
  // Set of component IDs / catogories
  repeated oneof selector {
    uint64 component_ids = 1;
    frequenz.api.common.v1.microgrid.components.ComponentCategory component_category = 2;
  }
}
Marenz commented 3 months ago

It was decided ~against~for this approach for now.