frequenz-floss / frequenz-api-reporting

Frequenz Reporting API gRPC/protobuf specifications
MIT License
1 stars 6 forks source link

Automate wrapping of Metric types #15

Closed flora-hofmann-frequenz closed 7 months ago

flora-hofmann-frequenz commented 9 months ago

Currently, each metric in _types.py in PR #14 is transformed as follows: AC_FREQUENCY = metric_sample_pb2.Metric.METRIC_AC_FREQUENCY

Can we automate this based on the .proto files so it is less verbose?

cwasicki commented 7 months ago

For now we won't look into this as. This might also be less of an issue if we switch to betterproto.