Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump pydantic #646

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 38 additions & 38 deletions hw_diag/diagnostics/bigquery_data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,41 @@
class DiagnosticDataModel(BaseModel):
last_updated_ts: datetime
last_updated: str
E0: Optional[str]
W0: Optional[str]
BN: Optional[str]
ID: Optional[str]
BA: Optional[str]
FR: Optional[str]
FW: Optional[str]
VA: Optional[str]
serial_number: Optional[str]
ECC: Optional[bool]
LOR: Optional[bool]
PK: Optional[str]
OK: Optional[str]
AN: Optional[str]
MC: Optional[bool]
MD: Optional[bool]
MH: Optional[int]
MN: Optional[str]
MR: Optional[bool]
BCH: Optional[int]
MS: Optional[bool]
BSP: Optional[float]
BT: Optional[bool]
LTE: Optional[bool]
RE: Optional[str]
PF: Optional[bool]
FRIENDLY: Optional[str]
APPNAME: Optional[str]
SPIBUS: Optional[str]
RESET: Optional[int]
MAC: Optional[str]
STATUS: Optional[int]
BUTTON: Optional[int]
ECCOB: Optional[bool]
TYPE: Optional[str]
CELLULAR: Optional[bool]
uptime_seconds: Optional[int]
firmware_short_hash: Optional[str]
E0: Optional[str] = None
W0: Optional[str] = None
BN: Optional[str] = None
ID: Optional[str] = None
BA: Optional[str] = None
FR: Optional[str] = None
FW: Optional[str] = None
VA: Optional[str] = None
serial_number: Optional[str] = None
ECC: Optional[bool] = None
LOR: Optional[bool] = None
PK: Optional[str] = None
OK: Optional[str] = None
AN: Optional[str] = None
MC: Optional[bool] = None
MD: Optional[bool] = None
MH: Optional[int] = None
MN: Optional[str] = None
MR: Optional[bool] = None
BCH: Optional[int] = None
MS: Optional[bool] = None
BSP: Optional[float] = None
BT: Optional[bool] = None
LTE: Optional[bool] = None
RE: Optional[str] = None
PF: Optional[bool] = None
FRIENDLY: Optional[str] = None
APPNAME: Optional[str] = None
SPIBUS: Optional[str] = None
RESET: Optional[int] = None
MAC: Optional[str] = None
STATUS: Optional[int] = None
BUTTON: Optional[int] = None
ECCOB: Optional[bool] = None
TYPE: Optional[str] = None
CELLULAR: Optional[bool] = None
uptime_seconds: Optional[int] = None
firmware_short_hash: Optional[str] = None
28 changes: 14 additions & 14 deletions hw_diag/utilities/events_bq_data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@

class EventDataModel(BaseModel):
generated_ts: datetime
event_type: Optional[str]
serial: Optional[str]
variant: Optional[str]
firmware_version: Optional[str]
region_override: Optional[str]
packet_errors: Optional[int]
msg: Optional[str]
action_type: Optional[str]
uptime_hours: Optional[float]
balena_app_state: Optional[str]
balena_release: Optional[str]
balena_all_running: Optional[bool]
event_type: Optional[str] = None
serial: Optional[str] = None
variant: Optional[str] = None
firmware_version: Optional[str] = None
region_override: Optional[str] = None
packet_errors: Optional[int] = None
msg: Optional[str] = None
action_type: Optional[str] = None
uptime_hours: Optional[float] = None
balena_app_state: Optional[str] = None
balena_release: Optional[str] = None
balena_all_running: Optional[bool] = None
balena_failed_containers: List[str]
balena_api_status: Optional[str]
network_state: Optional[str]
balena_api_status: Optional[str] = None
network_state: Optional[str] = None
Loading