mainframe.server ================ .. py:module:: mainframe.server Attributes ---------- .. autoapisummary:: mainframe.server.app Functions --------- .. autoapisummary:: mainframe.server.add_correlation mainframe.server.setup_logging mainframe.server.lifespan mainframe.server.metadata mainframe.server.update_rules Module Contents --------------- .. py:function:: add_correlation(logger: logging.Logger, method_name: str, event_dict: dict[str, Any]) -> dict[str, Any] Add request id to log message. .. py:function:: setup_logging() .. py:function:: lifespan(app_: fastapi.FastAPI) :async: Load the state for the app .. py:data:: app .. py:function:: metadata() -> mainframe.models.schemas.ServerMetadata :async: Get server metadata .. py:function:: update_rules() :async: Update the rules