fleet/website/api/controllers/webhooks
Eric f14ab358fe
2023-11-21 Website: Add new usage statistics (#15263)
Closes: #15255

Changes:
- Added the usage statistics added in
https://github.com/fleetdm/fleet/pull/14216 to the inputs of the
`receive-usage-analytics` webhook.
- Updated the `receive-usage-analytics` webhook to send the new usage
statistics to Datadog.
- Added attributes for the new usage statistics to the
`HistoricalUsageSnapshot` model.
- Removed the `columnName` from the `hostsStatusWebHookEnabled`
attribute of the `HistoricalUsageSnapshot` model, the name of this
column will be changed in the database when the new columns are added to
the databse table.
- Updated the usage statistics documentation to have the new statistics.


This PR requires database migrations. When this is approved and ready to
merge, we will need to:
- [ ] Merge this PR
- [ ] Put fleetdm.com into maintenance mode while the "Deploy Fleet
website" GH action runs.
- [ ] Add the new columns to the database table
- [ ] Change the name of the `hostStatusWebhookEnabled` column to
`hostsStatusWebHookEnabled`
- [ ] Set the default values for the new columns on the existing
records.
- [ ] When the website has finished redeploying, take it out of
maintenance mode.
2023-12-01 17:59:41 -06:00
..
receive-from-customer-fleet-instance.js Website: Fix bug in customer migration webhook (#12277) 2023-06-09 19:06:25 -05:00
receive-from-github.js Add pintomi1989 to "Humans" list (#15025) 2023-11-08 11:19:31 -05:00
receive-from-stripe.js Website: Add two events to stripe webhook, add comments about when events are sent. (#14370) 2023-10-07 10:54:45 -05:00
receive-usage-analytics.js 2023-11-21 Website: Add new usage statistics (#15263) 2023-12-01 17:59:41 -06:00