Skip to content

utils#

Generic database utility models

Health #

Bases: ZooModel

Health model

Source code in zoo/schemas/utils.py
class Health(ZooModel):
    """
    Health model
    """

    status: str = Field(description="The status of the application")
    code: int = Field(description="The status code of the response")
    timestamp: datetime.datetime = Field(
        description="The timestamp of the response generated by the server"
    )

    model_config = ConfigDict(
        json_schema_extra={
            "examples": [
                {
                    "status": "OK",
                    "code": 200,
                    "timestamp": "2021-05-01T12:00:00.000000+00:00",
                }
            ]
        }
    )