Website: Add support for new usage statistics (#40879)

Closes: https://github.com/fleetdm/fleet/issues/39836

Changes:
- Added `fleetMaintainedAppsWindows` and `fleetMaintainedAppsMacOS`
attributes to the HistoricalUsageSnapshot model
- Added `fleetMaintainedAppsWindows` and `fleetMaintainedAppsMacOS` as
inputs to the receive-usage-analytics webhook


Note: This pull request requires database migrations and should only be
merged after the website's database is updated while it is in
maintenance mode.
This commit is contained in:
Eric
2026-03-06 07:41:50 -06:00
committed by GitHub
parent 3e3582784e
commit bafbc05f6d
2 changed files with 4 additions and 0 deletions
@@ -45,6 +45,8 @@ module.exports = {
numHostsFleetDesktopEnabled: {type: 'number', defaultsTo: 0 },
numQueries: {type: 'number', defaultsTo: 0 },
numHostsABMPending: {type: 'number', defaultsTo: 0 },
fleetMaintainedAppsWindows: {type: ['string'], defaultsTo: [] },
fleetMaintainedAppsMacOS: {type: ['string'], defaultsTo: [] },
},
+2
View File
@@ -49,6 +49,8 @@ module.exports = {
numHostsFleetDesktopEnabled: {required: true, type: 'number'},
numQueries: {required: true, type: 'number' },
numHostsABMPending: {required: true, type: 'number' },
fleetMaintainedAppsMacOS: {required: true, type: 'json'},
fleetMaintainedAppsWindows: {required: true, type: 'json'},
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
// ║╣ ║║║╠╩╗║╣ ║║╚═╗