Skip to content

state

StateRead

Bases: BaseModel

Class for State read from database.

Attributes:

Name Type Description
id Optional[int]
Source code in fractal_server/app/schemas/v1/state.py
11
12
13
14
15
16
17
18
19
20
21
22
23
class StateRead(BaseModel):
    """
    Class for `State` read from database.

    Attributes:
        id:
    """

    id: Optional[int]
    data: dict[str, Any]
    timestamp: datetime

    _timestamp = validator("timestamp", allow_reuse=True)(valutc("timestamp"))