server

Server status mutation hooks shared by core and API adapters.

class bedrock_server_manager.events.server.StatusRequest(*, server_name: Annotated[str, MinLen(min_length=1)], status: Annotated[str, MinLen(min_length=1)])
model_config = {'extra': 'forbid', 'str_strip_whitespace': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class bedrock_server_manager.events.server.StatusResult(*, status: Literal['success'] = 'success', message: str, server_name: str, previous_status: str | None, new_status: str)
model_config = {'extra': 'forbid'}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class bedrock_server_manager.events.server.BeforeStatusChange(*, server_name: Annotated[str, MinLen(min_length=1)], status: Annotated[str, MinLen(min_length=1)], request: StatusRequest)
model_config = {'extra': 'forbid', 'str_strip_whitespace': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class bedrock_server_manager.events.server.AfterStatusChange(*, server_name: Annotated[str, MinLen(min_length=1)], status: Annotated[str, MinLen(min_length=1)], request: StatusRequest, result: StatusResult)
model_config = {'extra': 'forbid', 'str_strip_whitespace': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

bedrock_server_manager.events.server.model

alias of AfterStatusChange