{ "$schema": "http://json-schema.org/draft-07/schema", "$id": "device-count-schema", "type": "object", "title": "Itential Device Count History Schema", "description": "This is the schema for an IAP device count stored in Mongo", "properties": { "timestamp": { "type": "string", "description": "An ISODate representing when the device count was taken", "examples": [ "2023-02-14T20:06:50.569Z" ] }, "serverId": { "type": "string", "description": "The serverId where the device count was taken" }, "counts": { "type": "object", "description": "The key/value pair between an adapter name and the number of devices", "additionalProperties": { "type": "integer", "minimum": 0 } } }, "required": [ "timestamp", "serverId", "counts" ], "additionalProperties": false }