{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Samsara inventory v1", "type": "object", "required": [ "schema_version", "synthetic", "collected_at", "server", "checks", "inventory" ], "additionalProperties": false, "properties": { "schema_version": { "const": "1.0" }, "synthetic": { "type": "boolean" }, "collected_at": { "type": "string", "format": "date-time" }, "server": { "type": "object", "required": [ "hostname" ], "properties": { "hostname": { "type": "string" }, "platform": { "enum": [ "windows", "linux" ] }, "operating_system": { "type": "string" }, "os_version": { "type": "string" }, "os_build": { "type": "string" }, "kernel_version": { "type": "string" }, "collection_source": { "type": "string" }, "domain": { "type": "string" }, "product_type": { "type": "integer" }, "domain_joined": { "type": [ "boolean", "null" ] }, "ip_addresses": { "type": "array", "items": { "type": "string" } }, "network_adapters": { "type": "array", "items": { "type": "string" } } } }, "checks": { "type": "object", "additionalProperties": { "type": "object", "required": [ "status", "message" ], "properties": { "status": { "enum": [ "complete", "partial", "failed", "not_collected" ] }, "message": { "type": "string" }, "started_at": { "type": "string", "format": "date-time" }, "completed_at": { "type": "string", "format": "date-time" }, "errors": { "type": "array", "items": { "type": "object", "required": [ "code", "scope", "message" ], "additionalProperties": false, "properties": { "code": { "type": "string" }, "scope": { "type": "string" }, "message": { "type": "string" } } } }, "permission_limitations": { "type": "array", "items": { "type": "string" } }, "limitations": { "type": "array", "items": { "type": "string" } } } }, "required": [ "roles", "services", "network", "tasks", "software", "storage", "certificates" ] }, "inventory": { "type": "object", "required": [ "roles", "services", "network", "tasks", "software", "storage", "certificates" ], "properties": { "roles": { "type": "array", "items": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" }, "display_name": { "type": "string" }, "state": { "type": "string" }, "feature_type": { "type": "string" } } } }, "services": { "type": "array", "items": { "type": "object", "required": [ "name", "state" ], "properties": { "name": { "type": "string" }, "state": { "type": "string" }, "display_name": { "type": "string" }, "startup": { "type": "string" }, "account": { "type": "string" }, "pid": { "type": "integer" } } } }, "network": { "type": "array", "items": { "type": "object", "required": [ "state", "local_address", "local_port", "remote_address", "remote_port" ], "properties": { "state": { "type": "string" }, "local_address": { "type": "string" }, "local_port": { "type": "integer" }, "remote_address": { "type": "string" }, "remote_port": { "type": "integer" } } } }, "tasks": { "type": "array", "items": { "type": "object", "required": [ "name", "enabled" ], "properties": { "name": { "type": "string" }, "enabled": { "type": "boolean" }, "path": { "type": "string" }, "account": { "type": "string" }, "triggers": { "type": "string" }, "state": { "type": "string" }, "executables": { "type": "string" }, "associated_unit": { "type": "string" } } } }, "software": { "type": "array", "items": { "type": "object", "required": [ "name" ], "properties": { "name": { "type": "string" }, "publisher": { "type": "string" }, "version": { "type": "string" }, "installation_date": { "type": "string" }, "registry_view": { "type": "string" } } } }, "storage": { "type": "array", "items": { "type": "object", "required": [ "type", "name", "path" ], "properties": { "type": { "type": "string" }, "name": { "type": "string" }, "path": { "type": "string" }, "filesystem": { "type": "string" }, "special": { "type": "boolean" }, "capacity_gib": { "type": [ "number", "null" ] }, "free_gib": { "type": [ "number", "null" ] }, "observed_open_files": { "type": "integer", "minimum": 0 }, "observed_client_count": { "type": "integer", "minimum": 0 }, "activity_source": { "type": "string" }, "activity_observed_at": { "type": "string", "format": "date-time" } } } }, "certificates": { "type": "array", "items": { "type": "object", "required": [ "subject" ], "properties": { "subject": { "type": "string" }, "issuer": { "type": "string" }, "expires": { "type": "string" }, "thumbprint": { "type": "string" }, "store": { "type": "string" } } } } }, "additionalProperties": false } } }