Enabling setting host status webhook at the team level via REST API and fleetctl apply/gitops. (#17186)
Enabling setting host status webhook at the team level via REST API and fleetctl apply/gitops. #14916 Example payload: ```json { "data": { "days_unseen": 3, "host_ids": [ 10724, 10726, 10738, 10739, 10740, 10741, 10742, 10744, 10745, 10746, 10747, 10748, 10749 ], "team_id": 3, "total_hosts": 15, "unseen_hosts": 13 }, "text": "More than 86.67% of your hosts have not checked into Fleet for more than 3 days. You've been sent this message because the Host status webhook is enabled in your Fleet instance." } ``` # Checklist for submitter - [x] Changes file added for user-visible changes in `changes/` or `orbit/changes/`. See [Changes files](https://fleetdm.com/docs/contributing/committing-changes#changes-files) for more information. - [x] Added/updated tests - [x] Manual QA for all new/changed functionality
This commit is contained in:
+5
-4
@@ -4,10 +4,11 @@ team_settings:
|
||||
- secret: "SampleSecret123"
|
||||
- secret: "ABC"
|
||||
webhook_settings:
|
||||
failing_policies_webhook:
|
||||
enable_failing_policies_webhook: true
|
||||
destination_url: https://example.tines.com/webhook
|
||||
policy_ids: [1, 2, 3, 4, 5, 6 ,7, 8, 9]
|
||||
host_status_webhook:
|
||||
days_count: 14
|
||||
destination_url: https://example.com/host_status_webhook
|
||||
enable_host_status_webhook: true
|
||||
host_percentage: 25
|
||||
features:
|
||||
enable_host_users: true
|
||||
enable_software_inventory: true
|
||||
|
||||
Reference in New Issue
Block a user