diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a9811b..20cd421 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to ## [Unreleased] +### Added + +- `lastSeenOn` as a required property on both Devices and HostAgents. + ## 0.54.0 - 2023-03-01 ### Changed diff --git a/external/resolvedSchemas.json b/external/resolvedSchemas.json index add9cba..8908404 100644 --- a/external/resolvedSchemas.json +++ b/external/resolvedSchemas.json @@ -6362,6 +6362,11 @@ ], "inherited": true }, + "lastSeenOn": { + "description": "The timestamp (in milliseconds since epoch) when the device either last checked in or was scanned.", + "type": ["number", "null"], + "format": "date-time" + }, "location": { "description": "Site where this device is located.", "type": "string" diff --git a/src/schemas/Device.json b/src/schemas/Device.json index 4dc7dad..4171509 100644 --- a/src/schemas/Device.json +++ b/src/schemas/Device.json @@ -149,6 +149,11 @@ "description": "Screen lock timeout in seconds", "type": "number" }, + "lastSeenOn": { + "description": "The timestamp (in milliseconds since epoch) when the device either last checked in or was scanned.", + "type": ["number", "null"], + "format": "date-time" + }, "status": { "description": "Status label of this device", "type": "string", @@ -168,7 +173,14 @@ ] } }, - "required": ["category", "make", "model", "serial", "deviceId"] + "required": [ + "category", + "make", + "model", + "serial", + "deviceId", + "lastSeenOn" + ] } ] } diff --git a/src/schemas/HostAgent.json b/src/schemas/HostAgent.json index 0ec14df..870edc4 100644 --- a/src/schemas/HostAgent.json +++ b/src/schemas/HostAgent.json @@ -32,7 +32,12 @@ } } }, - "required": ["function"] + "lastSeenOn": { + "description": "The timestamp (in milliseconds since epoch) when the device either last checked in or was scanned.", + "type": ["number", "null"], + "format": "date-time" + }, + "required": ["function", "lastSeenOn"] } ] }