solarforecastarbiter.datamodel.ReportMessage

class solarforecastarbiter.datamodel.ReportMessage(message: str, step: str, level: str, function: str)[source]

Class for intercepting errors and warnings associated with report processing.

Parameters:
  • messages (str) –
  • step (str) –
  • level (str) –
  • function (str) – The function where the error originated.
__init__(message: str, step: str, level: str, function: str) → None

Methods

__init__(message, step, level, function)
from_dict(input_dict[, raise_on_extra]) Construct a dataclass from the given dict, matching keys with the class fields.
replace(**kwargs) Convience wrapper for dataclasses.replace() to create a new dataclasses from the old with the given keys replaced.
to_dict() Convert the dataclass into a dictionary suitable for uploading to the API.