flexmeasures.data.schemas.reporting.aggregation
Classes
- class flexmeasures.data.schemas.reporting.aggregation.AggregatorConfigSchema(*, 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 | None = None, unknown: str | None = None)
Schema for the AggregatorReporter configuration
Example: .. code-block:: json
- {
“method” : “sum”, “weights” : {
“pv” : 1.0, “consumption” : -1.0
}
}
- class flexmeasures.data.schemas.reporting.aggregation.AggregatorParametersSchema(*, 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 | None = None, unknown: str | None = None)
Schema for the AggregatorReporter parameters
Example: .. code-block:: json
- {
- “input”: [
- {
“name” : “pv”, “sensor”: 1, “source” : 1,
}, {
“name” : “consumption”, “sensor”: 1, “source” : 2,
}
], “output”: [
- {
“sensor”: 3,
}
], “start” : “2023-01-01T00:00:00+00:00”, “end” : “2023-01-03T00:00:00+00:00”,
}