Skip to content

Commit

Permalink
Add camera usage field to System (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
timmo001 committed Nov 12, 2023
1 parent b11b6f1 commit 49d3abb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions schemas/data/system.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
"boot_time": {
"type": "number"
},
"camera_usage": {
"type": "array",
"items": {
"type": "string"
}
},
"fqdn": {
"type": "string"
},
Expand Down Expand Up @@ -65,6 +71,9 @@
"boot_time": {
"type": "number"
},
"camera_usage": {
"type": "number"
},
"fqdn": {
"type": "number"
},
Expand Down
2 changes: 2 additions & 0 deletions systembridgemodels/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class LastUpdated(BaseModel):
active_user_id: Optional[float] = None
active_user_name: Optional[float] = None
boot_time: float
camera_usage: Optional[float] = None
fqdn: float
hostname: float
ip_address_4: float
Expand All @@ -39,6 +40,7 @@ class System(BaseModel):
active_user_id: Optional[float] = None
active_user_name: Optional[str] = None
boot_time: float
camera_usage: Optional[list[str]] = None
fqdn: str
hostname: str
ip_address_4: str
Expand Down

0 comments on commit 49d3abb

Please sign in to comment.