{ "type": "object", "properties": { "platform": { "type": "string", "maxLength": 128, "enum": [ "windows", "debian", "redhat" ] }, "mode": { "type": "string", "maxLength": 128, "enum": [ "apply", "check" ] }, "evidence": { "type": "string", "maxLength": 128, "enum": [ "package_snapshots", "windows_update_result" ] }, "complete": { "type": "boolean" }, "updates": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "maxLength": 1024 }, "identifier": { "type": [ "string", "null" ], "maxLength": 1024 }, "architecture": { "type": [ "string", "null" ], "maxLength": 1024 }, "old_versions": { "type": "array", "items": { "type": "string", "maxLength": 1024 }, "maxItems": 100 }, "new_versions": { "type": "array", "items": { "type": "string", "maxLength": 1024 }, "maxItems": 100 }, "action": { "type": "string", "maxLength": 128, "enum": [ "updated", "installed", "removed" ] }, "kb": { "type": "array", "items": { "type": "string", "maxLength": 1024 }, "maxItems": 100 } }, "required": [ "name", "identifier", "architecture", "old_versions", "new_versions", "action", "kb" ], "additionalProperties": false }, "maxItems": 20000 }, "updated_count": { "type": "integer", "minimum": 0 }, "installed_count": { "type": "integer", "minimum": 0 }, "removed_count": { "type": "integer", "minimum": 0 }, "pending": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "maxLength": 1024 }, "identifier": { "type": [ "string", "null" ], "maxLength": 1024 }, "kb": { "type": "array", "items": { "type": "string", "maxLength": 1024 }, "maxItems": 100 } }, "required": [ "name", "identifier", "kb" ], "additionalProperties": false }, "maxItems": 20000 }, "failed_updates": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "maxLength": 1024 }, "identifier": { "type": [ "string", "null" ], "maxLength": 1024 }, "native_code": { "type": [ "integer", "null" ], "minimum": 0 }, "reason": { "type": "string", "maxLength": 128, "enum": [ "update_failed" ] } }, "required": [ "name", "identifier", "native_code", "reason" ], "additionalProperties": false }, "maxItems": 20000 }, "reboot_required": { "type": [ "boolean", "null" ] }, "reboot_performed": { "type": "boolean" } }, "required": [ "platform", "mode", "evidence", "complete", "updates", "updated_count", "installed_count", "removed_count", "pending", "failed_updates", "reboot_required", "reboot_performed" ], "additionalProperties": false }