From 74c2b79f0571dceff3b1b71756863b54b465b6f3 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 3 Aug 2026 15:15:02 -0500 Subject: [PATCH] Website: add support for new usage statistics (#50466) Changes: - Updated the website to support two new usage statistics sent by Fleet servers: `numHostsFleetMDMEnrolledWindows` and `numHostsFleetMDMEnrolledMacOS` ## Summary by CodeRabbit * **New Features** * Usage analytics now track Fleet MDM-enrolled host counts separately for macOS and Windows. * Historical usage records include these platform-specific enrollment totals. --- website/api/controllers/webhooks/receive-usage-analytics.js | 2 ++ website/api/models/HistoricalUsageSnapshot.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/website/api/controllers/webhooks/receive-usage-analytics.js b/website/api/controllers/webhooks/receive-usage-analytics.js index a0b845aa91..9987a485f8 100644 --- a/website/api/controllers/webhooks/receive-usage-analytics.js +++ b/website/api/controllers/webhooks/receive-usage-analytics.js @@ -53,6 +53,8 @@ module.exports = { conditionalAccessEnabled: {type: 'boolean', defaultsTo: false}, gitOpsModeEnabled: {type: 'boolean', defaultsTo: false}, gitOpsModeExceptions: {type: ['string'], defaultsTo: [] }, + numHostsFleetMDMEnrolledMacOS: {type: 'number', defaultsTo: 0 }, + numHostsFleetMDMEnrolledWindows: {type: 'number', defaultsTo: 0 }, }, diff --git a/website/api/models/HistoricalUsageSnapshot.js b/website/api/models/HistoricalUsageSnapshot.js index 7e819a8701..e3865e1588 100644 --- a/website/api/models/HistoricalUsageSnapshot.js +++ b/website/api/models/HistoricalUsageSnapshot.js @@ -57,7 +57,8 @@ module.exports = { entraConditionalAccessConfigured: {required: true, type: 'boolean'}, gitOpsModeEnabled: {required: true, type: 'boolean'}, gitOpsModeExceptions: {required: true, type: 'json'}, - + numHostsFleetMDMEnrolledMacOS: {required: true, type: 'number'}, + numHostsFleetMDMEnrolledWindows: {required: true, type: 'number'}, // ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗ // ║╣ ║║║╠╩╗║╣ ║║╚═╗ // ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝