albs_analytics/build_analitycs/build_analytics/models/build_task_db.py
Kirill Zhukov 97db2097d3 added name to build_task
added api_timeout and scrape_interval to scrape config
added requirements.txt
2023-03-01 14:13:35 +01:00

16 lines
354 B
Python

from typing import Optional
from pydantic import BaseModel # pylint: disable=no-name-in-module
class BuildTaskDB(BaseModel):
"""
BuildTask as it received from/sent to database
"""
id: int
name: str
build_id: int
arch_id: int
started_at: Optional[float] = None
finished_at: Optional[float] = None
status_id: int