Skip to content

Commit

Permalink
Merge pull request #191 from JupiterOne/DEVICE-133-add-lastSeenOn-to-…
Browse files Browse the repository at this point in the history
…Device-and-HostAgent

DEVICE-133 - Add lastSeenOn as a required property on both Devices and HostAgents
  • Loading branch information
mknoedel authored Jun 21, 2023
2 parents f028a3c + c8a1146 commit 2deca09
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions external/resolvedSchemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
14 changes: 13 additions & 1 deletion src/schemas/Device.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -168,7 +173,14 @@
]
}
},
"required": ["category", "make", "model", "serial", "deviceId"]
"required": [
"category",
"make",
"model",
"serial",
"deviceId",
"lastSeenOn"
]
}
]
}
7 changes: 6 additions & 1 deletion src/schemas/HostAgent.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
}
]
}

0 comments on commit 2deca09

Please sign in to comment.