mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
6ee6dba4a4
* Collect additional anonymous usage statistics * Update fleetdm.com and docs for usage stats * Fix lint-go errors * Fix failing test * update webhook inputs * Update receive-usage-analytics.js * fix failing test * Update statistics_test.go Co-authored-by: eashaw <eashaw@sailsjs.com>
40 lines
1.8 KiB
JavaScript
Vendored
40 lines
1.8 KiB
JavaScript
Vendored
/**
|
|
* HistoricalUsageSnapshot.js
|
|
*
|
|
* @description :: A model definition represents a database table/collection.
|
|
* @docs :: https://sailsjs.com/docs/concepts/models-and-orm/models
|
|
*/
|
|
|
|
module.exports = {
|
|
|
|
attributes: {
|
|
|
|
// ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦ ╦╔═╗╔═╗
|
|
// ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
|
|
// ╩ ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝
|
|
anonymousIdentifier: { required: true, type: 'string', example: '9pnzNmrES3mQG66UQtd29cYTiX2+fZ4CYxDvh495720=', description: 'An anonymous identifier telling us which Fleet deployment this is.', },
|
|
fleetVersion: { required: true, type: 'string', example: 'x.x.x' },
|
|
licenseTier: { required: true, type: 'string', example: 'free' },
|
|
numHostsEnrolled: { required: true, type: 'number', min: 0, custom: (num) => Math.floor(num) === num },
|
|
numUsers: { required: true, type: 'number' },
|
|
numTeams: { required: true, type: 'number' },
|
|
numPolicies: { required: true, type: 'number' },
|
|
numLabels: { required: true, type: 'number' },
|
|
softwareInventoryEnabled: { required: true, type: 'boolean' },
|
|
vulnDetectionEnabled: { required: true, type: 'boolean' },
|
|
systemUsersEnabled: { required: true, type: 'boolean' },
|
|
hostStatusWebhookEnabled: { required: true, type: 'boolean' },
|
|
|
|
// ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
|
|
// ║╣ ║║║╠╩╗║╣ ║║╚═╗
|
|
// ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝
|
|
|
|
|
|
// ╔═╗╔═╗╔═╗╔═╗╔═╗╦╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
|
|
// ╠═╣╚═╗╚═╗║ ║║ ║╠═╣ ║ ║║ ║║║║╚═╗
|
|
// ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝
|
|
|
|
},
|
|
|
|
};
|