From a0a6852a4cb006f8fb7d575432772dbd91168f28 Mon Sep 17 00:00:00 2001 From: Aidan Timson Date: Sun, 5 Nov 2023 21:09:14 +0000 Subject: [PATCH] Add active user ID and name to system schema and model --- schemas/data/system.json | 6 ++++++ systembridgemodels/system.py | 2 ++ 2 files changed, 8 insertions(+) diff --git a/schemas/data/system.json b/schemas/data/system.json index 398e3c7..7d75033 100644 --- a/schemas/data/system.json +++ b/schemas/data/system.json @@ -7,6 +7,12 @@ "type": "string", "description": "Event ID" }, + "active_user_id": { + "type": "number" + }, + "active_user_name": { + "type": "string" + }, "boot_time": { "type": "number" }, diff --git a/systembridgemodels/system.py b/systembridgemodels/system.py index 8ddaf98..855afd3 100644 --- a/systembridgemodels/system.py +++ b/systembridgemodels/system.py @@ -33,6 +33,8 @@ class System(BaseModel): """ id: Optional[str] = Field(None, description="Event ID") + active_user_id: Optional[float] = None + active_user_name: Optional[str] = None boot_time: float fqdn: str hostname: str