flexmeasures.data.schemas.reporting.aggregation

Classes

class flexmeasures.data.schemas.reporting.aggregation.AggregatorSchema(*, only: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = (), many: bool = False, context: dict | None = None, load_only: types.StrSequenceOrSet = (), dump_only: types.StrSequenceOrSet = (), partial: bool | types.StrSequenceOrSet = False, unknown: str | None = None)

Schema for the reporter_config of the AggregatorReporter

Example: .. code-block:: json

{
“beliefs_search_configs”: [
{

“sensor”: 1, “source” : 1, “alias” : “pv”

}, {

“sensor”: 1, “source” : 2, “alias” : “consumption”

}

], “method” : “sum”, “weights” : {

“pv” : 1.0, “consumption” : -1.0

}

}