Giter VIP home page Giter VIP logo

frequenz-api-reporting's People

Contributors

dependabot[bot] avatar stefan-brus-frequenz avatar tiyash-basu-frequenz avatar

Watchers

 avatar  avatar  avatar

frequenz-api-reporting's Issues

Automate wrapping of Metric types

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?

Improve resampling options

What's needed?

Users could get more control about resampling:

  • aggregation: how to aggregate the data points in the interval, e.g. mean, sum, min/max, interpolation (upsampling)
  • closed: left or right closed interval, i.e. ts1 <= ts < ts2 or ts1 < ts <= ts2
  • label: which timestamp is assigned to the resampled interval, e.g. oldest, newest, average
  • resolution (update): the resolution parameter currently does not support resampling periods smaller than 1s.

Proposed solution

Support corresponding parameters in ResamplingOptions.

Use cases

Different aggregations make sense if metrics like energy (sum) or peak values (min/max) are of interest.

Different closed options could be helpful if data is compared with external data that could use another interval definition (e.g. DSO, clients).

label is required if the closed option is changed to avoid weird timestamps.

Resolutions below 1s could be interesting if faster reaction is needed or very short-term forecasts. Since we plan to make resampling mandatory when aggregating components, the shortest resolution would be 1s for component aggregations.

Alternatives and workarounds

No response

Additional context

Related to:

Example for resampling options in pandas: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.resample.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.