flexmeasures.data.schemas.reporting.profit
Classes
- class flexmeasures.data.schemas.reporting.profit.ProfitOrLossReporterConfigSchema(*, only: Sequence[str] | AbstractSet[str] | None = None, exclude: Sequence[str] | AbstractSet[str] = (), many: bool | None = None, context: dict | None = None, load_only: Sequence[str] | AbstractSet[str] = (), dump_only: Sequence[str] | AbstractSet[str] = (), partial: bool | Sequence[str] | AbstractSet[str] | 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: Sequence[str] | AbstractSet[str] | None = None, exclude: Sequence[str] | AbstractSet[str] = (), many: bool | None = None, context: dict | None = None, load_only: Sequence[str] | AbstractSet[str] = (), dump_only: Sequence[str] | AbstractSet[str] = (), partial: bool | Sequence[str] | AbstractSet[str] | 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”,
}