Add Reporter
classes to handle common reports
#662
Replies: 3 comments 14 replies
-
I think this is exactly the right course of action.
|
Beta Was this translation helpful? Give feedback.
-
Where would these reporter classes live and how can I reference them in the CLI command? |
Beta Was this translation helpful? Give feedback.
-
Follow-up idea: what if |
Beta Was this translation helpful? Give feedback.
-
Recently, the introduction of the
Reporter
andPandasReporter
classes in PR #641 opens the door to define report generation logic, in a standardized fashion. Even though both classes come with a great flexibility, they require a long list of arguments that might be similar (if not the same) across different use-cases.For that reason, It would be nice to create a series of simple report generation classes that cover most of the practical applications and that require as little input arguments as possible. Some ideas for simple handy reporters:
SimplePandasReporter
: drops levels other than event_valueAggregateReporter
: Aggregate (min, max, mean, sum, ...) the data of all the sensors that are input.EnergyBillReporter
: Computes the price of energy of a given sensor using the energy tariff, tolls, taxes, levies, etc...With all this, I'd like to invite you to discuss which reporter classes we should prioritize and what functionality they should include.
Beta Was this translation helpful? Give feedback.
All reactions