flexmeasures.data.schemas.reporting.profit
Classes
- class flexmeasures.data.schemas.reporting.profit.ProfitOrLossReporterConfigSchema(*, 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 ProfitOrLossReporter configuration
Example: .. code-block:: json
- {
“production-price-sensor” : 1, “consumption-price-sensor” : 2, “loss_is_positive” : True
}
- validate_price_sensors(data, **kwargs)
check that at least one of the price sensors is given
- class flexmeasures.data.schemas.reporting.profit.ProfitOrLossReporterParametersSchema(*, 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 ProfitOrLossReporter parameters
Example: .. code-block:: json
- {
- “input”: [
- {
“sensor”: 1,
},
], “output”: [
- {
“sensor”: 2,
}
], “start” : “2023-01-01T00:00:00+00:00”, “end” : “2023-01-03T00:00:00+00:00”,
}