11 lines
185 B
Python
11 lines
185 B
Python
from pydantic import BaseModel
|
|
from datetime import datetime
|
|
from typing import Literal
|
|
|
|
class MachineEvent(BaseModel):
|
|
camera: int
|
|
timestamp: float
|
|
status: int
|
|
|
|
|