dto.system

System-related DTOs for node information.

class BuildInfo(*, time: datetime, commit: str, version: str)[source]

Bases: BaseModel

Build information for a node, including time, commit, and version.

time: datetime
commit: str
version: str
class MaintenanceInfo(*, active: bool, started_at: datetime)[source]

Bases: BaseModel

Information about node maintenance status and start time.

active: bool
started_at: datetime
class ReadAboutNodeResponse(*, started: datetime, build: BuildInfo, public_key: str, url: HttpUrl, maintenance: MaintenanceInfo)[source]

Bases: BaseModel

Response model for node information, including build, public key, and maintenance.

started: datetime
build: BuildInfo
public_key: str
url: HttpUrl
maintenance: MaintenanceInfo
class NodeHealthCheckResponse(*, status: Literal['OK'] = 'OK')[source]

Bases: BaseModel

Response model for node health check status.

status: Literal['OK']