microsoft / mdatp-xplat

Microsoft Defender for macOS/Linux - config samples, auxiliary tools
MIT License
187 stars 188 forks source link

Changed total_files_scanned from underscore to camelcase #97

Open ejernkrook opened 1 year ago

ejernkrook commented 1 year ago

Fix for error: KeyError: 'total_files_scanned'

real-time-protection-statistics have changed the json output from underscore to camelcase for total files scanned. mdatp diagnostic real-time-protection-statistics --output json Example:

        {
            "id": 1,
            "isActive": true,
            "maxFileScanTime": "0",
            "name": "systemd",
            "path": "/usr/lib/systemd/systemd",
            "resourceScanTime": "0",
            "scannedFilePaths": null,
            "totalEventsSent": "0",
            "totalFilesScanned": "0",
            "totalScanTime": "0"
        },

Tested on Ubuntu 22.04 mdatp version: Product version: 101.23052.0009

JonathanBrockhausen commented 1 year ago

Having this issue as well, would be amazing if this was fixed.